Answer Questions
Dileep Agarwal Mapped network drive's UNC in VB
Anybody know how to get the UNC for a mapped network drive in VB2005 IN VB6 it was easy. There was .ShareName property under the Drive object in the FileSystemObject. That property seems to no longer exists in VB2005. Many thanks. This works perfectly. WNetGetConnection http://searchvb.techtarget.com/vsnetATEAnswers/0,293820,sid8_gci954149_tax293674,00.html http://msdn.microsoft.com/library/defau ...Show All
neil_fl Can anybody tell what is the problem with this code?
I'm currently working for a engineering company and it is my first time using visual basic. This piece of code was written by another person and i must fix the problem within the code. If anybody can find it, it would be really thankful. Here's the code (This is one section of the whole code, one class): Sub CheckSummerWinter() 'Check to see if Summer/Winter selection changed 'Remove protection Passwrd = "ESGtrcCv" & Trim ...Show All
lbeguin Conversion from string "0" to type 'Integer' is not valid.
I'm getting the above error when trying to pass the value from a hiddenfield control to an integer parameter in a class. This results in a "Input string was not in a correct format. " error. If I try to cast the hiddenfield's value to an integer, I get the same conversion error ('Conversion from string "0" to type 'Integer' is not valid.'). is this a bug I had this error not long ago! Surprisingly, it ha ...Show All
vai23 TabStop Indexing
I would like to be able to duplicate the following TabStop Code that was converted from VB6 to VB8 (2005) while coding in VB8. VB6 Field Indexing Converted to VB8 by Wizard. If (Val(TxtFld( lop ).Text) = 0 ) Or _ (Val(TxtFld ( lop ).Text) > maxFld) Then…….. If (Val(TxtFld( 0 ).Text) = 0 ) And _ (Val(TxtFld( 1 ).Text) = 0 ) And _ (Val(TxtFld( 2 ).Text) = 0 ) And _ (Va ...Show All
Voldemort SMTP needs Password?
I have an SMTP program written in VB6 which sends automated reports (was in response to Outlook tightening up and asking for permission to send an email each time). Our IT recently decided they want the user authentication information when the SMTP program talks to the email server. It is easy to use a DLL to get the username of the person logged into windows, but I have found nothing on how to get the password. Is it even possible ( ...Show All
Ring Runtimeerror 429 ActiveX component cannot create object
I wrote this to read the fileinformations from a power point prensentation and put them in a table in a word document. Anyway, I always get an error on opening the presentation (I marked the line in the code) Runtimeerror 429 ActiveX component cannot create object Would be really pleased if someone could help. Thx Ivonne Sub AuslesenPowerPoint() Application.DisplayAlerts = False Dim file As String   ...Show All
rax How do you extract from the dataadapter the text related to Insert, Update, and Delete strings
I have run command builder using my dataadapter. I now would like to extract the character strings from the dataadapter instance for Insert, Update, and Delete which the command builder created and put in the dataadapter. Following is my code: dim myDbConnection as string = ................ Dim myDbSelect As String = "SELECT Nickname, Pswd FROM dbo.Nicknames where nickname = 'gary'" Dim mySqlCommand As New SqlCom ...Show All
ZOS Problem unloading Form after next Form loads.
(VB.NET 2003 app.) I have a Login Form and when the user clicks the OK button and the password gets verified, the Main Form gets loaded. I am not able to close the Login Form when the Main Form gets Loaded. Or alternatively, when the OK button of the Login Form gets clicked and the password verification is over, the Login Form should close first and then the Main Form should be loaded. (As it usually happens in any application). Matt, I ...Show All
count zero 1942 MemoryStream not expandable
Hi there, I am trying to read an image from a network stream as a byte() and then convert it back to an image. I am reading the image in packets and each packet is 4096 long. I am then trying to send the downloaded packets to a memory stream, which is later to be converted back to an image. I have the following code: Dim mybytearray(4096) As Byte Dim ms As System.IO.MemoryStream Do While tcpClient.Connected = Tru ...Show All
jwhansen Making a picturebox have a transparent background
I have a picture of a panda with a pink background (panda_down.bmp) and I was wondering: how do I get that pink background to be transparent Never say never, my friend! I ran into the same program you're having. The EXACT same problem.... Well.... I didn't have a pink panda.... But still.... The SHORT answer to your question is that you can't have transparency in a picturebox control without doing some pretty complex coding. If you ...Show All
Rob Walters ActiveX, COM replacements in .NET Framework - Visual Basic 2005
Would anyone know what the .NET Framework has as a replacement for Control Objects or Components in Visual Basic 2005 I need something that was similar to the ActiveX Objects in VB 6.0. How can I achieve a similar end-result even though the platform has changed. Thanks. Thanks for your help. All of those object are s ...Show All
vixxen Input mask for Email?
Does anyone have a good "input mask" for masked text box to validate Email addresses Best Hi cgraus, I've tried using the line you mentioned, in VB.NET 2005, but I get an error at the first @. I have: dim myString as String = " a@a.com " IF System.Text.RegularExpressions. Regex .IsMatch( @ " ^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$" , myString) Th ...Show All
T Solutions Missing Smart Tag options
I am working with and new to Visual Studio 2005 Standard Edition and Visual Basic. I am reading a book titled "Introducing Visual Basic 2005 for Developers". In a section describing use of smart tags in developing a simple application, the book states a control's type can be changed using the smart tag. However, when I click on the smart tag for any of the controls, I am not given the option to change the type. Are some options onl ...Show All
Holistic Conditional Compilation
Hi, I have a number of projects in my solution and I use Conditional Compilation in a number of places, I would like to share Constants between projects, so I don’t have to define and undefined the same Constant in a number of projects. Can't seem to find a way round this. Any comments appreciated Thanks You can define constants so that are accessible by the entire project, by doing the following in Visual Bas ...Show All
dmcgiv Class Library Project Event
I am creating a class library (.dll) and i want to specify an event for when the class is loaded. I want to execute somthing for example "msgbox("Loaded")" almost like a form loaded event. Is this possible / how do I do it First thing: Debugging. You will have to step through and see what is going wrong. (Is the object being created You need to create the object for the sub new function to run . Is there a ...Show All
