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

VS 2010 Me.Close

$
0
0
I have a number of VB.forms that all contain the same Private Sub. I want/need to replace all these subs with one single sub.

It seems to me I have two solutions :

a. Turn one of these Private Subs into a Public Sub (which seems to work fine)
b. Move the private sub to a separate VB.Class (in which case, a ‘Me.Close’ in the Private sub statement causes an error)

Is there a way to change the Me.close statement so that the original Private Sub can be used in a separate VB.Class ?

Viewing all articles
Browse latest Browse all 27366

Trending Articles



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