如何防止 Visual Basic 中的随机数字代码更改? [英] How can I prevent random numeric code changes in Visual Basic?
问题描述
我目前正在使用旧版 Visual Basic 6 应用程序.有时,当我对 .frm 文件进行更改,然后保存时,其他看似随机的数字更改也会被保存.
I am currently working with a legacy Visual Basic 6 application. On occasion, when I make changes to a .frm file, and then save, other seemingly random numeric changes will also be saved.
这些随机变化的一些例子是
Some examples of these random changes are
- 字体大小更改(8.25 到 7.8)
- 屏幕位置
- 控制尺寸
在查询版本历史记录后,这似乎并不总是一个问题.直到 2013 年才开始发生.
After interrogating the version history, it appears this was not always a problem. It only started happening in 2013.
为什么这些数值会发生变化?以及如何防止将来发生这种情况?
Why are these numeric values changing? and how can I prevent it from happening in the future?
推荐答案
它们是为您的屏幕分辨率/dpi 量身定制的;.frm 文件中的值只有在与上次保存文件的机器具有不同屏幕设置的机器上运行时才应更改.
They are tailored for your screen resolution/dpi; the values in the .frm file should only change when run on a machine that has a different screen setup than the machine on which the file was last saved.
这篇关于如何防止 Visual Basic 中的随机数字代码更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!