See if this helps for bypassing the Validation of a TextBox.
1 TextBox, 1 Button
Public Class Form1 Private bValidateTextBox As Boolean = True Private Sub Button1_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseEnter bValidateTextBox = False '// Disable Validation. End Sub Private Sub Button1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseLeave bValidateTextBox = True '// Enable Validation. End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click '// do stuff here. MsgBox("TextBox Validation was Canceled") '// for testing. End Sub Private Sub TextBox1_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles TextBox1.Validating If bValidateTextBox Then '// validating code here. MsgBox(TextBox1.Text) '// for testing. End If End Sub End Class
Edited by codeorder: typo
Thanks for your help. It works very well.
Hi. I have a .raw file and I want to display it as hex. why? because i want to try and replicate what 010 Editor can do which is read ...
I was wondering what would be the best way to implement an algorythm to figure out what side a circle has collided with a rectangle?
After check to make sure ...
I am currently practicing my java skills by doing this program called car rental management system. I am creating a login page where when the user login it ...