Weird toolstrip selection

UncleRonin

Well-known member
Joined
Feb 28, 2006
Messages
230
Location
South Africa
Programming Experience
5-10
Has anyone ever encountered this before: You have an application with a bunch of goodies, a menu and a toolbar. They all work perfectly fine and play nicely together. Now the weird bit is, when the application is started up the first item on the toolbar is 'selected' as if the mouse is hovering over it. What the... !?! I've tried adding new items, removing items, enabling/disabling items - all of that - but the first item always gets that weird selection until an item on the toolbar is hovered over.

Can anyone explain this to me? Its not a problem, not REALLY, but it is rather anoying since it is thwarting my every effort to make my application function normally :confused:

This is what is shown on startup. Notice that a disabled Save item is 'selected'. Nowhere in my code do I ever set the Save item.Checked.

WeirdSelection.PNG
 
Ahah! The focusing thing led to me to realise that the toolstrip is the first control in the tab order! Thus whenever the application starts it selects the save item. *nods* I feel a bit daft but such is life. Shot for the focusing tip! Now it behaves as it should *nods firmly*
 
Back
Top