IP 주소로는 textbox
이 4 개 있습니다. 각 textbox
은 옥타 데이트 각각에 해당됩니다. vb.net 두 개 이상의 이벤트를 결합하십시오.
컨트롤이 포커스 또는 사용자가 ENTER
를 누를 때,이 값보다 큰 255
Private Sub txtParametersIpFirst_KeyPress(sender As Object, e As KeyPressEventArgs) Handles txtParametersIpFirst.KeyPress
If e.KeyChar = Microsoft.VisualBasic.ChrW(Keys.Return) Then
'Check if Value is more than 255
End If
End Sub
Private Sub txtParametersIpFirst_LostFocus(sender As Object, e As EventArgs) Handles txtParametersIpFirst.LostFocus
'Check if Value is more than 255
End Sub
이 두 이벤트가 결합 될 무언가가 있는지 확인합니다 잃는다
?