🔒 Closed Combo Box Code for vb.net

Status
Not open for further replies.

Feui

Forum Veteran
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
  • 560
    Views
  • 4
    Participants
Last reply from:
Shiraori

Trending Topics

Online now

Members online
884
Guests online
723
Total visitors
1,607

Forum statistics

Threads
2,279,807
Posts
28,993,327
Members
1,226,094
Latest member
armagedon32
Back
Top