GroupBox putting itself in another groupbox

GroupBox putting itself in another groupbox

Post by baldric » Thu, 29 May 2008 18:49:30


Howdy,

I have 2 groupboxes on a form. I want one to be infront of another.

When I am designing the form and move the boxes around, they sometimes
decide themselves that one box will be in the other box, rather than
just on top of it.

How do I prevent this behaviour?

Cheers.
 
 
 

GroupBox putting itself in another groupbox

Post by Herfried K » Thu, 29 May 2008 22:00:45

"baldrick" < XXXX@XXXXX.COM > schrieb:

Place the second box outside the first box, select it and then use the arrow
keys to move it over the first box.

--
M S Herfried K. Wagner
M V P <URL: http://www.yqcomputer.com/ ;
V B <URL: http://www.yqcomputer.com/ ;

 
 
 

GroupBox putting itself in another groupbox

Post by TW9ydGVuIF » Fri, 30 May 2008 15:16:01

Hi baldrick,

In addition to Herfrieds answer, you can also move them at runtime by
setting groupBox2.Location = groupBox1.Location

--
Happy Coding!
Morten Wennevik [C# MVP]