Windows Forms Anchors, Keep controls inside panel at the same ratio?
I have this Panel with 2 PictureBoxs inside, they are both Anchored too all edges of the screen:
This is how it looks on minimum screen size. (Good)
Now this is how it look after i resize the screen to a bigger size:
As you see 1 PictureBox overides another... I tried lots of kindes of anchros and docks..
but still on resize it's all f***ed up.. How can i keep the ratio between them?
So when the screen get bigger they both get bigger equally and looks like in the first picture but larger?
C# .NET 3.5 Windows Forms
UPDATE:
Ok i use tableLayoutPanel
now i开发者_开发问答t looks like that:
And after resizing it looks like that:
You might think it's good, but you can see it didn't preserve the ratio..
And no i dont have a Wide Screen.. i have a 19" Screen on 1280 x 1024
So why does it heppend?
Just don't bind the bottom panel's Up Anchor
. But the better way is to use SplitContainer
or TableLayoutPanel
control to split your pannel.
精彩评论