Wrox Programmer Forums
|
BOOK: Beginning Visual C#
This is the forum to discuss the Wrox book Beginning Visual C#, Revised Edition of Beginning C# for .NET v1.0 by Karli Watson, David Espinosa, Zach Greenvoss, Jacob Hammer Pedersen, Christian Nagel, Jon D. Reid, Matthew Reynolds, Morgan Skinner, Eric White; ISBN: 9780764543821
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual 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 July 2nd, 2003, 01:54 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 executing a form

Hi there:
Could any1 tell me, how should I run a Window From (not main)
ex: if I wanna run a winForm when I click a botton?! what should I
do in click method of button?!?

Always:),
Hovik Melkomian.
__________________
Always,
Hovik Melkomian.
 
Old July 2nd, 2003, 04:19 PM
Authorized User
 
Join Date: Jun 2003
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JonathanC
Default

Hi Hovik

Put this code in your click event.
(remember to change "Form1" to the name of your form.)

Form1 form1 = new Form1();
form1.ShowDialog();




Jonathan Crossland
http://www.jonathancrossland.com
 
Old July 3rd, 2003, 02:40 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

Tnx dear

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing a function mepancha SQL Server 2000 0 April 28th, 2005 10:50 AM
executing programs marjanm PHP How-To 0 August 27th, 2004 06:23 AM
Executing xp_cmdShell Hari_Word SQL Server 2000 1 August 13th, 2004 03:35 PM
executing 2 datareaders msrnivas .NET Web Services 2 January 8th, 2004 08:15 AM
Executing from memory Knik DerMuf Beginning VB 6 4 July 10th, 2003 07:49 AM





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