I have a windows application with only 1 form. Is there a way to retrieve the window title of this form (when it's running)?
Asked
Active
Viewed 266 times
0
-
5Did you try `this.Text?` – LarsTech Feb 15 '17 at 19:57
-
Please add some details to your question. Do you mean a form of another application or do you mean your own form? – ventiseis Feb 15 '17 at 19:59
-
@LarsTech That's what I wanted... Thanks – UFC Insider Feb 15 '17 at 20:00
1 Answers
1
If you're using WinForms, see this answer.
If you're using WPF, see this answer.
Since you asked about C#, you're probably NOT using the Windows SDK. But if you are, then see this page.

Community
- 1
- 1