Click here to Skip to main content
15,895,667 members
Home / Discussions / C#
   

C#

 
AnswerRe: polymorphism Pin
Abhinav S8-Jul-10 5:37
Abhinav S8-Jul-10 5:37 
GeneralRe: polymorphism Pin
netJP12L8-Jul-10 5:49
netJP12L8-Jul-10 5:49 
GeneralRe: polymorphism Pin
Ennis Ray Lynch, Jr.8-Jul-10 6:02
Ennis Ray Lynch, Jr.8-Jul-10 6:02 
AnswerRe: polymorphism Pin
Keith Barrow8-Jul-10 6:30
professionalKeith Barrow8-Jul-10 6:30 
GeneralRe: polymorphism Pin
netJP12L8-Jul-10 6:36
netJP12L8-Jul-10 6:36 
GeneralRe: polymorphism Pin
Keith Barrow8-Jul-10 7:44
professionalKeith Barrow8-Jul-10 7:44 
QuestionDetecting Button Clicks In Outlook Pin
euroazn8-Jul-10 4:28
euroazn8-Jul-10 4:28 
QuestionGet Parent form name in custom control Pin
kartheesh8-Jul-10 2:36
kartheesh8-Jul-10 2:36 
Hi Experts,

How to get the parent form name in custom control.
For ex: If the custom control is placed within tab control in mytest form, then my expected result in custom control shall be mytest.

I tried using following options available with custom control
1) this.parent.Findform() : returning null value (this works if the custom control is placed in form directly) fails if the custom control is placed in container i.e in tabcontrol,groupbox etc.
2) this.FindForm() : returning null value
3) this.Parent.Parent: not expected result

Note: In usercontrol there is option available as this.parentform which returns form name. same is not available in custom control

Appreciate to get help in this regard.

Regards
Kartheesh M
AnswerRe: Get Parent form name in custom control Pin
Ennis Ray Lynch, Jr.8-Jul-10 4:26
Ennis Ray Lynch, Jr.8-Jul-10 4:26 
AnswerRe: Get Parent form name in custom control [modified] Pin
kartheesh8-Jul-10 22:31
kartheesh8-Jul-10 22:31 
AnswerRe: Get Parent form name in custom control Pin
William Winner8-Jul-10 8:04
William Winner8-Jul-10 8:04 
AnswerRe: Get Parent form name in custom control Pin
Roger Wright8-Jul-10 16:56
professionalRoger Wright8-Jul-10 16:56 
QuestionProcess in C# (Open exe) Pin
ShafiqA8-Jul-10 0:36
ShafiqA8-Jul-10 0:36 
AnswerRe: Process in C# (Open exe) Pin
monstale8-Jul-10 0:53
monstale8-Jul-10 0:53 
AnswerRe: Process in C# (Open exe) Pin
Peace ON8-Jul-10 0:59
Peace ON8-Jul-10 0:59 
GeneralRe: Process in C# (Open exe) Pin
ShafiqA8-Jul-10 1:13
ShafiqA8-Jul-10 1:13 
GeneralRe: Process in C# (Open exe) Pin
Peace ON8-Jul-10 1:38
Peace ON8-Jul-10 1:38 
GeneralRe: Process in C# (Open exe) Pin
ShafiqA8-Jul-10 1:53
ShafiqA8-Jul-10 1:53 
GeneralRe: Process in C# (Open exe) Pin
Peace ON8-Jul-10 3:02
Peace ON8-Jul-10 3:02 
AnswerRe: Process in C# (Open exe) Pin
Calla8-Jul-10 3:19
Calla8-Jul-10 3:19 
QuestionHow to remove character from string Pin
M Riaz Bashir7-Jul-10 22:09
M Riaz Bashir7-Jul-10 22:09 
AnswerRe: How to remove character from string Pin
R. Giskard Reventlov7-Jul-10 22:19
R. Giskard Reventlov7-Jul-10 22:19 
AnswerRe: How to remove character from string Pin
Calla7-Jul-10 22:22
Calla7-Jul-10 22:22 
GeneralRe: How to remove character from string Pin
R. Giskard Reventlov7-Jul-10 22:30
R. Giskard Reventlov7-Jul-10 22:30 
GeneralRe: How to remove character from string PinPopular
Calla7-Jul-10 22:46
Calla7-Jul-10 22:46 

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.