473,396 Members | 1,982 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.

How to show a ABOUT Form????????

How to show a ABOUT Form????????

Hello Everyone:
I use C# want to Create a Project. In my project. there are two
forms. One is main form, and another is a about form. In the about
form there are some information about my project. such as author's
information, product support and so on.
Now, I add a button in the main form, I want that if the user click
the button. It will show the about form . In button's event . the code
like this:
{
about.show();
}
but it doesn't work, if in Delphi. It will be work.
After that, I search the msdn. I know that there is a method called
AddOwnedForm(); so I coded the code like below:
{
Form cs =new Form();
this.AddOwnedForm (cs);
cs.Show();
}
This can show a new Form , but it is not the about form....
What I should do? I'm very sorry for my English , I 'm from China.
Mar 17 '08 #1
4 2192
"Delphiscn" <De*******@gmail.comwrote:
How to show a ABOUT Form????????
MyAboutForm f = new MyAboutForm();
f.ShowDialog(this);

Eq.
Mar 17 '08 #2
On Mon, 17 Mar 2008 06:35:23 -0700, Paul E Collins
<fi******************@CL4.orgwrote:
"Delphiscn" <De*******@gmail.comwrote:
>How to show a ABOUT Form????????

MyAboutForm f = new MyAboutForm();
f.ShowDialog(this);
Hmph. Not only did the OP multi-post (in m.p.dotnet.framework at
least...I wonder how many other newsgroups he hit), but the reply in that
other newsgroup had the same error the above reply has. No dispose!

To the OP, please see my reply in m.p.dotnet.framework for an explanation
as to the correct way to do this. And please don't multi-post again. If
you must post the same question to more than one newsgroup, learn how to
cross-post correctly.

Pete
Mar 17 '08 #3


"Paul E Collins" <fi******************@CL4.orgwrote in message
news:f-*********************@bt.com...
"Delphiscn" <De*******@gmail.comwrote:
>How to show a ABOUT Form????????

MyAboutForm f = new MyAboutForm();
f.ShowDialog(this);

Eq.

- or -

using (MyAboutForm f = new MyAboutForm()) {
f.ShowDialog(this);
}

To release any unmanaged resources created/maintained by the form's code.

HTH,
Mythran
Mar 17 '08 #4
"Peter Duniho" <Np*********@nnowslpianmk.comwrote:
the reply in that other newsgroup had the same error the above reply
has. No dispose!
Oops, yes. I was trying to keep it simple, I suppose, but without
Dispose it's incomplete.

Eq.
Mar 17 '08 #5

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

Similar topics

3
by: dp | last post by:
I am new to VB.NET and I have a simple question. How do I show a form from a command button click event? The code I have below is not working. I am trying to show the form frmAgent. What am I...
2
by: Ajai Kumar .R | last post by:
Hai all, I've two or more forms on my app. My requirement is, Have to show the first form asa the user press a button have to hide the first form and show the second form. If the user press the...
20
by: WindAndWaves | last post by:
Hi Gurus I was wondering if you can send me in the right direction: I have a table with about 300 rows. I want to make all of them invisible and when a user enters a code in a form then make...
5
by: Susan | last post by:
I have an application. When a user minimizes it it hides itselfs but stays activate in the system tray. Since it is hidden the user may think that they have exited the application and now may...
13
by: Tim Smallwood | last post by:
Hi, This is probably a stupid question, but I can't seem to get a form to show / load? In the older versions of VB I'd use frmMyform.show / load myForm, etc? I looked at the help file and it...
8
by: PAPutzback | last post by:
How do I keep the form up.
22
by: Zytan | last post by:
I have public methods in a form. The main form calls them, to update that form's display. This form is like a real-time view of data that is changing. But, the form may not exist (it is...
2
by: banderson | last post by:
Hello, I have a data entry form for a table with information about buildings and am having a problem making a combo box do what I want. I would like to make the combo box show a list of unique bldg...
3
by: janetopps | last post by:
I have a news website, with asp pages, which was on Access, and i upgraded to MySQL, i used Bullzip to transfer the data. It had about 1000 pages, which im now able to pull up on the public side. Im...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.