Results 1 to 4 of 4

Thread: Combobox default [Resolved]

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Posts
    12

    Combobox default [Resolved]

    VB.net

    I have a several comboboxes populated by way of a Dataset, I would like the default view to be nothing. Is there a way to do this and if so, how...

    I've tried several things and they haven't worked.

    This seems like it would be very simple to do, just don't know how.

    Thank you for any help you can offer.
    Last edited by ettropics; Feb 23rd, 2003 at 07:55 PM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: Combobox default

    Originally posted by ettropics
    VB.net

    I have a several comboboxes populated by way of a Dataset, I would like the default view to be nothing. Is there a way to do this and if so, how...
    I've tried several things and they haven't worked.
    This seems like it would be very simple to do, just don't know how.
    Thank you for any help you can offer.
    try this :
    VB Code:
    1. ComboBox1.SelectedIndex() = -1

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You can also set the selecteditem to nothing:

    ComboBox1.SelectedItem = Nothing

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2003
    Posts
    12

    Thank you

    I can't believe I couldn't figure that one out.

    Thank you both, you have helped me before and I appreciate all of your input and help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width