locked
DropDown vs DropDownList RRS feed

  • Question

  • Hi,
    I am trying to add a dropdown to my form.
    I want this form to have a 'title' incporparted in the control to save space.
    When I select DropDown for the DropDownStyle property everything is good because i can set the 'text' property to my title.
    The only problem is that at runtime I can 'edit' the dropdown and I don't want this. I want the behaviour to be like a 'DropDownList" but then when I try to set the title in the text property I can seem to set it (Visual Studio removes the title each time).

    If you could let me know any trick behind it please ?

    Thanks

    Tuesday, March 16, 2010 1:29 PM

All replies

  • HI Zoroxeus,

    I am a little confused about your following description:

    >>The only problem is that at runtime I can 'edit' the dropdown and I don't want this. I want the behaviour to be like a 'DropDownList" but then when I try to set the title in the text property I can seem to set it (Visual Studio removes the title each time).


    Best regards,
    Guang-Ming Bian - MSFT

    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Thursday, March 18, 2010 3:44 AM