Set Application name in Task Manager's Applications Tab

前端 未结 1 1267

I have a WinForms application written in C# for .NET 3.5 that needs to show a specific name in the Task Manager\'s Applications tab. However, I need for this text to be differen

1条回答
  •  孤城傲影
    2021-01-21 10:46

    VB6.0 forms applications used a hidden "parking window" as the true main window of the application. This is how it allowed the task manager name to differ from the main window name. In .Net applications the main window is the true main window of the application.

    You could replicate the behavior by starting a hidden form which calls your displayable form but I don't recommend it since you risk getting your application into a state where there is no visible UI but the process is still running.

    0 讨论(0)
提交回复
热议问题