Activating an already open form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

frmFinApp instantiates, shows, and activates frmSoldLeads, by clicking
btnSoldLead.

The btnMakeDeal instantiates, shows and activates frmInputDeal and then
closes frmSoldLeads

btnSaveDeal on frmInputDeal, saves the required records, needs to set the
focus bac to the frmFinApp form.

With the definition and raising of events I can get a form activated from a
form to activate the earlier form, by putting a Me.activate command in the
event handler for the created event.

But when I declare things public shared, both the form declaration and the
event handler, I get an compile error on the Me.Activate command. The error
is "'Me' is valid only within an instance method."

What am I missing here?

Jeff Goodman
 
Dabassguy,
But when I declare things public shared, both the form declaration and the
event handler, I get an compile error on the Me.Activate command. The
error
is "'Me' is valid only within an instance method."
You can never use a method outside a method of your object/class (It is
maybe confusing, however the last word method means a method inside your
program, by instance a "sub" or a "function")

That has to belong to your program by instance
private ds as new dataset

Here is ds a part of your object/class or in another way me.ds which you can
only use inside a metod

I hope this helps,
 

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