Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » new to event controlled programming
Closed Thread
Old 01-05-2006, 02:59 AM   #1 (permalink)
 
Super Techie

Join Date: Mar 2003

Posts: 337

shdwsclan

Send a message via AIM to shdwsclan
Default new to event controlled programming

I'm new to event controlled programming with guis and such.
How would I achieve an "about" popup.

If any of you have seen an about box it basically dialague box that will pop up and will not let you access the parent program until its closed.

Is this sort of dialogue box built in that would produce such a result or would I need to make some sort of form class for this.

Could anyone show me how accomplish this in a code example.
The event would be any sort of button.
shdwsclan is offline  
Old 01-05-2006, 02:30 PM   #2 (permalink)
 
Super Techie

Join Date: Mar 2003

Posts: 337

shdwsclan

Send a message via AIM to shdwsclan
Default

Sorry, I solved it myself.
Maybe I shouldn't program late at night.

Here is a snippet.

This is the object instatiation.
Form1 someForm = new Form1();

This is what you call to make the dialogue appear.
someForm.ShowDialog();
shdwsclan is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On