트랙바를 이용한 길이값 변환 출력.
*
Public Class Form1

Private Sub TrackBar1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.ValueChanged
Label2.Text = "Lenght in Inch = " &
Format(TrackBar1.Value / 5, "#.00")
End Sub
Private Sub TrackBar1_ValueChanged_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TrackBar1.ValueChanged
Label2.Text = "Lenght in Inch = " &
Format(TrackBar1.Value / 5, "#.00")
End Sub

Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click
TrackBar1.Value = CInt(CType(sender, Label).Text) * 5
End Sub

Private Sub Label4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label4.Click
TrackBar1.Value = CInt(CType(sender, Label).Text) * 5
End Sub

Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label5.Click
TrackBar1.Value = CInt(CType(sender, Label).Text) * 5
End Sub
End Class

트랙바를 이용해 값의 변환을 출력.

미터법으로 변환을 해보세여.

다른 활용 방법을 생각해보세여.

이 게시물을

공유하기

SEARCH

MENU NAVIGATION