How to stop tabbing through appointments in C!Schedule

Posted by: C_S.Kalaivanan on 11 February 2019, 11:51 pm EST

    • Post Options:
    • Link

    Posted 11 February 2019, 11:51 pm EST

    Hi,

    C1Schedule selects next appointment on Tab key press. I don’t want to allow end user to select appointment through Tab key. Please tell me How to stop tabbing through appointments in C!Schedule.

  • Posted 13 February 2019, 1:51 am EST

    Hello,

    For this, you may override [b]ProcessCmdKey/b method, check if C1Schedule has focus and an Tab key is pressed, as follows:```

    protected override bool ProcessCmdKey(ref Message msg, Keys keyData)

    {

    //capture arrow key press only for C1Schedule and not for other controls present on form

    if (c1Schedule1.ContainsFocus)

    {

    //capture Tab key

    if (keyData == Keys.Tab)

    {

    return true;

    }

    return base.ProcessCmdKey(ref msg, keyData);

    }

    else

    {

    return false;

    }

    }

    Attached is sample application for any reference.
    
    Thanks,
    Ruchir
    [zip filename="C1Schedule_TabKey.zip"]https://gccontent.blob.core.windows.net/forum-uploads/file-bf4549e7-983a-4e02-be09-2b337f000322.zip[/zip]
  • Posted 13 February 2019, 5:14 pm EST

    Thanks for the reply, It works fine.

Need extra support?

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

Learn More

Forum Channels