mrpddnos Posted December 11, 2008 Posted December 11, 2008 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 Quote
tfowler Posted December 12, 2008 Posted December 12, 2008 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 Quote
mrpddnos Posted December 12, 2008 Author Posted December 12, 2008 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)? Quote
MrPaul Posted December 15, 2008 Posted December 15, 2008 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: Quote Never trouble another for what you can do for yourself.
mrpddnos Posted December 16, 2008 Author Posted December 16, 2008 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? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.