I have a basic vb question that I cannot get right. I want to call the KeyDown event of a textbox with a button click. This code throws an "Invalid Cast exception was unhandled" when I press the button. I assume I do not have the correct arguments but not sure what to use. Any help is appreciated, Thanks.
Private Sub btnConnect_Click(sender As Object, e As EventArgs) Handles btnConnect.Click 'give the user the option to click a "connect" button
tbxIPaddress_KeyDown(sender, New System.EventArgs())
End Sub