referencing parent form methods

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have opened a dialog (form) from within a form using the ShowDialog(). How
can I now access methods in the parent form, from this dialog?

Thanks

Regards
 
Hi

I have tried this;

x = DirectCast(Me.Owner, frmClients).txtCompany.Text ' frmclients is the
design name of the calling form

and I am getting a 'Object reference not set to an instance of an object.'
error. What am I doing wrong?

Basically I am trying to pick up the value of the company in the calling
form, from within the called dialog form. Is there another way to pass data
between a calling and a called from?

Thanks

Regards
 
Back
Top