Sorry, didn't understand what this does..
I have ToolStripMenuItem1 renamed TSGW and others renamed other suff, should this still work?
I get an error in this:
Error:Code:For Each n As ToolStripMenuItem In Me.Controls
Unable to cast object of type 'System.Windows.Forms.ToolStrip' to type 'System.Windows.Forms.ToolStripMenuItem'.
Do you know how to solve it?
Ps:I did rename the ToolStripMenuItem1 in the "enable1DisableRest(ToolStripMenuItem1)" to TSGW so it's not it..
omanel (06-30-2010)
you need to check if it is a ToolStripMenuItem or the menu itself, otherwise the program will be crashing like it is happening now... its like... Trying to do a Cast of a Label to a button (crash...)...
be sure to have a If to check what control is it on the collection.
Light travels faster than sound. That's why most people seem bright until you hear them speak.
I did it the hard way lol
New question:
I have several forms and I don't know why form 4 starts first instead of beeing form1..how do I fix?
Project > *Project name here* Properties > (optional: on the left click "Application") > Startup form > choose your startup form.
omanel (06-30-2010)