CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: About combo box

  1. #1
    Join Date
    Jun 2001
    Posts
    29

    About combo box


    'Event controls on Gender combo box
    private Sub cboGender_DropDown()

    'cboGender.Locked = true
    'Elements in the combo box
    With cboGender
    .List(0) = "Female"
    .List(1) = "Male"
    End With

    End Sub




    as the code above, i wanna prohibit users from typing words into combo box and limit them to choose either male or female, but the cboGender.Locked doesn't help. How to solve? Or do i use the wrong event procedure?


  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: About combo box

    Set style to drop down list.

    David Paulson

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

Featured