AnsweredAssumed Answered

Add-In Tab Key problems

Question asked by rfairhur24 Champion on Oct 10, 2012
Latest reply on Oct 11, 2012 by rfairhur24
I am trying to use VB.Net to create an Add-In form, but I have been having problems with the behavior of the Tab key.  I have tried both an Add-In DockableWindow and a System Windows Form, and cannot get the Tab key to behave the way I want.

Using a System Windows Form, the tab key does not work with a standard Combobox that has a populated list and the AutoCompleteMode set to anything other than None.  If the AutoCompleteMode is set to Suggest, for example, the Tab key simply does nothing after the Combobox gets focus.  The only way to exit the Combobox is to use the Mouse as far as I can tell.  I need the keyboard to be able to navigate the form.

With a DockableWindow the tab key works fine for the above Combobox, but it does not work with a custom component I have created that composites a DateTimePicker and a TextBox.  I get either too few tab stops or too many tab stops, depending on how I try to override the TabStop and TabIndex properties of the custom component to attempt to get the tab to focus on just the TextBox part of the component.  Has anyone successfully used a custom-built composit component with an Add-in?

Using a Windows Form Application I do not seem to have these problems, but I am not sure how to get that to interact with ArcMap Desktop.  Will I have to abandon using an Add-In to fix this problem?  Will a straight Windows Form application work with ArcMap Desktop, and where can I find help with setting it up and distributing an application built that way?  Thanks for any help.