Results 1 to 14 of 14

Thread: Combobox Problem!!!

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Unhappy Combobox Problem!!!

    I added a few items in the combobox dropdown list at the form load event.
    so i did this code:
    Code:
     Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            ComboBox1.Items.Add("Mr.")
            ComboBox1.Items.Add("Mrs.")
        End Sub
    My form looks like this:
    Attachment 72421
    At the runtime I dont want to allow the user to write something in the combobox as a text.The user can only select an item from the dropdown list of the combobox.
    How to do this?
    Last edited by gautamshaw; Feb 21st, 2010 at 01:22 PM.

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