如何在任何分辨率下制作多个窗体 [英] how to make multiple windows forms at any resolution

查看:87
本文介绍了如何在任何分辨率下制作多个窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究VB.NET windows应用程序。在主表格中,我一起调用两种形式。但在更改屏幕分辨率时,表单无法正确显示。我希望显示此表单以始终适合屏幕。在主表格中,我打电话给这样的表格:



I am working on VB.NET windows application. In master form I am calling two forms together. But while changing the screen resolution the forms are not displaying correctly. I want to display this form to fit screen always. In master form I am calling form like this:

  Dim frmVE As VisitorInfo
    Dim frmVX As VisitorExitsign

in ToolStripMenuItem_Click i have a code like this
frmVX = New VisitorExitsign
        frmVX.Location = New Point(781, 0)
        frmVX.MdiParent = Me
        frmVX.Show()

        frmVE = New VisitorInfo
        frmVE.Location = New Point(0, 0)
        frmVE.MdiParent = Me
        frmVE.Show()





我的系统分辨率是1366 X 768.但是一旦我安装了我的在客户端应用程序,有一个不同的分辨率。那时表单不适合MDI parant表单..

我希望在任何分辨率下都适合我的表单。我该怎么做?

这是正确的图片链接 http://i.stack。 imgur.com/XquHw.png [ ^ ]



这是更改后的分辨率图片链接: http:/ /i.stack.imgur.com/0PSyV.png [ ^ ]

推荐答案

我们不确定您希望我们为您做什么,因为您为1366宽屏幕设计了表单。



很明显,客户的外观并不像1024.



您的表格没有任何问题基本表单根本不适合客户端桌面,因此它会在单词状态上方小心地在其底部放置一个滚动条。



您的选项很明显,取决于关键的事情...... GET屏幕的宽度第一个!!!!!!!



有了屏幕宽度,您可以执行以下任何一项



1)更改字体和框尺寸以适应屏幕宽度以便缩放它

2)为较小的屏幕设计不同的表格并加载无论哪种形式正确的屏幕尺寸

3)设计您期望它工作的最小屏幕的表格



有您的选择所以选择一个和解决它。
We are not sure what you expect us to do for you because you designed the forms for a screen 1366 wide.

Clearly the clients isn't that wide looks to be about 1024.

There is nothing wrong with your forms your base form simply doesn't fit on the client desktop so it puts a scrollbar in it down the bottom look carefully just above the word status.

Your options are obvious and depends on the key thing ... GET THE WIDTH OF THE SCREEN FIRST !!!!!!!

Armed with the screen width you can do any of the following

1) Change the font and box sizes to suit the width of the screen so as to scale it
2) Design a different form for the smaller screen and load whichever form is right for screen size
3) Design the form for the smallest screen you expect it to work on

There your options so choose one and fix it.


这篇关于如何在任何分辨率下制作多个窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆