How a control can detect when a form is being moved

  • Thread starter Thread starter timnels
  • Start date Start date
T

timnels

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?
 
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?
 

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

Back
Top