performing button click automatically without performing it
-
hi friends i have a doubt in c# i have two forms one is windows form and the other user control form i have a button on each control .i added a user control on windows form at run time by this.controls.add(usrctrl1).Is it possible to run the user control button automatically on clicking windows form button .if it is possible how can it be plz reply it sir waiting for Your reply Sir
-
hi friends i have a doubt in c# i have two forms one is windows form and the other user control form i have a button on each control .i added a user control on windows form at run time by this.controls.add(usrctrl1).Is it possible to run the user control button automatically on clicking windows form button .if it is possible how can it be plz reply it sir waiting for Your reply Sir
-
hi friends i have a doubt in c# i have two forms one is windows form and the other user control form i have a button on each control .i added a user control on windows form at run time by this.controls.add(usrctrl1).Is it possible to run the user control button automatically on clicking windows form button .if it is possible how can it be plz reply it sir waiting for Your reply Sir
Create a public method in the user control that you call from the form's button_Click handler. In that method (in the user control) call the PerformClick method of the user control's button.
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)