6 Replies - 51139 Views - Last Post: 31 July 2009 - 09:25 AM Rate Topic: -----

#1 Wing  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 27-July 09

How to make a pop up message?

Post icon  Posted 27 July 2009 - 11:32 AM

I want to show a pop up message when the user clicks an option in the menu, with a 'Close' button that will close the pop up. I searched the forums and can't find anything.
Here's an example of what I want, just, I want it in an app not web browser :P

You think somethng as simple as a pop up window would be easy to find with Google, but I couldn't find anything :(

Thanks to anyone who replys

This post has been edited by Wing: 27 July 2009 - 11:32 AM


Is This A Good Question/Topic? 0
  • +

Replies To: How to make a pop up message?

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1638
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: How to make a pop up message?

Posted 27 July 2009 - 11:37 AM

Take a look at the MessageBox Class for accomplishing this :)
Was This Post Helpful? 0
  • +
  • -

#3 Core  Icon User is offline

  • using System.Linq;
  • member icon

Reputation: 774
  • View blog
  • Posts: 5,097
  • Joined: 08-December 08

Re: How to make a pop up message?

Posted 27 July 2009 - 11:37 AM

You need to use the MessageBox class to display it.

Edit: PsychoCoder already got the link. :)
Was This Post Helpful? 0
  • +
  • -

#4 Locke  Icon User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 520
  • View blog
  • Posts: 5,596
  • Joined: 20-March 08

Re: How to make a pop up message?

Posted 27 July 2009 - 11:38 AM

You mean you just want a Message Box?

System.Windows.Forms.MessageBox.Show("Pop-up box!");


You can either do using System.Windows.Forms; and then just have MessageBox.Show("....."); or the other way I showed.

Edit: Wow, I got beat by not one, but 2 mods...:lol:

This post has been edited by Locke: 27 July 2009 - 11:40 AM

Was This Post Helpful? 0
  • +
  • -

#5 SixOfEleven  Icon User is offline

  • using Caffeine;
  • member icon

Reputation: 945
  • View blog
  • Posts: 6,342
  • Joined: 18-October 08

Re: How to make a pop up message?

Posted 27 July 2009 - 11:55 AM

Along with a message box you can also create your own pop up style window form. Then when you want to display the form you would do something like this:

Form2 form2 = new Form2();

form2.ShowDialog();



This would give you more control over the pop up letting you use a bigger font, custom buttons, etc.

*editted*
Should have said form, not window.

This post has been edited by SixOfEleven: 27 July 2009 - 11:57 AM

Was This Post Helpful? 0
  • +
  • -

#6 Ändrew  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 25
  • View blog
  • Posts: 312
  • Joined: 21-April 08

Re: How to make a pop up message?

Posted 27 July 2009 - 11:51 PM

And to go further while making your own custum messagebox you could make a struct for it with methods like the MessageBox Class.
Was This Post Helpful? 0
  • +
  • -

#7 Wing  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 27-July 09

Re: How to make a pop up message?

Posted 31 July 2009 - 09:25 AM

Sorry for the late reply, been busy :P Anyway got it to work, thanks guys :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1