Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass parameters to a form?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00892623
Message ID:
00892877
Vues:
22
>>You can do it this way:
>>
>>Dim frm As New myform("foo", "bar")
>>
>>
>>* Form's Constructor
>>
>>
>>    Public Sub New(ByVal myString1 As String, ByVal myString2 As String)
>>        MyBase.New()
>>' do whatever with the received parameters here
>>
>>        'This call is required by the Windows Form Designer.
>>        InitializeComponent()
>>
>>        'Add any initialization after the InitializeComponent() call
>>
>>    End Sub
>>
>>
>>Would that work for you?
>
>Yes it would :)
>I give you the stars but you have to know that when I have read your message I was trying to use the New event by myself!!
><g>
>
>Thanks!
>
>Franco

I am glad to help anyways! :)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform