From a Windows application form, I want a new form to pop up that aren't above the original form (blocking me from continuing to work with it). Hw do I do that?
From a Windows application form, I want a new form to pop up that aren't above the original form (blocking me from continuing to work with it). Hw do I do that?
You could set the new window's opacity to be translucent...
Another thing u can do is have the new window pop up at a certain corner of your screen that is a certain length and width that won't overlap your current window...
I thought - perhaps incorrectly - that the orignal poster wanted a "non-modal" dialog box - meaning a dialog box that is independent of the original application. But I could be wrong. If so, search for "non modal dialog box C#" in google.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Thanks Mats!
That was the words I think I need.
For that you'll probably need to make the popup dialog yourself.
Here it pops up up a window, and you can freely choose between the windows.
Code:using System; using System.Drawing; using System.Windows.Forms; public class Program : Form { public Program() { Button btn = new Button(); btn.Parent = this; btn.Location = new Point(10, 10); btn.Text = "Popup"; btn.Click += new EventHandler(Click); } void Click(object sender, EventArgs e) { PopupDialog Dlg = new PopupDialog(); Dlg.Show(); } } public class PopupDialog : Form { public PopupDialog() { this.Width /= 2; this.Height /= 2; Label label = new Label(); label.Parent = this; label.Location = new Point(10, 10); label.Text = "Popup"; } }