Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Please let me know how I can find the name or preferably the ID of the form that the current form has been called by in winforms.
regards
Posted
Updated 26-Mar-13 14:04pm
v2
Comments
Sergey Alexandrovich Kryukov 26-Mar-13 20:01pm    
Do you mean System.Windows.Forms? (Or Web forms?) Please tag "WinForms", or whatever is applicable.
—SA
[no name] 26-Mar-13 20:19pm    
That is probably entirely dependent on you and how you structured your code.

1 solution

Utilize Owner property of the form. Refer MSDN for more details.
 
Share this answer
 

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