Solved

Open Form

Posted on 2008-06-23
2
1,074 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
ID: 21848575
Form2 frm = new Form2();
frm.Show();
0
 
LVL 3

Author Closing Comment

by:computerstreber
ID: 31469874
It worked... Thanks... I was so close...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Library to convert HTML to PDF. 8 55
String manipulation 15 64
How can I set a timer to automatically take a picture using the Xamarin MediaPlugin 2 45
c# string handling 1 26
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

914 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

15 Experts available now in Live!

Get 1:1 Help Now