Click here to Skip to main content
15,891,846 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
I want get name title of WINDOW FORM from a handle of child form. i used function Getparent(..), GetAncestor(..) of method IntPtr, but it wrong.

wish help me.
thanks very much.
phan
Posted
Updated 31-Mar-10 20:17pm
v2

1 solution

The Parent property of a form isn't automatically set by the framework. You have to do it manually.

Once you do that, you can retrieve the form's title by retrieving this.Parent.Text

EDIT ========

Don't post both here AND the C# forum. It's enough to ask in just one of those two places.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900