(in code behind)
private void LoadFormPreview()
{
this.ReviewForm.lblCo_Name = this.txtCo_Name.Text.ToString();
this.ReviewForm.lblCo_Address1 = this.txtCo_Address1.Text.ToString();
...
can i make this more generic so i can provide the form as a parameter? if so, what would the datatype be? i attempted using a string but that just produced an error..
private void LoadFormPreview(string rvwForm)
{
this.rvwForm.lblCo_Name = ...
Any help would be very much appreciated.
Thanks

Raja KrishnamurthyRank #3,615 · 403 reputationPosted Apr 14, 2011, 12:39 PM EDT
HTH
Tim Hansen3 reputationPosted Apr 14, 2011, 12:46 PM EDT