control & F4 close form?

  • Thread starter Thread starter feng
  • Start date Start date
F

feng

In our vb.net windows form application we observe a
behaviour that we can't explain. Press the key combination
of Control and F4 will closed the current form. The thing
that confuses me is that I don't think we have code that
does that. Is that possible that this is some kind of
default behavior from VB.Net?

Please help!

Thanks
 
Is your application an MDI app? Ctrl + F4 is standard functionality built
into windows that closes MDI child windows.

Gary
 
Hello,
try to define keyup event and also you define in menu and define
shortcut F4.

thanks,


Warm Regards,

Ayaz Ahmed
Software Engineer & Web Developer
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Karachi, Pakistan
Mobile +92 300 2280950
Office +92 21 455 2414
 
* "feng said:
In our vb.net windows form application we observe a
behaviour that we can't explain. Press the key combination
of Control and F4 will closed the current form. The thing
that confuses me is that I don't think we have code that
does that. Is that possible that this is some kind of
default behavior from VB.Net?

Are you talking about MDI child forms? Ctrl+F4 is used to close MDI
children, but it won't close normal forms which are not shown inside an
MDI container.
 
Back
Top