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

Child Form Focus

P: n/a
Hi

I have a small form that i am using as a custom dropdown menu, this is
working really nicely, however when the form is shown it steals focus
from the parent form. My popup form has no border and i would like it
to leave the parent form with the apparent focus. Is this possible?

Protected Overrides Sub OnDropDown(ByVal e As EventArgs)

Dim ColorPicker As New ColorPicker
ColorPicker.Location = PointToScreen(New
Point(ClientRectangle.Left, Bounds.Height))
ColorPicker.Show()

MyBase.OnDropDown(e)

End Sub

In this instance the form is shown as the dropdown portion of an
inherited combobox control.

Thanks

Blu
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* BluDog <ne**@nospam.bludog.net> scripsit:
I have a small form that i am using as a custom dropdown menu, this is
working really nicely, however when the form is shown it steals focus
from the parent form. My popup form has no border and i would like it
to leave the parent form with the apparent focus. Is this possible?


<URL:http://vbaccelerator.com/article.asp?id=13309>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.