|
-
September 3rd, 2006, 05:31 AM
#2
Re: Error: Object reference not set to an instance of an object
You need to make the following changes:
1. Dim frmainInst As frmMain = New frmMain
2. Dim c As RedControlTracker = New RedControlTracker
3. You don't need to call getRedControl from Sub New.
4. Because of 'return c' statement, the sub will only show the first control with red backcolor and get out of the loop. If that is what is intended, fine.
Good luck.
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
|