Supressing Right Click RadComboBox

2 posts, 0 answers
  1. Bala
    Bala avatar
    7 posts
    Member since:
    Jul 2012

    Posted 14 Aug 2012 Link to this post

    Hi,

    We are using the Telerik Winforms Q3 2009 SP1.

    In that, how to supress right clicks in RadComboBox.

    We tried assigning a empty contextstrip to contextstrip property .But it doesn't work.

    Is there any way to do this?

    Thanks.
  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 17 Aug 2012 Link to this post

    Hi Bala,

    Thank you for writing.

    You should assign an empty context menu strip to the RadComboBox TextBox item. Please, refer to code snippet:
    private void Form1_Load(object sender, EventArgs e)
           {
               this.radComboBox1.ComboBoxElement.TextBoxElement.TextBoxItem.HostedControl.ContextMenuStrip = new ContextMenuStrip();
           }

    I hope this helps.

    Regards,
    Peter
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top