English 中文(简体)
• 如何适当设置一名法官/一名司机,以便全球协调小组能够配备多种屏幕尺寸
原标题:How to set Anchor / Docking properly so GUI can fit multiple screen sizes

我很简单地用WinForms GUI,我想用塔巴斯语使用。 问题Im正在转播,并且有多种屏幕。 我对每种文本Box、Box做了哪些改动,使之适合冰箱,而不会让用户感到它设计得好好好好坏?

通常使用<代码>Dock。 图1 然后,我与试图使其与托托、左、右、博托等所有东西相连接的Anchor进行了核对/交流,但这样一来,就会给人留下大的印象(文本箱重复其他标签、X箱等)。 我试图在这里选择某些东西,有些在这里,但当我试图淡化意外事件时。 我会怎样去这里? 我的系统为24个,第1920x1080p号决议,但我的用户往往从1024x768到1920x1080不等。

现在使用Devexpress控制器是一米,但问题既适用于Devexpress控制,也适用于建筑控制。

“crshot”/

最佳回答

第一,将设计商的体积确定为小于最低预期分辨率,即900x650。 然后,你可以设计一种形式,在一切决议中工作,即使它没有再造。

接下来,哪些控制应该保持固定规模,而这种控制应该把我们所形成的形式延伸/扩大。 首先,一些领域因扩大而获得了一定利益(例如,如果有一个总含最多3位数的正文箱,那么增长幅度就足以显示9位数,那是毫无意义的,甚至适得其反的。 第二,有些领域填满了表格的全宽度,因此,如果它们种植,它们自然会更好。

Now, set the anchoring. In general, anchor the edge of a control to the nearest edge of the form. If you set only one anchor, the control will not stretch, and the anchored edge will start the same distance from that side of the form.

如果你想要控制,把对立面(左边和右边)围起来。 这将使这些边缘与形式边缘保持同样的距离,因此控制将变得十分合适。

You will see that if one control is anchored in place, and the control next to it is set to stretch, there is a good chance that they ll end up overlapping, so you must treat all controls across the form as a related group.

为了进行更多的控制,将控制小组置于像小组或小组箱这样的集装箱控制之下。 然后,他们的 anchor子与他们的母群体有关,该群体可以按原样扎根。

To see the effects, just resize the form in the designer and see where everything goes - then undo and fix any anchoring that didn t work. You ll soon get a feel for how the layout works, and how to design forms to work well with resizing.

问题回答

暂无回答




相关问题
Bring window to foreground after Mutex fails

I was wondering if someone can tell me what would be the best way to bring my application to the foreground if a mutex was not able to be created for a new instance. E.g.: Application X is running ...

How to start WinForm app minimized to tray?

I ve successfully created an app that minimizes to the tray using a NotifyIcon. When the form is manually closed it is successfully hidden from the desktop, taskbar, and alt-tab. The problem occurs ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

Handle DataTable.DataRow cell change event

I have a DataTable that has several DataColumns and DataRow. Now i would like to handle an event when cell of this DataRow is changed. How to do this in c#?

Apparent Memory Leak in DataGridView

How do you force a DataGridView to release its reference to a bound DataSet? We have a rather large dataset being displayed in a DataGridView and noticed that resources were not being freed after the ...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not ...

WPF-XAML window in Winforms Application

I have a Winforms application coded in VS C# 2008 and want to insert a WPF window into the window pane of Winforms application. Could you explain me how this is done.

热门标签