martin2k

Google
 
Web www.martin2k.co.uk

Opening a Form with a Command Event


Home Read and add posts to the Visual Basic 6.0 Forums Download some of my programs and OCXs Read the Tips here The old style forum is still available here Contact

Back


From: Aaron E-mail: aaruko_@hotmail.com 1

Date: Thursday, June 14, 2001 at 15:37:48

Website: n/a

Subject: Opening a Form with a Command Event

Comments:

I have two Forms created, my main one and an extra. But I can't figure out what source code to activate the second form. I want to use a command button to open it. Please help if you can.

From: Martin Allen E-mail: <No e-mail> 2

Date: Monday, June 18, 2001 at 21:28:05

Subject: RE: Opening a Form with a Command Event

Comments:

This is quite simple.  The code is (if the second form is called Form2):

Private Sub Command1_Click()
Form2.Show
End Sub
 
From: Snehashis (12.10.219.---) E-mail: bhat@bhatmail.com 3

Date: Friday, October 18, 2002 at 10:14:04

Subject: RE: Opening a Form with a Command Event

Comments:

Simpler:: Form2.visible = True


This forum is no longer taking new messages or replies since 01 November 2002.  The above material is for reference purposes only.

The new Visual Basic 6.0 forum can be found here.


Martin Allen 1999 - 2002. Last updated Monday 12 May 2003 07:59:22 PM +0100.