|
-
May 3rd, 2007, 06:58 AM
#1
Thread Starter
Addicted Member
Form inheritance
Suppose, I have a Form "Form1" and a button "btn1" on it in an application
on click event of btn1 I Wrote
MessageBox.Show(self.Name);
Now I inherite "Form2" from "Form1".
and on click event of btn1 I Wrote
MessageBox.Show("Hello");
Now when I press button of Form2 it fires both events.
How to restrict firing event of form1?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|