Focus on a form

  • Thread starter Thread starter Phil
  • Start date Start date
P

Phil

Hi

Does anybody know of a way of preventing a form from receiving the focus?
Okay, I know I can do it via a ShowDialog call in another form but what if I
don't want to use that technique.

My problem is that I'm displaying a form in the middle of another form. When
I click the outer form, the inner form disappears. I don't want this to
happen. How can I do this without using ShowDialog?

Ta

Phil
 
Hi,.

This is one way: In the LostFocus event handler of the second form, have
Me.Focus()

Not sure this is what you are looking for.

Hi

Does anybody know of a way of preventing a form from receiving the focus?
Okay, I know I can do it via a ShowDialog call in another form but what if I
don't want to use that technique.

My problem is that I'm displaying a form in the middle of another form. When
I click the outer form, the inner form disappears. I don't want this to
happen. How can I do this without using ShowDialog?

Ta

Phil
 
Why do you not want to use showdialog? You can try the topmost property of
the inner form. Set that to true, see if that does the trick for you.

Chris
 
Hi Chris

I'm just curious on how to do it without showdialog. Thanks for the
suggestion.

Phil
 

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