Child Form Focus

B

BluDog

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
 

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

Top