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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top