Question Passing parameters to Forms

Meera

Member
Joined
Jun 26, 2010
Messages
11
Programming Experience
Beginner
Hi ,
I designed a form simply holding a combo box, button & Datagrid, working well when executed from another erp application.
Now i would like to get parameters from the application and pass on to the form. The parameter has to replace the value of Combobox value.
Kindly let me know how to achieve this?

Thanks !!
 
You can actually set the control value directly, just make sure the Modifiers (access level) set in Designer is available for your scope.
VB.NET:
formRef.TheCombo.SelectedIndex = 3
 
Or you can provide them as parameters to the constructor. Remember that the constructor calls InitialiseComponent() and it is only AFTER this has been called that your combo is available to poke a value into
 
Thanks for your replies..
I am new to Coding. can u kindly help me with any model codings?
Thank you,
Meera
 
Back
Top