그룹박스 와 라디오버튼의 사용
*
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strCorse As String
Dim strLevel As String

If RadioButton1.Checked Then
strCorse = RadioButton1.Text
ElseIf RadioButton2.Checked Then
strCorse = RadioButton2.Text
ElseIf RadioButton3.Checked Then
strCorse = RadioButton3.Text
End If

If RadioButton4.Checked Then
strLevel = RadioButton4.Text
ElseIf RadioButton5.Checked Then
strLevel = RadioButton5.Text
ElseIf RadioButton6.Checked Then
strLevel = RadioButton6.Text
End If

TextBox1.Text = " You Seleted " & strCorse & "-" & strLevel
End Sub
End Class

그룹박스 와 라디오버튼 사용법

텍스트 박스의 출력 방법을 공부해보세여.

 

라디오버튼과 체크박스의 차이점

이 게시물을

댓글'1'
교교
  • 2014.01.14

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim Couress As String = ""
        Dim Levels As String = ""

        'Couress
        If vbRadio.Checked Then
            Couress = vbRadio.Text
        ElseIf CRadio.Checked Then
            Couress = CRadio.Text
        ElseIf JavaRadio.Checked Then
            Couress = JavaRadio.Text
        End If

        'Levels
        If STRadio.Checked Then
            Levels = STRadio.Text
        ElseIf MiRadio.Checked Then
            Levels = MiRadio.Text
        ElseIf HiRadio.Checked Then
            Levels = HiRadio.Text
        End If
        TextBox1.Text = ""
        TextBox1.Text = Couress & " 언어 " & Levels & "급 강좌를 신청 하였습니다"
    End Sub
End Class

 

 

1.PNG

 

이 댓글을

공유하기

SEARCH

MENU NAVIGATION