spunit
spunit

Reputation: 565

If the menu item is visible

I want to see if this: http://spunit.tk/x/Untitled-1_2.png is visible or not. I've tried this:

if ((menuStrip1.Items[1] as ToolStripMenuItem).DropDownItems["itmAdd"].Visible == true)

But it doesn't seem to work. Any ideas?

Upvotes: 0

Views: 684

Answers (1)

Breakeridis
Breakeridis

Reputation: 46

I had exactly the same issue with you my friend. I suppose this is a bug or something. So i replaced .visible with .enable property and did my job. But i think another good solution would be to create and add these items when u need and remove them when u don't.

Upvotes: 2

Related Questions