Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Firing event code in one control from another control
Message
From
24/09/2003 16:17:21
 
 
To
24/09/2003 15:31:32
Ernie Veniegas
Micro System Solutions, Inc.
Calistoga, California, United States
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00831953
Message ID:
00832003
Views:
15
Let you have project with two forms (Form1 and Form2) with command buttons on them (Command1 and Command2 respectively) with click event procedures (Command1_Click() and Command2_Click()). If you want from Command1_Click() (on Form1) to call Command2_Click() (on Form2), you can write:
Private Sub Command1_Click()

    Form2.Command2_Click
End Sub
The only thing you need to do is to change Private modifier of Command2_Click() to Public in order to be visible outside of Form2.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Reply
Map
View

Click here to load this message in the networking platform