G
Guest
I have a .NET DLL containing a Winform that is being called from a VB6 application. When the VB6 application calls ShowDialog, the keyboard works correctly with the form that is loaded from the DLL. When the Show method is used, however, the keyboard (with the exception of the spacebar) is inoperative.
The form is a simple one with two command buttons and each of them defines a hot key ("Button &1" for example). When the form is displayed with the "Show" method, the "Alt" key will not display the hotkeys, the "Tab" key will not move focus between the command buttons, in short, most of the keyboard is inoperative. The space bar does activate the first button in the tab order but nothing else seems to work. When the "ShowDialog" method is called, however, the form works as desired. Unfortunately, we don't want this form to be modal
Is there a way to fix this problem?
The form is a simple one with two command buttons and each of them defines a hot key ("Button &1" for example). When the form is displayed with the "Show" method, the "Alt" key will not display the hotkeys, the "Tab" key will not move focus between the command buttons, in short, most of the keyboard is inoperative. The space bar does activate the first button in the tab order but nothing else seems to work. When the "ShowDialog" method is called, however, the form works as desired. Unfortunately, we don't want this form to be modal
Is there a way to fix this problem?