cool hit counter The solution for a horizontally centered control in a form that is not centered under XP_Intefrankly

The solution for a horizontally centered control in a form that is not centered under XP


I encounter this fucked up problem from time to time, and today I had the time to research it and solve it as follows.

A. Change the FormBorderStyle property of the form to Fixed family, which of course will result in the user not being able to drag and drop the window size, so you may need Plan B ↓

B、Ensure that the【VS】 hit the target【 form (used in programming languages such as Visual Basic and Delphi create a GUI window)】 ofSize.Width >= MinimumSize.Width + 8。 as shown:

Yes, only the bottom is larger than the top by at least 8 pixels is the ideal effect, as to why, didn't look deeper, probably has to do with NT6's Aero interface, where the borders are larger than XP.


Recommended>>
1、Shanghai Federation of Industry and Commerce Information Industry Chamber of Commerce moves into new age Focus on six key areas to create an information environment
2、Group Acting Chief Engineer Xiao Yuming Visited Wisdom Company for Research To Persistently Do a Good Job in Scientific and Technological Innovation and Quality Creation
3、First in the province Jining Citys New Old Energy Conversion Visualization Supervision Service Platform Goes Online
4、Its amazing that China made a Westworld the year the 86th version of Journey to the West was staged
5、Study shows Apple Tesla is at the bottom of the list when it comes to selfdriving Ford GM is the powerhouse

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号