Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Draw Circles on GUI? Pin
Abhinav S22-Mar-13 16:43
Abhinav S22-Mar-13 16:43 
AnswerRe: How to Draw Circles on GUI? Pin
cjb11025-Mar-13 0:14
cjb11025-Mar-13 0:14 
GeneralRe: How to Draw Circles on GUI? Pin
Stuck At Zero25-Mar-13 10:19
Stuck At Zero25-Mar-13 10:19 
GeneralRe: How to Draw Circles on GUI? Pin
cjb11025-Mar-13 21:37
cjb11025-Mar-13 21:37 
QuestionBest way to read string xml? [Solved] Pin
Boipelo21-Mar-13 7:58
Boipelo21-Mar-13 7:58 
AnswerRe: Best way to read string xml? Pin
Richard Deeming21-Mar-13 8:06
mveRichard Deeming21-Mar-13 8:06 
GeneralRe: Best way to read string xml? Pin
Boipelo21-Mar-13 8:12
Boipelo21-Mar-13 8:12 
GeneralRe: Best way to read string xml? Pin
Keld Ølykke22-Mar-13 0:27
Keld Ølykke22-Mar-13 0:27 
GeneralRe: Best way to read string xml? Pin
Boipelo22-Mar-13 5:32
Boipelo22-Mar-13 5:32 
AnswerRe: Best way to read string xml? Pin
PIEBALDconsult21-Mar-13 8:49
mvePIEBALDconsult21-Mar-13 8:49 
GeneralRe: Best way to read string xml? Pin
Boipelo21-Mar-13 9:19
Boipelo21-Mar-13 9:19 
AnswerRe: Best way to read string xml? Pin
jschell21-Mar-13 8:55
jschell21-Mar-13 8:55 
GeneralRe: Best way to read string xml? Pin
Boipelo21-Mar-13 9:14
Boipelo21-Mar-13 9:14 
GeneralRe: Best way to read string xml? Pin
jschell22-Mar-13 9:57
jschell22-Mar-13 9:57 
Questionform closing event not going to method Pin
MichCl21-Mar-13 4:30
MichCl21-Mar-13 4:30 
AnswerRe: form closing event not going to method Pin
PIEBALDconsult21-Mar-13 5:01
mvePIEBALDconsult21-Mar-13 5:01 
GeneralRe: form closing event not going to method Pin
MichCl21-Mar-13 5:31
MichCl21-Mar-13 5:31 
GeneralRe: form closing event not going to method Pin
PIEBALDconsult21-Mar-13 8:58
mvePIEBALDconsult21-Mar-13 8:58 
AnswerRe: form closing event not going to method Pin
Eddy Vluggen21-Mar-13 5:59
professionalEddy Vluggen21-Mar-13 5:59 
GeneralRe: form closing event not going to method Pin
MichCl21-Mar-13 8:02
MichCl21-Mar-13 8:02 
AnswerRe: form closing event not going to method Pin
Eddy Vluggen21-Mar-13 9:04
professionalEddy Vluggen21-Mar-13 9:04 
AnswerRe: form closing event not going to method Pin
Pete O'Hanlon21-Mar-13 9:07
mvePete O'Hanlon21-Mar-13 9:07 
If you definitely need access to the closing event from your control, you need to walk up the Parent hierarchy until you find the Form. It would look something like this:
C#
private Form ParentForm(object item)
{
  if (((Form)item).Parent is Form)
    return ((Form)item).Parent;
  return ParentForm(item);
}
Then, it's a simple matter of hooking into the closing event handler.

I really wouldn't recommend doing it this way, but you could.
I was brought up to respect my elders. I don't respect many people nowadays.

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: form closing event not going to method Pin
MichCl21-Mar-13 9:18
MichCl21-Mar-13 9:18 
QuestionHow to combine drawing Pin
wgy_work20-Mar-13 19:04
wgy_work20-Mar-13 19:04 
AnswerRe: How to combine drawing Pin
Richard MacCutchan20-Mar-13 22:50
mveRichard MacCutchan20-Mar-13 22:50 

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.