Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 24th, 2005, 01:48 AM
Registered User
 
Join Date: Jan 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Call Out another Form?

If i have created two form, the first form is the main form and another is just a secondary form. After i click on the login button, then another form will be shown up. Can anybody help me how is the coding look like?

is the coding look like the below:

Form childfrm = new Form2();
childfrm.MdiParent = this;
childfrm.Show();


 
Old January 24th, 2005, 05:34 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

May I Know You?

 
Old January 24th, 2005, 06:37 PM
Kep Kep is offline
Authorized User
 
Join Date: Aug 2003
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It depends how you want to show the second form. I'm guessing if it's a login dialog then you don't want the application to proceed until after a successful login.

Try...
Code:
Form logonDialog new Form2();
logonDialog.ShowDialog(this);
Kep.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Call Standard Module Error Handler from Form mod johndickerson BOOK: Beginning Access 2003 VBA 0 April 19th, 2007 11:12 AM
Call Filter By Form bufanator Access VBA 3 November 15th, 2006 03:10 PM
how to call the form? hussar91404 C# 2 June 11th, 2006 08:10 AM
How to call a sub in a sub busybee ASP.NET 1.0 and 1.1 Basics 4 March 22nd, 2006 01:39 AM
call to url while keep the form post parameters Goldwind Classic ASP Basics 0 December 25th, 2005 01:21 PM





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