🔒 Closed Combo Box Code for vb.net

Status
Not open for further replies.

Feui

Elite
May Code po ba for this kind of Problem?

Problem:
If isang item ay i-seselect ko dun sa Combo Box sya ay mag po-proceed sa Another form like form3 or form 4. Or kailangan pa po mag lagay ng Isang Button Para makapag Proceed sya?

Gusto ko po kase sana gamitin yung combo box para mapunta sa Ibang Form Pwede po ba sya? If Hindi ano po pwedeng Tool para dun?

Basta po dapat may selection sya para mapunta saIbang Form.

Visual Basic Code po <3 thanks
 
pwede po yan sir parang ganto. try nyo po
Code:
    Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
        Dim selection As String = ComboBox1.SelectedItem
        If Not selection = String.Empty Then
            If selection = "form2" Then
                Form2.ShowDialog()
            ElseIf selection = "form3" Then
                Form3.ShowDialog()
            ElseIf selection = "form4" Then
                Form4.ShowDialog()
            End If
        End If
    End Sub
vbproject download link: You do not have permission to view the full content of this post. Log in or register now.
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 563
    Views
  • 4
    Participants
Last reply from:
Shiraori

Trending Topics

Online now

Members online
1,028
Guests online
1,436
Total visitors
2,464

Forum statistics

Threads
2,290,695
Posts
29,066,029
Members
1,211,490
Latest member
bakoss
Back
Top