"Henry Jones" <he********@yada.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>I created a module in VS 2005 - Visual Basic Windows Project.
I declared two strings public
Public strConn as string
Public strSQL as string
When I tried to use these variables in my form, they haven't been defined.
What is the difference between VS 2005 and VS 2003? I did the same thing
is VS 2003 and everything worked.
Thanks
Upon re-reading your post (yes, my face is red), I see you defined the
variables in a VB module, not a class. So disregard my previous.
I have attempted to recreate your problem without success here, in VS 2005.
I declared:
Public s As String in a VB Module, then assigned the address of a string
literal to it, using the Text property of a TextBox. I then was able to
display the string in a label.
All code in a form Button1_Click event procedure.