Click here to Skip to main content
15,920,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: Do not allow taskmanager to close my app Pin
spiritboy13-Jan-09 8:02
spiritboy13-Jan-09 8:02 
GeneralRe: Do not allow taskmanager to close my app Pin
Dave Kreskowiak13-Jan-09 10:16
mveDave Kreskowiak13-Jan-09 10:16 
GeneralRe: Do not allow taskmanager to close my app Pin
Ravi Bhavnani13-Jan-09 12:28
professionalRavi Bhavnani13-Jan-09 12:28 
GeneralRe: Do not allow taskmanager to close my app Pin
Giorgi Dalakishvili13-Jan-09 8:44
mentorGiorgi Dalakishvili13-Jan-09 8:44 
GeneralRe: Do not allow taskmanager to close my app Pin
Dave Kreskowiak13-Jan-09 10:09
mveDave Kreskowiak13-Jan-09 10:09 
GeneralRe: Do not allow taskmanager to close my app Pin
Ravi Bhavnani13-Jan-09 12:20
professionalRavi Bhavnani13-Jan-09 12:20 
AnswerRe: Do not allow taskmanager to close my app Pin
musefan13-Jan-09 8:27
musefan13-Jan-09 8:27 
GeneralRe: Do not allow taskmanager to close my app Pin
EliottA14-Jan-09 14:56
EliottA14-Jan-09 14:56 
Questionhow can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
mohammedali200613-Jan-09 6:43
mohammedali200613-Jan-09 6:43 
AnswerRe: how can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
EliottA13-Jan-09 6:58
EliottA13-Jan-09 6:58 
AnswerRepost Pin
Not Active13-Jan-09 7:06
mentorNot Active13-Jan-09 7:06 
AnswerRe: how can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
dan!sh 13-Jan-09 7:08
professional dan!sh 13-Jan-09 7:08 
AnswerRe: how can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
CPallini13-Jan-09 7:48
mveCPallini13-Jan-09 7:48 
AnswerRe: how can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
Dave Kreskowiak13-Jan-09 7:56
mveDave Kreskowiak13-Jan-09 7:56 
AnswerCP IGNORE THIS COMPLETE IDIOT FOREVER AND EVER AND EVER!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
leckey13-Jan-09 9:04
leckey13-Jan-09 9:04 
GeneralAgreed! Pin
DaveyM6913-Jan-09 9:36
professionalDaveyM6913-Jan-09 9:36 
GeneralRe: Agreed! Pin
leckey13-Jan-09 9:38
leckey13-Jan-09 9:38 
AnswerRe: how can made clinic project in c#.net?HOW CAN EASY LEANING VISUAL STUDIO .NET 2003 OR 2005? Pin
scottgp13-Jan-09 9:38
professionalscottgp13-Jan-09 9:38 
QuestionInitiating a process from child Pin
Lodeclaw13-Jan-09 6:41
Lodeclaw13-Jan-09 6:41 
AnswerRe: Initiating a process from child Pin
musefan13-Jan-09 7:05
musefan13-Jan-09 7:05 
GeneralRe: Initiating a process from child Pin
Lodeclaw13-Jan-09 8:56
Lodeclaw13-Jan-09 8:56 
GeneralRe: Initiating a process from child Pin
musefan13-Jan-09 22:26
musefan13-Jan-09 22:26 
I dont think you can take another approach. If you want to do something, when another form changes you need to listen for that change.

I dont know what your exact requirements are but perhaps you could use static functions in another class. Or just call the function by accessing the child forms parent form.

something like (though i have not tested):

FormOfTypeParent parentForm = (FormOfTypeParent)this.ParentForm;
parentForm.MyFunction();



FormOfTypeParent = the form type that is your parent form i.e. MainForm, Form1 etc.

calling this when a variable changes, make the variable a property i.e.

private bool changingThing = false;

public bool ChangingThing{
get{return changingThing;}
set{changingThing = value;ProcessChange();}
}

private void ProcessChange()
{
if(changingThing)
{
FormOfTypeParent parentForm = (FormOfTypeParent)this.ParentForm;
parentForm.MyFunction();
}
}

QuestionRe: Initiating a process from child Pin
Lodeclaw14-Jan-09 5:31
Lodeclaw14-Jan-09 5:31 
Questionincreasing number of panels dynamically Pin
jananiSreedhar13-Jan-09 6:12
jananiSreedhar13-Jan-09 6:12 
AnswerRe: increasing number of panels dynamically Pin
EliottA13-Jan-09 6:15
EliottA13-Jan-09 6:15 

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.