What's new

Closed Combo Box Code for vb.net

Status
Not open for further replies.

Feui

Forum Veteran
Elite
Joined
Nov 22, 2017
Posts
2,181
Solutions
91
Reaction
1,237
Points
841
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.

Similar threads

Back
Top