|
-
Mar 7th, 2000, 07:14 AM
#1
Thread Starter
New Member
A rather strange error has just occurred in one of my projects. I have a toolbar on an MDI form, and the code loops through the Buttons collection to check the properties are set correctly. All of a sudden, the first line of code where a button object is referenced now generates a 'type mismatch' error. I have not added or removed any controls, or made any changes to code in that form, so I have no idea why this error has occurred. There is no problem accessing or manipulating the properties of the toolbar, only the buttons.
The code below is where I am having the problem. The line marked with '>' is where the problem occurs. There is no code prior to the 'Dim' statement. I haven't included the code within the loop as it never even gets there.
Dim btn as Button
> For each btn in Toolbar1.Buttons
...
...
Next
I've tried reinstalling the specific dll, and also VB itself, but no luck yet. I'd rather not have to do a full uninstall-reinstall, but I'm running out of options.
If anyone has any ideas, your help would be appreciated!
Regards,
Damien
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
|