I am new to VB.net and trying to upgrade a program previously written in VB6. The problem is that in the VB6 version I was passing the form as an object which is obviously not compatible with VB.net. My question is, what would be the best way of correcting this error?
An example of the code used in VB6 is as follows:
frm.txtPDate.Text = DataRcdSet.Fields("PDATE").Value
With the object "frm" being whatever form is active, containing the textbox "txtPDate".
Thanks for the Help,