Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

MenuStrip windows names disappear. VB.NET

$
0
0

Hello!

I'm developing a windows form application with a parent and child windows forms in Visual Basic on .net framework 4.0. On the parent form I use a standard MenuStrip which includes "&Windows" button where a user can select one of the opened forms by name. The issue is that a name of any form that has been canceled from closing disappears from this "&Windows" toolstrip item.

For example, "Main_Parent_Form" as the parent form with MenuStrip and two child forms: "Sales" and "Contacts".

Despite that the Contacts form receives e.cancel=true in its FormClosing event and it is not closed, its name disappears from the "Windows" MenuItem. I wasn't able to solve this issue neither could I find the source code of how a form's name is added to that list. As a result, there's only the "Sales" form's name on the list although a user didn't close the Contacts child form.

Any suggestion on this one?

Thank you!



Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>