Need To Send Focus To MDI Child

D

Daniel Friend

I have 2 MDI children on a MDI parent.

Each children have the Window FormBorderStyle=none and I am making my own
Graphical window style.

If I open the first window, it all works fine, but on the second window, the
first window still had focus.

on each Form_Load statement I tried

me.focus
me.select

Both does not work

the only way I can get focus is by click on the form. Is there a way to do
bring focus to a MDI child form programically besides the code above?

Thanks,

Dan
 
H

Herfried K. Wagner [MVP]

* "Daniel Friend said:
I have 2 MDI children on a MDI parent.

Each children have the Window FormBorderStyle=none and I am making my own
Graphical window style.

If I open the first window, it all works fine, but on the second window, the
first window still had focus.

on each Form_Load statement I tried

me.focus
me.select

Both does not work

In the main form, call 'Me.ActivateMdiChild(<form>)', maybe this works.
 

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

Top