当前位置:网站首页>Don't worry about form deformation anymore
Don't worry about form deformation anymore
2022-06-29 21:48:00 【Brother Chang says programming】
Preface
Today I share with you this question , Many people have met it , Many people have been asking .
The form or control is in the editing state , It's normal , But once it runs, it becomes deformed .
Solution
If you encounter this kind of problem , You can check from the following two aspects :
Is the display setting of the monitor 100%
Whether the font of the form or control is consistent with that of the container in which it is located
1、 The display setting of the monitor is not 100%
Because the resolution of many computers or notebooks is higher than 1920 * 1080 Of , If you set 100%, It will cause the font or icon to be very small , Therefore, the manufacturer will recommend the settings in the display settings 125%、150%, even to the extent that 200% Show . This will cause deformation of the operation , If you want to run at the recommended percentage , And don't want to run out of shape , You can refer to this article to solve .
Winform Interface operation deformation solution
2、 The font of the form or control is inconsistent with the that of the its container
Everybody knows , Different fonts have different sizes , The most typical embodiment is if you change the default Song typeface of the form to Microsoft YaHei , The form will automatically grow larger .
So if you are a form embedded , Or control placement , Make sure that the font of the form is the same as the font of the container , Otherwise, deformation will occur .
There's another situation , When embedding a form into Panel In the time , The font is also consistent , The size setting is the same as the container , But there will still be some blanks , The reason for this may be that your form has borders , The embedding is based on the borderless embedding , This will cause the actual borderless form size to be smaller , So when you embed a form , First set the form to borderless , Then set the size and Panel Same container size .
Above contents , I hope you can collect and remember , So you don't have to worry about the deformation of the form .
边栏推荐
- Water polo chart - using dynamic ripples to show percentages
- 高校如何基于云原生构建面向未来的智慧校园?全栈云原生VS传统技术架构
- Divide the bonus pool of 10million + million yuan, and empower developers in the 2022 shengteng AI innovation competition
- How do new shareholders open accounts online? Is it safe to open an account online?
- R language plot visualization: plot to visualize the normalized histograms of multiple data sets, set different histograms to use different bin sizes, and add edge axis whisker graph rugs at the botto
- Rsync method of establishing multi directory module
- Shutter bottomnavigationbar toggle page hold
- What is a SYN Flood attack? How to protect?
- Which brokerage commission is the lowest and safest
- STM32最小系统搭建(原理图)
猜你喜欢

STM32 and gd32 notes

【ROS进阶篇】第四讲 ROS中的重名问题(节点、话题与参数)

小型图书馆项目总结

知识蒸馏(Knowledge Distilling)学习笔记

【ROS进阶篇】第三讲 ROS文件系统与分布式通信

Reading notes on how to connect the network - Web server request and response (V)

Water polo chart - using dynamic ripples to show percentages

Desai wisdom number - other charts (basic sunrise chart): high frequency words in graduation speech

leetcode:370. 区间加法

Small library project summary
随机推荐
STM32 and gd32 notes
Hardware development notes (VIII): basic process of hardware development, making a USB to RS232 module (VII): creating a basic dip component (crystal oscillator) package and associating the principle
Topic39——78. 子集
How do new shareholders open accounts online? Is it safe to open an account online?
Redis (I) -- getting started with redis (1) -- redis introduction, installation and startup, and common configurations
leetcode:724. Find the central subscript of the array
Vipshop Keyword Search API interface (item_search- search vipshop commodity API interface by keyword), vipshop API interface
Knowledge distilling learning notes
每周招聘|DBA数据工程师,年薪35+ ,梦起九州,星河灿烂!
Shutter bottomnavigationbar with page switching example
一颗新的北极星已经升起!
Implementation and Simulation of ads131a04 ADC Verilog
Golang operation etcd
Digital password lock Verilog design + simulation + on board verification
Detailed explanation of key points in implementing MES system in Enterprises
Live broadcast preview | PostgreSQL kernel Interpretation Series Lecture 1: overview of PostgreSQL system
PostgreSQL每周新聞—6月22日
Shell implementation of Memcache cache cache hit rate monitoring script
GoAhead WebServer移植
阿里巴巴商品详情API接口(item_get-获得商品详情接口),阿里巴巴API接口