Center form class on top of main form

  • Thread starter Thread starter gv
  • Start date Start date
G

gv

Hello all,

I'm calling a form class that just shows a status display of where the
application is at .
I pass in text to display. I would like to keep that instance of the class
form
centered in the main forms application if the user moves the main form?

thanks for you help
GV
 
GV.

Why don't you than use a panel or a groupbox that you place in the ZOrder on
top and just enable/disable the visible property. Really much easier to do.

I hope this helps,

Cor
 
gv said:
I'm calling a form class that just shows a status display of where the
application is at .
I pass in text to display. I would like to keep that instance of the class
form
centered in the main forms application if the user moves the main form?

Add a handler to the form's 'Move' event and position the second form
accoding to the form's position there.
 

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