5th Share for Visual Basic

Next application is called comboAPP

This application shows how to use combo box and getting value from it.

Here is the interface view :

here is the source code

Public Class Form1

Private Sub cmbpil_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbpil.SelectedIndexChanged

Select Case cmbpil.SelectedIndex

Case 1 : Label3.Text = cmbpil.SelectedItem

Case 2 : Label3.Text = cmbpil.SelectedItem

Case 3 : Label3.Text = cmbpil.SelectedItem

Case 4 : Label3.Text = cmbpil.SelectedItem

Case 5 : Label3.Text = cmbpil.SelectedItem

End Select

End Sub

End Class


Tagged: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: