Enter key and combobox

Posted by: ginacresse on 8 September 2017, 2:37 pm EST

  • Posted 8 September 2017, 2:37 pm EST

    I'm using the following code to make the enter key work like the tab key in my spread:

    <FONT size=2>

    </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Dim</FONT></FONT><FONT size=2> im </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>As</FONT></FONT><FONT size=2> FarPoint.Win.Spread.InputMap


    im = .GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused)


    im.Put(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>New</FONT></FONT><FONT size=2> FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextColumnWrap)


    im = .GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)


    im.Put(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>New</FONT></FONT><FONT size=2> FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextColumnWrap)</FONT>


    <FONT size=2>This code works great until I get to a combobox, then the user is stuck until the tab key is pressed.  All the enter key does is expand/colapse the combobox list.  Is there a way around this?</FONT>


    <FONT size=2> Thanks,
    Gina</FONT><FONT size=2>

    </FONT>
  • Replied 8 September 2017, 2:37 pm EST

    Gina,

    Your code is working fine with Spread for Win Forms latest build 5.0.3518.2008 wherein Enter key is behaving as Tab key even in ComboBox CellType. Would you please let me know which version of Spread you are working upon?

    Thanks.

  • Replied 8 September 2017, 2:37 pm EST

    We are on version 5.0.2003.2008
  • Replied 8 September 2017, 2:37 pm EST

    Hello,


    I would request to to get the latest build of Spread 5 from this link and upgrade your application. You will be able to get this working fine with the latest build.

    Thanks.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels