简体   繁体   中英

How can I do a pop-up like explorer.exe in C# WinForms?

When we got an error message box in explorer.exe, this pop-up doesn't create another tab in status bar. But when I tried like:

MessageBox.Show("Error!");

in Windows Forms, this MessageBox is a separate tab. How can I perform all tabs in a single button? Thank you.

I don't think it is possible without some pinvoke win32 libraries.

You could create your own form and set the ShowInTaskbar property to false. Use the ShowDialog() instead of Show() , this will make your form modal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM