Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Firing event code in one control from another control
Message
De
24/09/2003 16:17:21
 
 
À
24/09/2003 15:31:32
Ernie Veniegas
Micro System Solutions, Inc.
Calistoga, Californie, États-Unis
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00831953
Message ID:
00832003
Vues:
17
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?...

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform