반응형 비주얼베이직강좌3 visual basic,비주얼베이직강좌-레지스트리 읽고 쓰기,Registry ,GetValue,SetValue Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim rReg As String = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\WinBaram Homepage", "이름", Nothing) Label1.Text = rReg End Sub Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\WinBaram Homepag.. 2017. 2. 4. visual basic,비주얼베이직강좌-MsgBox yes,no 선택,MsgBoxStyle,MsgBoxResult Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load If MsgBox("choice?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then Label1.Text = "yes" Else Label1.Text = "no" End If End SubEnd Class 2017. 2. 4. 비주얼베이직강좌,visual basic .net-누른 키보드 값 알아보기, e.KeyChar ,KeyPressEvent, Public Class Form1 Private Sub Form1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles Me.KeyPress If e.KeyChar = "0" Then MessageBox.Show("0 enter") End If End SubEnd Class 2017. 2. 3. 이전 1 다음 반응형