combo box
*
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


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

이 게시물을

댓글'3'

<iframe width="640" height="360" src="/files/attach/outimage/youtube.com/embed/fk2moxggxbe.gif" frameborder="0" allowfullscreen></iframe>

이 댓글을

이 댓글을

V닉맨
  • 2013.12.31
  • 수정: 2013.12.31 08:46:19

 Dim f As New System.IO.StreamWriter("c:\test.txt", True)
        f.WriteLine(TextBox1.Text)
        f.Close()
        f.Dispose()
       

버튼1에 위내용 추가하여 c:\test.txt에 TextBox입력내용 저장

--------------------------------------------------------------

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
        Process.Start("notepad", "c:\test.txt")
    End Sub

 

버튼4 만들어서 Test.txt파일 불러오기 

이 댓글을

공유하기

SEARCH

MENU NAVIGATION