Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27199

Sub with no control item.

$
0
0
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?

Viewing all articles
Browse latest Browse all 27199

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>