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

Focus on a form

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


P: n/a

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.

"Phil" <putitinthepost@nowhere> wrote in message
news:41***********************@news.dial.pipex.com ...
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

Nov 21 '05 #2

P: n/a
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
"Phil" <putitinthepost@nowhere> wrote in message
news:41***********************@news.dial.pipex.com ...
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

Nov 21 '05 #3

P: n/a
Hi Chris

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

Phil

"Chris, Master of All Things Insignificant" <chris@No_Spam_Please.com> wrote
in message news:e2*************@TK2MSFTNGP14.phx.gbl...
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
"Phil" <putitinthepost@nowhere> wrote in message
news:41***********************@news.dial.pipex.com ...
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


Nov 21 '05 #4

P: n/a
Thanks Shiva

"Shiva" <sh******@online.excite.com> wrote in message
news:O4**************@TK2MSFTNGP14.phx.gbl...

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.

"Phil" <putitinthepost@nowhere> wrote in message
news:41***********************@news.dial.pipex.com ...
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

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.