Disappearing Toolstrips

Recently I added a toolstrip that wasnt placed directly onto the main form, at runtime the toolstrip wasnt there. Everything was set to visible and docked correctly but it wasnt showing.

In the end it turned out that it was a bug/feature related to the fact the toolstrip was added inside a tab control, when the form was being initialized the toolstrip visible property was being set to false.

The fix I used in the end was to programmatically¬†set the toolstrip’s visible property to true in the Load event of the form.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s