Note that there are some explanatory texts on larger screens.

plurals
  1. POInternet Explorer Toolbar Tab Key
    primarykey
    data
    text
    <p>I've written a IE Toolbar in C# and everything is working fine except that when I open a child Windows Form from my toolbar, the tab key doesn't work on the child form to allow me to move from field to field.</p> <p>The interesting part is that when I open my child form using form.showDialog() instead of form.show() the tabs work like normal.</p> <p>The toolbar I've created is based on this <a href="http://lamp.codeproject.com/KB/shell/dotnetbandobjects.aspx?fid=3788&amp;df=90&amp;mpp=25&amp;noise=3&amp;sort=Position&amp;view=Quick&amp;select=2766883&amp;fr=301#xx0xx" rel="nofollow noreferrer">article</a> and this <a href="https://secure.codeproject.com/KB/cs/Issuewithbandobjects.aspx" rel="nofollow noreferrer">article</a> </p> <p>I've implemented TranslateAcceleratorIO as mentioned in several articles, but still no luck.</p> <p>Here are my implmentations of TranslateAcceleratorIO() and HasFocusIO() (implemented in my toolband class)</p> <pre><code> [DllImport("user32.dll")] public static extern int TranslateMessage(ref MSG lpMsg); [DllImport("user32", EntryPoint = "DispatchMessage")] static extern bool DispatchMessage(ref MSG msg); public int HasFocusIO() { return this.ContainsFocus ? 0 : 1; //S_OK : S_FALSE; } public int TranslateAcceleratorIO(ref MSG msg) { if (msg.message == 0x100)//WM_KEYDOWN if (msg.wParam == (uint)Keys.Tab || msg.wParam ==(uint)Keys.F6) { if (SelectNextControl( ActiveControl, ModifierKeys == Keys.Shift ? false : true, true, true, false) ) { return 0;//S_OK } } else { TranslateMessage(ref msg); DispatchMessage(ref msg); return 0;//S_OK } return 1;//S_FALSE } </code></pre> <p>I've also tried having TranslateAccelerator like this with no luck:</p> <pre><code> public int TranslateAcceleratorIO(ref MSG msg) { TranslateMessage(ref msg); DispatchMessage(ref msg); return 0;//S_OK } </code></pre> <p>Has anybody else run into this issue?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload