Solved

Open Form

Posted on 2008-06-23
2
1,073 Views
Last Modified: 2012-05-05
This is a pretty simple question... I am looking for the code to open a form using C#. Currently, I have an application that has two forms. i want to be able to open the other form from the main form. How can I do this?
I tried this, but it did not work:
Form2.Show();

Open in new window

0
Comment
Question by:computerstreber
2 Comments
 
LVL 16

Accepted Solution

by:
burakiewicz earned 125 total points
Comment Utility
Form2 frm = new Form2();
frm.Show();
0
 
LVL 3

Author Closing Comment

by:computerstreber
Comment Utility
It worked... Thanks... I was so close...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now