|
-
Nov 2nd, 2004, 11:23 AM
#3
VB6 creates an instance of the form with the same name (essentially). However in .net it works different.
When you are creating an instance of your form in your sub main, you might be doing this:
Dim frmForm as new formMain
then if you try this
formMain.Text="lkj" you are trying to set the value of a class definition (formMain is the definition) not the actual instance.
The instance is actually frmForm so you would call this instead:
frmForm.Text="ljhkjh"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|