Working on a program I wrote (VB 2010 Express), a couple of years ago. I need to repeat some code but have forgotten much.
The code I have that (works) that I need to repeat in another form:
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
End Sub
I remember how to associate a sub with a control like a radio button or text box, etc., but this has me stumped (it does not seem associtated with a control). How do I insert/create the above Sub into a different form?
The code I have that (works) that I need to repeat in another form:
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
End Sub
I remember how to associate a sub with a control like a radio button or text box, etc., but this has me stumped (it does not seem associtated with a control). How do I insert/create the above Sub into a different form?