Wrox Programmer Forums
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 29th, 2006, 01:16 PM
Registered User
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to simen
Default Multiple forms

I've just started using Visual Studio 2005, and what i want to do is to open a new form when a button i pressed.
I have one form that only contains a button. When I press this button, I want to open another form in the same project.
What code do I have to make in the buttons _Click (eventhandler) method in order to fix this?
It should be really easy, and I guess it is, but I just cant figure it out.
I was thinking about form2.show() or form2.open(), but none of these work...:(
Old February 8th, 2006, 08:15 AM
Registered User
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

try the showDialog() method

Similar Threads
Thread Thread Starter Forum Replies Last Post
working with multiple forms jill2new Visual Basic 2005 Basics 1 March 1st, 2007 06:48 PM
Want to upload multiple forms sumon_24_feb JSP Basics 0 December 16th, 2006 03:05 AM
Multiple forms one submit x_ray Classic ASP Basics 7 January 3rd, 2006 07:12 PM
Multiple forms? Thurston VB.NET 2002/2003 Basics 5 November 18th, 2005 05:14 PM
multiple forms johanyu VB.NET 2002/2003 Basics 2 October 10th, 2004 12:35 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.