Thread: Pop up that doesn't block my form

  1. #1
    Registered User
    Join Date
    Nov 2005

    Pop up that doesn't block my form

    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?

  2. #2
    Registered User
    Join Date
    Aug 2007
    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...

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    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.

    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.

  4. #4
    Registered User
    Join Date
    Nov 2005
    Thanks Mats!

    That was the words I think I need.

  5. #5
    Registered User
    Join Date
    Oct 2007
    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.

    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();
    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";

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 03:42 PM
  2. My UserControls dissapear off my form
    By zMan in forum C# Programming
    Replies: 2
    Last Post: 09-15-2004, 08:55 AM
  3. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  4. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM
  5. pointers
    By fanaonc in forum C Programming
    Replies: 3
    Last Post: 11-17-2001, 02:18 AM