Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Parameters
Message
 
À
23/09/2002 15:50:25
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00703515
Message ID:
00704735
Vues:
19
Hi Jim,

A form is a class in .NET. To pass in a parameter, you would create a constructor in the code for your form like the following:
Public Sub New(Byval YourValue as Integer)
   MyBase.New()
   InitializeComponent()
   ' your code here
End Sub
As far as your other question, can you elaborate on what type of objects you mean?

>Hello,
>
> Two Questions:
>
>1. How to share non Visual Objects between forms.
>
>2. Is there a way to create a constructor? If not, how would I pass a parameter to a form?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform