Click here to Skip to main content
15,899,825 members
Home / Discussions / C#
   

C#

 
QuestionHow to notify the parent? (passing event to the parent) Pin
Zinj1-Nov-02 9:13
sussZinj1-Nov-02 9:13 
AnswerRe: How to notify the parent? (passing event to the parent) Pin
John Fisher1-Nov-02 12:35
John Fisher1-Nov-02 12:35 
I think you would have probably figured it out by now if you were thinking in reverse. Instead of asking how you can pass the event to the parent, ask how the parent can susbcribe to the child's event. It's not much different, but it helps to think about it that way.

The functionality you are looking for will be coded the exact same way you code a handler for a button click.

To continue the explanation, you would need something like this (in the parent form):
   this.YourButton.MouseEnter += new EventHandler(this.MouseEnteredChild);

Of course, you'd have to have a function in the parent form of the type
   private void MouseEnteredChild(object sender, EventArgs args){}


John
GeneralRe: How to notify the parent? (passing event to the parent) Pin
Zinj2-Nov-02 9:32
sussZinj2-Nov-02 9:32 
QuestionBest way to store data? Pin
hammackj1-Nov-02 8:42
hammackj1-Nov-02 8:42 
AnswerRe: Best way to store data? Pin
TigerNinja_1-Nov-02 11:30
TigerNinja_1-Nov-02 11:30 
GeneralEnumerating Severs on Win9x Pin
mikasa1-Nov-02 7:31
mikasa1-Nov-02 7:31 
GeneralRe: Enumerating Severs on Win9x Pin
TigerNinja_1-Nov-02 11:29
TigerNinja_1-Nov-02 11:29 
GeneralRe: Enumerating Severs on Win9x Pin
mikasa1-Nov-02 11:40
mikasa1-Nov-02 11:40 
GeneralBetter RichTextBox (or custom textbox) Pin
Bog1-Nov-02 5:48
Bog1-Nov-02 5:48 
GeneralRe: Better RichTextBox (or custom textbox) Pin
Pete Bassett1-Nov-02 6:30
Pete Bassett1-Nov-02 6:30 
GeneralRe: Better RichTextBox (or custom textbox) Pin
Bog2-Nov-02 5:05
Bog2-Nov-02 5:05 
GeneralRe: Better RichTextBox (or custom textbox) Pin
Pete Bassett3-Nov-02 7:47
Pete Bassett3-Nov-02 7:47 
GeneralRe: Better RichTextBox (or custom textbox) Pin
Philip Fitzsimons1-Nov-02 6:54
Philip Fitzsimons1-Nov-02 6:54 
GeneralRe: Better RichTextBox (or custom textbox) Pin
Stephane Rodriguez.1-Nov-02 7:07
Stephane Rodriguez.1-Nov-02 7:07 
GeneralPassword in a Propertygrid Pin
Andy Hampshire1-Nov-02 4:00
Andy Hampshire1-Nov-02 4:00 
GeneralRe: Password in a Propertygrid Pin
Stephane Rodriguez.1-Nov-02 7:12
Stephane Rodriguez.1-Nov-02 7:12 
GeneralRe: Password in a Propertygrid Pin
Andy Hampshire1-Nov-02 7:23
Andy Hampshire1-Nov-02 7:23 
GeneralRe: Password in a Propertygrid - HELP !! Pin
Andy Hampshire1-Nov-02 14:22
Andy Hampshire1-Nov-02 14:22 
GeneralRe: Password in a Propertygrid - HELP !! Pin
leppie1-Nov-02 21:16
leppie1-Nov-02 21:16 
GeneralRe: Password in a Propertygrid - HELP !! Pin
Feng Qin3-Nov-02 21:24
Feng Qin3-Nov-02 21:24 
GeneralNot able to fetch first row of excel...... Pin
Saroj31-Oct-02 23:33
Saroj31-Oct-02 23:33 
GeneralRe: Not able to fetch first row of excel...... Pin
Stephane Rodriguez.1-Nov-02 1:59
Stephane Rodriguez.1-Nov-02 1:59 
Generalabout visual soucesafe6.0c Pin
Anonymous31-Oct-02 21:18
Anonymous31-Oct-02 21:18 
GeneralRe: about visual soucesafe6.0c Pin
TigerNinja_1-Nov-02 11:33
TigerNinja_1-Nov-02 11:33 
Generaldowncasting Object types Pin
Bilal31-Oct-02 20:33
Bilal31-Oct-02 20:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.