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 June 11th, 2006, 01:28 AM
Registered User
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to call the form?

I have builded two forms,but i do not how to call the second form??
 thank you

 
Old June 11th, 2006, 04:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Dear new friend:
simply make an instance of ur second form & call it.
ex, do it in from1

Code:
form2 childform = new form2();
childform.ShowDialog();
u may call it in a button click or ...

Always:),
Hovik Melkomian.
 
Old June 11th, 2006, 08:10 AM
Registered User
 
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear sir,
 Exactly as Mr melvik told u
I just have a little note for u
ShowDialog method is used to show form as dialog. this means user won't reach the caller form till u close the collee form. That is good in Error/notification messages. But if u want user to deal the two forms at the same time, simply call method Show()

childform.Show();



Eng Ahmed Abu El Ella
[email protected]
Software Developer





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 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
How to Call Out another Form? huat81 C# 2 January 24th, 2005 06:37 PM





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