Click here to Skip to main content
15,905,028 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 8:51
sohaib_a6-Jan-09 8:51 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 8:53
EliottA6-Jan-09 8:53 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 9:45
sohaib_a6-Jan-09 9:45 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 9:48
EliottA6-Jan-09 9:48 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak6-Jan-09 10:02
mveDave Kreskowiak6-Jan-09 10:02 
GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 10:33
EliottA6-Jan-09 10:33 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 11:01
sohaib_a6-Jan-09 11:01 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak6-Jan-09 11:09
mveDave Kreskowiak6-Jan-09 11:09 
OK, last time...

The CHILD form exposes the public Event and calls RaiseEvent when it needs a subscriber to know of a change. This much you got right. The child form does NOT use AddHandler and RemoveHandler on it's own events because it's not subscribing to itself.

The PARENT form needs to call AddHandler to subscribe to the events exposed by the child form. But, it can only do this if the parent form has a method that matches the header exposed by the event AND has an child form object (an instance of a class is called an "object"). So, after your parent form creates a child form object, it calls AddHandler to wire up the event exposed by the child form object to the method in the parent form that handles the event.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: How to update form control from an embedded form Pin
EliottA6-Jan-09 11:11
EliottA6-Jan-09 11:11 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 11:38
sohaib_a6-Jan-09 11:38 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak6-Jan-09 12:09
mveDave Kreskowiak6-Jan-09 12:09 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a6-Jan-09 22:48
sohaib_a6-Jan-09 22:48 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak7-Jan-09 2:10
mveDave Kreskowiak7-Jan-09 2:10 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a7-Jan-09 4:36
sohaib_a7-Jan-09 4:36 
GeneralRe: How to update form control from an embedded form Pin
Dave Kreskowiak7-Jan-09 9:56
mveDave Kreskowiak7-Jan-09 9:56 
GeneralRe: How to update form control from an embedded form Pin
sohaib_a10-Jan-09 23:06
sohaib_a10-Jan-09 23:06 
Questionhow can made login form in vb6 and vb.net?please send me coding Pin
mohammedali20066-Jan-09 6:39
mohammedali20066-Jan-09 6:39 
AnswerCP IGNORE Pin
leckey6-Jan-09 6:52
leckey6-Jan-09 6:52 
AnswerRe: how can made login form in vb6 and vb.net?please send me coding Pin
EliottA6-Jan-09 6:58
EliottA6-Jan-09 6:58 
AnswerRe: how can made login form in vb6 and vb.net?please send me coding Pin
Jon_Boy6-Jan-09 7:28
Jon_Boy6-Jan-09 7:28 
GeneralRe: how can made login form in vb6 and vb.net?please send me coding Pin
EliottA6-Jan-09 7:52
EliottA6-Jan-09 7:52 
GeneralRe: how can made login form in vb6 and vb.net?please send me coding Pin
Jon_Boy6-Jan-09 8:14
Jon_Boy6-Jan-09 8:14 
GeneralRe: how can made login form in vb6 and vb.net?please send me coding Pin
EliottA6-Jan-09 8:17
EliottA6-Jan-09 8:17 
GeneralRe: how can made login form in vb6 and vb.net?please send me coding Pin
leckey6-Jan-09 8:34
leckey6-Jan-09 8:34 
AnswerRe: how can made login form in vb6 and vb.net?please send me coding Pin
Dave Kreskowiak6-Jan-09 10:04
mveDave Kreskowiak6-Jan-09 10:04 

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.