Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi guys,

 

I'm writing a small program. The main functionalities are functioning properly. Now I want to add a popup box with information about te program. (Some sort of "about" window. Can anyone help me get started with that?

 

yours,

bernhard

 

http://www.pdd-ig.nl/about.jpg

Posted

Are you using Visual Studio.NET? If so, select Project -> Add Windows Form and select the About Box template. If not, you'll have to design your own new form. Then you'll have to instantiate the Form and call WhateverYouNameTheForm.ShowDialog() in the Click event of your "About 5th G" menu item.

 

Todd

Posted
thanks Todd. I use Visual Studio. There is one small problem. When the "aboutbox" is launched I can press the OK button all I want, nothing happens. How can I use the OK button to close only that form (and not the whole application)?
Posted

ShowDialog() not Show()

 

You need to use the ShowDialog() method to show the About form, not Show():

 

AboutForm about = new AboutForm();
about.ShowDialog();

 

Good luck :cool:

Never trouble another for what you can do for yourself.
Posted

Re: ShowDialog() not Show()

 

Thanks paul! You're almost a life-saver! The about box works now. Do you by any chance know how I can have the input from a form be emailed to me? I'm writing a program that about 40 people are going to test for me. One of the forms I use is an questionere that the user may fill in. And then send to me. How can I do this?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...