Calling Form from UserControl Layer
-
Hi Folks, My project Structure like below (Solution)Solution Name + ProjectName (Test) + Form1.cs + Form2.cs + Library Project(UI Layer) + Usercontrol1.cs + UserControl2.cs how can i call Form1.cs from UserControl1.cs Thanks & Regards Nath
The user control should raise events that the Form (or some form manager class) can subscribe to - much the same as when you put, say, a button on a form. The button doesn't know about the form, but the form responds to the buttons' events but only the ones that it has requested to be informed about.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)