|
-
Nov 2nd, 2004, 11:05 AM
#1
Thread Starter
PowerPoster
Non-Shared Member reason
Hi,
In a recent thread something similar to the following was posted as giving the error message "Reference to a non-shared member requires an object reference"
formMain is the startup object
As Me.Text="Testing" is OK and if formMain had been instantiated in a module, with the module Sub Main being the starrtup object, formMain.Text=Testing would have been OK, can anyone please explain why the error message arises? I have never attempted to refer to a form by it's own name from within itself, so I have never noticed this before.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
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
|