Click here to Skip to main content
15,927,921 members
Home / Discussions / C#
   

C#

 
GeneralRe: access parent from a child control Pin
musefan20-May-09 23:02
musefan20-May-09 23:02 
GeneralRe: access parent from a child control Pin
Nagy Vilmos20-May-09 23:45
professionalNagy Vilmos20-May-09 23:45 
GeneralRe: access parent from a child control Pin
musefan20-May-09 23:58
musefan20-May-09 23:58 
GeneralRe: access parent from a child control Pin
DaveyM6920-May-09 23:35
professionalDaveyM6920-May-09 23:35 
AnswerRe: access parent from a child control Pin
OriginalGriff21-May-09 0:24
mveOriginalGriff21-May-09 0:24 
GeneralRe: access parent from a child control Pin
DaveyM6921-May-09 1:09
professionalDaveyM6921-May-09 1:09 
GeneralRe: access parent from a child control Pin
OriginalGriff21-May-09 1:39
mveOriginalGriff21-May-09 1:39 
GeneralRe: access parent from a child control Pin
DaveyM6921-May-09 1:57
professionalDaveyM6921-May-09 1:57 
Yeah Cool | :cool:

Static events are pretty dangerous, unless you explicitly unsubscribe from the event, the subscribing object will stay in memory even when you think it's gone as a reference is held to it in the delegate's invocation list!

Normally it's better to use instance ones, in which case you'd need a class level member variable
frmDetails fd; and then (possibly in the constructor)
fd = new frmDetails;
fd.Changed += ...


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)
Why are you using VB6? Do you hate yourself? (Christian Graus)

GeneralRe: access parent from a child control Pin
OriginalGriff21-May-09 2:04
mveOriginalGriff21-May-09 2:04 
AnswerRe: access parent from a child control Pin
Mahesh_Blr24-May-09 20:08
Mahesh_Blr24-May-09 20:08 
QuestionDatabase Connection: Leave Open or Open and Close each time Pin
Programm3r20-May-09 22:29
Programm3r20-May-09 22:29 
AnswerRe: Database Connection: Leave Open or Open and Close each time Pin
musefan20-May-09 22:35
musefan20-May-09 22:35 
QuestionRe: Database Connection: Leave Open or Open and Close each time Pin
Programm3r20-May-09 23:01
Programm3r20-May-09 23:01 
AnswerRe: Database Connection: Leave Open or Open and Close each time Pin
musefan20-May-09 23:09
musefan20-May-09 23:09 
GeneralRe: Database Connection: Leave Open or Open and Close each time Pin
Programm3r20-May-09 23:21
Programm3r20-May-09 23:21 
GeneralRe: Database Connection: Leave Open or Open and Close each time Pin
venom007-Jul-09 22:48
venom007-Jul-09 22:48 
GeneralRe: Database Connection: Leave Open or Open and Close each time Pin
musefan7-Jul-09 23:21
musefan7-Jul-09 23:21 
GeneralRe: Database Connection: Leave Open or Open and Close each time Pin
venom008-Jul-09 12:54
venom008-Jul-09 12:54 
AnswerRe: Database Connection: Leave Open or Open and Close each time Pin
J4amieC21-May-09 0:54
J4amieC21-May-09 0:54 
QuestionRe: Database Connection: Leave Open or Open and Close each time Pin
Programm3r21-May-09 2:31
Programm3r21-May-09 2:31 
AnswerRe: Database Connection: Leave Open or Open and Close each time Pin
J4amieC21-May-09 2:55
J4amieC21-May-09 2:55 
GeneralRe: Database Connection: Leave Open or Open and Close each time Pin
Programm3r21-May-09 3:15
Programm3r21-May-09 3:15 
GeneralRe: Database Connection: Leave Open or Open and Close each time Pin
Dave Kreskowiak21-May-09 4:11
mveDave Kreskowiak21-May-09 4:11 
Question.NET DashBoard Pin
AmmySA20-May-09 22:17
AmmySA20-May-09 22:17 
GeneralRe: .NET DashBoard [modified] Pin
musefan20-May-09 22:32
musefan20-May-09 22:32 

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.