Hello all,
I am getting the following error:
Specified value out of range of acceptable values[/color red]
I get this after i have cleared all the forms within my project. When i am filling out the form a second time the textbox where i am getting this error has the following code :
The problem is though that when i hit Enter this code does not even get run. The error is in my parent form which is an mdiContainer for all the other forms. But i can hit the enter key on any of the other forms without a problem.
Any help, as always, is greatly appreciated.
Brian
I am getting the following error:
Specified value out of range of acceptable values[/color red]
I get this after i have cleared all the forms within my project. When i am filling out the form a second time the textbox where i am getting this error has the following code :
Code:
Private Sub txtDIPlan_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtDIPlan.KeyDown
If e.KeyCode.ToString = "Enter" Then
btnAdd.PerformClick()
End If
End Sub
The problem is though that when i hit Enter this code does not even get run. The error is in my parent form which is an mdiContainer for all the other forms. But i can hit the enter key on any of the other forms without a problem.
Any help, as always, is greatly appreciated.
Brian