Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c# create a popup without using Form

Tags:

c#

winforms

I have seen other apps do this, but can't figure out how it is done. I have a Form and clicking a button shows another Form, but it appears as two on the task bar.

I want a "popup" that does not do this task bar thing (as that has certain user repercussions).

Can I make the popup part of the first form. I realise I can add a panel to my form and bring it to front, but I want this popup to be outside my app's form.

How do I do this?

like image 601
Graham Avatar asked Jun 04 '26 01:06

Graham


2 Answers

Your Form has an property called ShowInTaskbar if you set this to false in your Popup Form, your Taskbar shows only one window.

MSDN article

like image 130
Nik Bo Avatar answered Jun 06 '26 16:06

Nik Bo


You can always hide your pop up form by setting this.ShowInTaskbar = false;.

like image 39
Zegar Avatar answered Jun 06 '26 16:06

Zegar