473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Form within a form call?

I have a main form, call it my GUI for my app if you will, I have
another form, an about box. I want to call the about box when I click
a menu item but I don't know how to do it, and it seems so simple yet
its been eating me up for the better part of the afternoon. =(

Any help would be appreciated.
Nov 16 '05 #1
2 6453
I assume you have set up the menu OK? If so then just put something like the
following in the menu item Click handler -

AboutForm aboutForm1 = new AboutForm();
aboutForm1.Show();

AboutForm is the class name for the about box form.

Steve

"Leonard4" <le******@hotmail.com> wrote in message
news:6d**************************@posting.google.c om...
I have a main form, call it my GUI for my app if you will, I have
another form, an about box. I want to call the about box when I click
a menu item but I don't know how to do it, and it seems so simple yet
its been eating me up for the better part of the afternoon. =(

Any help would be appreciated.

Nov 16 '05 #2
Hi Steve,

I'd like to make a little correction. Since it is about 'About' box usually
it is shown modal

Thus the code, IMHO, should be:

using(AboutForm aboutForm1 = new AboutForm())
{
aboutForm1.ShowDialog();
}

--

Stoitcho Goutsev (100) [C# MVP]
"Steve Willcock" <st***@N-O-S-P-A-Mwillcockconsulting.com> wrote in message
news:cg*******************@news.demon.co.uk...
I assume you have set up the menu OK? If so then just put something like the following in the menu item Click handler -

AboutForm aboutForm1 = new AboutForm();
aboutForm1.Show();

AboutForm is the class name for the about box form.

Steve

"Leonard4" <le******@hotmail.com> wrote in message
news:6d**************************@posting.google.c om...
I have a main form, call it my GUI for my app if you will, I have
another form, an about box. I want to call the about box when I click
a menu item but I don't know how to do it, and it seems so simple yet
its been eating me up for the better part of the afternoon. =(

Any help would be appreciated.


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: TG | last post by:
Dear PHP Group, I have two forms that are used to collect user information. The first one takes user inputted values such as fullname, city, address etc. I want these values to display in the...
6
by: Bob | last post by:
Declaring a module level form object in multiple froms within a project to show another project form causes a stack overflow and other assorted errors. Can anyone help?
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
4
by: excelleinc.com | last post by:
Hello, I'm trying to put sub that's shared between all forms in my app in module so when I make change I just change it one time. This sub should execute and then invoke sub defaults() that's...
2
by: jasonhartsoe | last post by:
I'm using Visual Studio 2005 Team Edition....using visual basic. I'm trying to use the webbrowser control. In the webbrowser control I have it got to a page where there is a form. It waits for...
5
by: Stephen Plotnick | last post by:
I'm very new to VB.NET, or any VB. I need to have form1 call form2 which calls form3, etc. I am able to use oledb in form1 to get the data. I build all the data for form2 and form3 from...
5
by: Miro | last post by:
I will try my best to ask this question correctly. I think in the end the code will make more sence of what I am trying to accomplish. I am just not sure of what to search for on the net. I...
10
by: menashay | last post by:
Hello, I am absolute beginner in C# so pardon me if the following question is too easy. I have a form with a one button. When I click the button I want to display a message that reads...
1
by: =?Utf-8?B?R3JlZw==?= | last post by:
When loading my project i get the following error message. The form referred to itself during construction from a default instance, which led to infinite recursion. Within the Form's constructor...
4
by: Harlequin | last post by:
I have a question concerning the need to trigger events within a "child" subform which is itself enbedded within a master "parent" form and which is accessible via a tab in the parent form. Becuase...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.