errors during load message
Hi there;
I am having a scary VB day here at work having encountered an error that apparantly numerous others have seen, but each time I acces an article from this forum (or another), there is no solid answer. So let's try again!!......
The form in question is an MDI form that has a toolbar. This is what the log records:
Line 177: Property Left in Toolbar1 could not be set.
Line 177: Property Width in Toolbar1 could not be set.
The error appears when running from the VB IDE, but does not appear in a compiled version. I have already ruled out the following possible explanations:
1. I am not referencing these properties anywhere (they are read only)
2. I have verified that the library has not changed for the toolbar.
Here is some additonal info that MAY be pertinent:
When the form loads initially, there is no error. It is when the user exercises the option to log into another 'garage' (its an app that manages workorders for fleets of leased company vehicles) and the form reloads....here is the code that does this:
If MDIForm1.Visible = False Then
Unload Me
MDIForm1.Show
Else
bNewLogin = True
Unload Me
Unload MDIForm1
MDIForm1.Show
End If
So I check if it is the first time logging in, otherwise the form is unloaded and then reloaded. The reason this is, is because when they log back in to another garage, they can change languages - so the captions need to be reset and a bunch of variables reinitialized. What's weird is that I did not change any code today - I was testing only, when suddenly this error started appearing. An answer will quite possibly result in the naming of my next born after the person who provides it - HELP PLEASE!!!!
Thanks much