By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,029 Members | 1,330 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,029 IT Pros & Developers. It's quick & easy.

How do I Force Focus To Window

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"Daniel Friend" <da*@donotspam.com> wrote in message
news:er**************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.