Relocating a Control on screen and setting it to top-most

  • Thread starter Thread starter Udi
  • Start date Start date
U

Udi

Hi,
I have a listbox and a textbox that are built and shown dynamically.
My problem is that their positions and sizes may cause them to be
displayed out of the their parent form bounds, and in a worse case out
of the screen bounds.
1. How do I make sure my controls will always be displayed inside the
screen?
2. How do I set a control as top-most?

(I guess what I'm looking for is a way to show a control on screen
coordinates, regardless to it parent location)

Thanks!
 
(I guess what I'm looking for is a way to show a control on screen
coordinates, regardless to it parent location)

Ummmm... the controls really ought to be on the form. Perhaps you should try
..Visible=false to _hide_ the controls when you don't want them?
 
Back
Top