开发者

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:

Windows Forms Anchors, Keep controls inside panel at the same ratio?

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:

Windows Forms Anchors, Keep controls inside panel at the same ratio?

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:

Windows Forms Anchors, Keep controls inside panel at the same ratio?

And after resizing it looks like that:

Windows Forms Anchors, Keep controls inside panel at the same ratio?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜