Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Parameters
Message
 
To
23/09/2002 15:50:25
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00703515
Message ID:
00704735
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform