Results 1 to 3 of 3

Thread: ComboBox Problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    16
    I'm trying to create a combo box with certain criteria...what I want to do is that once one of those criteria has been chosen, it opens a form that corresponds to that particular criteria...ie: the combo box reads height, it opens the form that is categorised by 'height'.

  2. #2
    Lively Member Dr_Evil's Avatar
    Join Date
    Mar 2000
    Location
    Columbus, OH
    Posts
    105
    This should give you an idea of how to accomplish this:
    Code:
    Private Sub Combo1_Click()
    If Combo1.Text = "Item 1" Then
      Form2.Show
    End If
    
    If Combo1.Text = "Item 2" Then
      Form3.Show
    End If
    
    If Combo1.Text = "Item 3" Then
      Form4.Show
    End If
    
    End Sub
    
    -------------------------------------------------------
    
    Private Sub Form_Load()
    Combo1.AddItem "Item 1"
    Combo1.AddItem "Item 2"
    Combo1.AddItem "Item 3"
    End Sub
    Dr_Evil
    Senior Programmer
    VS6 EE
    VS.NET EA

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    16
    WICKED. it worked. thanks.

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