VB.NET

combo box

2013.12.31

* Public Class Form1


Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
ComboBox1.Items.Clear()
MsgBox("지웠냐?" + ComboBox1.Text)
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ComboBox1.Items.Add(TextBox1.Text)
TextBox1.Text = ""
MsgBox("추가" + ComboBox1.Text)
End Sub

Private Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
MsgBox("클릭했냐?" + ComboBox1.Text)
End Sub
End Class


각버튼누를때마다 메세지박스 출력 하게 하였습니다..