Controls

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DaveL

    Controls

    Hi
    I have a Client, that wants the enterkey to work like
    the Tab key when moving from control to control
    What is the best way to accomplish this
    I was not able to find a property to choose tab over/or enter

    Thanks
    DaveL


  • Peter Duniho

    #2
    Re: Controls

    On Thu, 16 Oct 2008 12:10:58 -0700, DaveL <dvs_bis@sbcglo bal.netwrote:
    Hi
    I have a Client, that wants the enterkey to work like
    the Tab key when moving from control to control
    What is the best way to accomplish this
    I was not able to find a property to choose tab over/or enter
    You'll have to handle the key input yourself and call
    Control.SelectN extControl() to move the focus when the Enter key is
    pressed.

    Pete

    Comment

    • cfps.Christian

      #3
      Re: Controls

      On Oct 16, 2:10 pm, "DaveL" <dvs_...@sbcglo bal.netwrote:
      Hi
      I have a Client, that wants the enterkey to work like
      the Tab key when moving from control to control
      What is the best way to accomplish this
      I was not able to find a property to choose tab over/or enter
      >
      Thanks
      DaveL
      I'm going to regret telling you how to accomplish this evil, but...

      I think you'd need to use:
      this.SelectNext Control([CurrentControl], [T/F], [T/F], [T/F], [T/F]);

      You'd have to catch each control's keypress event to tell it to do the
      selection based upon the 'Enter' key.

      Comment

      • DaveL

        #4
        Re: Controls

        Thank you very much Peter

        "Peter Duniho" <NpOeStPeAdM@nn owslpianmk.comw rote in message
        news:op.ui4tclq 78jd0ej@petes-computer.local. ..
        On Thu, 16 Oct 2008 12:10:58 -0700, DaveL <dvs_bis@sbcglo bal.netwrote:
        >
        >Hi
        >I have a Client, that wants the enterkey to work like
        >the Tab key when moving from control to control
        >What is the best way to accomplish this
        >I was not able to find a property to choose tab over/or enter
        >
        You'll have to handle the key input yourself and call
        Control.SelectN extControl() to move the focus when the Enter key is
        pressed.
        >
        Pete

        Comment

        Working...