We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,039 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Loading a Second Form from the First Form Load

Hello, I am attempting to load a second form from the first form load. Here is my code but nothing happens. Other threads I have read seem to indicate this will work but it isn't for me.

private void xForm1_Load(object sender, EventArgs e)
        {
            //Create an object of xForm3 and call it f3
            xForm3 f3 = new xForm3();

            //Show xForm3;
            f3.Show();

        }

Thanks,

David

2
Contributors
1
Reply
27 Minutes
Discussion Span
1 Year Ago
Last Updated
2
Views
dburris
Newbie Poster
7 posts since Dec 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Instead of show(); use showDialog();


Hope it works.

bhagawatshinde
Posting Whiz
338 posts since Sep 2010
Reputation Points: 21
Solved Threads: 22
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.1078 seconds using 2.66MB