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

User control, 2 instances in the same .net app

$
0
0
I have a custom user control as part of my "solution".

I load the control twice at runtime on 2 different forms within the same app



Private WithEvents CG As CG.WINDOW

' later

CG = New CG.WINDOW




an event in one of the user controls on one form may execute the event in the other.

very frustrating

how can I completely separate them ?


(this is a VB6 interop user control)

Viewing all articles
Browse latest Browse all 27196

Trending Articles



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