cancel F2 function key

Posted by: wwu-sec on 8 September 2017, 12:37 pm EST

  • Posted 8 September 2017, 12:37 pm EST

    the deadline is this week, we are using farpoint vs2005 version, we encountered a problem, in winform, there is global handler for F2 keypress, but in farpoint cell, when press F2, it clear current cell contents, we wish the behaviour is global F2 function, not need this farpoint F2 hehaviour. also apply to F3,F4



    i saw document about actionmap related.

    please help me , as soon as possible
  • Replied 8 September 2017, 12:37 pm EST

    Hello,


    You would need to cancel the action of the keys in the InputMap of Spread.

     
    		Dim im As FarPoint.Win.Spread.InputMap
    im = FpSpread1.GetInputMap(Spread.InputMapMode.WhenAncestorOfFocused)
    im.Put(New FarPoint.Win.Spread.Keystroke(Keys.F2, Keys.None), FarPoint.Win.Spread.SpreadActions.None)
     
  • Replied 8 September 2017, 12:37 pm EST

    Dear Scotts,

    my F2 handler is a customized function, that will be fine? i mean when hit F2 in spread cell, it should invoke that customized F2 handler.



    thanks a lot.
  • Replied 8 September 2017, 12:37 pm EST

    this method works!!! thanks lot
Need extra support?

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

Learn More

Forum Channels