|
-
Feb 9th, 2011, 09:22 AM
#1
Thread Starter
Addicted Member
New to C# - Please help
Probably just a simple question but I have a static void created which supposively needs to be static in order to declare a new thread but I can't access any controls from that void on the main form because they aren't set as static.
The error shows "An object reference is required for the non-static field, method, or property 'NiRDs.frmMain.tabNiRDs' ".
How exactly do I create an object reference to the controls on the main form? I can't set the designer code to static because as soon as I load the Designer layout, it reverts the code back to non-static declarations of the controls.
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
|