![](/img/trans.png)
[英]What is the best-practice way to use LINQ to SQL in a C# application? [Design-pattern]
[英]What's the best way to design a full screen application in C#?
我想知道設計全屏表單的最佳方法,例如以用戶不會改變的分辨率擺弄控件的方式放置控件。
這是我的全屏代碼:
int w = Screen.PrimaryScreen.Bounds.Width;
int h = Screen.PrimaryScreen.Bounds.Height;
this.Location = new Point(0, 0);
this.Size = new Size(w, h);
錨和碼頭。
錨點將綁定控件。 Dock屬性設置其擴展/縮小的方式。
因此,如果您將按鈕錨定分配給“頂部,左側”,則其大小和位置將鎖定在那些側面。 因此,如果將“窗體”窗口拖動得更寬,則該對象將向右和向底部擴展。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.