470,641 Members | 1,642 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

How a control can detect when a form is being moved

I have a control that paints a borderless form below it to act as a
grid combo box. When the parent for is moved I need the control to
detect that the parent form is moving/moved and move the child form
along with it. Can someone shed some light on my options here?

Apr 28 '06 #1
1 1859
Is the control on the parent form? The handle the form Moving event
and have the form somehow inform the control, for example by calling a
method of the control:

private void Form_Move(object sender, EventArgs e)
{
controlToInform.FormMoving(sender, e);
}

Perhaps this will give you some ideas?

Apr 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by fragget | last post: by
3 posts views Thread by A.C. Jetter | last post: by
8 posts views Thread by Tom | last post: by
11 posts views Thread by John J. Hughes II | last post: by
???
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.