How call and to pass parameters to ... TestRevised(sender As Object, e As EventArgs) in vb.net
Posted on 2014-10-20
There is a sub like:
Private Sub TestRevised(sender As Object, e As EventArgs) Handles FirstNameTextBox.TextChanged, LastNa...
Question: How can I call this from another event?
Dim myTextBox As New TextBox("FirstName")
myTextBox =CType( myTextBox , Object)
Then use TestRevised(myTextBox ,???)
Question: How can I do something like this?
I know that I could move my code to a new sub without any parameters and call it from both of these subs. But I want to learn how I could do this with parameters as stated above.