Dear all,
How i can trigger the form events which is call from other forms(opened by showdialog) like the events load, button click etc.
thanks
Printable View
Dear all,
How i can trigger the form events which is call from other forms(opened by showdialog) like the events load, button click etc.
thanks
You don't artificially raise events. If you want something to happen then you call a method. If you want the same thing to happen when an event is raised then you call the same method from the event handler. An exception to that is the Click event of some controls, including the Button. You can call the PerformClick method of a Button and it will raise an actual Click event.
yes, your are right, i should use the method instead!, thanks very much.