Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter & Return
Message
 
To
21/05/2003 07:50:33
Ben Alicea
B.A. Software & Consulting, Inc
Oldsmar, Florida, United States
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00790985
Message ID:
00791137
Views:
14
1.
  frmCustomer loForm = new frmCustomer(Param1, Param2...);
  loForm.Show();
2. The constructor of the Form receives the parameters. In this case,
  public frmCustomer(Param1, Param2....)
  {
     //Other Code
  }
3. You can store the return value in a public property/variable and use it like this:
  frmCustomer loForm = new frmCustomer(Param1, Param2...);
  loForm.Show();
  //Assuming return value is Integer..
  int myvalue = (int) loForm.xReturnValue;  
>I have a few questions on parameters and returning an object from a form:
>
>1. How do I call a windows form with a parameter?
>2. What method in the form being called accepts the parameter?
>3. When the form closes, what method can I use to return a value or object?
>
>TIA,
>
>Ben Alicea
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform