How do I Force Focus To Window

  • Thread starter Thread starter Daniel Friend
  • Start date Start date
D

Daniel Friend

Hi have a window (FormBorderStyle=NONE) and the form is a MDI child. For
some reason the form is not getting focus.

I have tried the following code and nothing seems to work.

sForm.Show()
sForm.Focus()
sForm.Activate()
sForm.BringToFront()

and for some reason I have to click on the form once to active then a second
time to access a control on the form!

Please help!

Thanks,

Dan
 
Try Restore or Maximise






--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 

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