Stop Drop-Down List dropping down

4 posts, 1 answers
  1. Justin
    Justin avatar
    4 posts
    Member since:
    Jan 2011

    Posted 21 Jan 2011 Link to this post

    Is there any way to stop a drop-down list from dropping down. I can't see a read-only propery or a drop down event.

    Thanks
    Justin
  2. Carisch
    Carisch avatar
    25 posts
    Member since:
    Aug 2007

    Posted 21 Jan 2011 Link to this post

    .Enabled?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 21 Jan 2011 Link to this post

    Hello,

    Yes, you can disable the control, or if you want to keep the control enabled, you can always catch when the DropDown is opening and stop it.

    Private Sub RadDropDownList1_PopupOpening(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles RadDropDownList1.PopupOpening
        'If <condition> then
        e.Cancel = True
        'End If
    End Sub

    Hope that helps
    Richard
  5. Justin
    Justin avatar
    4 posts
    Member since:
    Jan 2011

    Posted 21 Jan 2011 Link to this post

    Thanks
Back to Top