Results 1 to 4 of 4

Thread: [2008] combobox help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    242

    Exclamation [2008] combobox help

    can some one help me :

    lets say when use drops down the combobox and selects germany the form named germany to be opened and this form with combobox to be hided or lets say user selected country turkey

    so form named turkey be opened and the form with combobox to be hiding..?!!


    can some one help me on this..?!
    < advertising link removed by moderator >

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] combobox help

    Handle the SelectedIndexChanged or SelectionChangeCommitted event, whichever is more appropriate, and then use a Select Case statement to determine which form to display based on which item is selected.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    Re: [2008] combobox help

    vb.net Code:
    1. Private Sub ComboBox1_SelectedIndexChanged( _
    2.     ByVal sender As System.Object, _
    3.     ByVal e As System.EventArgs _
    4. ) Handles ComboBox1.SelectedIndexChanged
    5.  
    6.     Me.Hide()
    7.  
    8.     If ComboBox1.SelectedItem.ToString = "Germany" Then
    9.         Germany.ShowDialog()
    10.     ElseIf ComboBox1.SelectedItem.ToString = "Turkey" Then
    11.         Turkey.ShowDialog()
    12.     End If
    13. End Sub

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    242

    Re: [2008] combobox help

    thanks mate works fine
    < advertising link removed by moderator >

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