Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass parameters to a form?
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00892623
Message ID:
00892877
Views:
23
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform