0

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

  • Font Size changes (8.25 to 7.8)
  • Screen Positions
  • Control Sizes

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?

dangerousdave
  • 6,331
  • 8
  • 45
  • 62
  • 4
    They are tailored for your screen resolution/dpi – Alex K. Jun 24 '15 at 13:46
  • @alex Thanks for your reply, can you suggest how they can be prevented? – dangerousdave Jun 24 '15 at 13:50
  • 1
    It should only change when run on a machine that has a different screen setup that the one that last saved the .frm - See the last bullet @ http://stackoverflow.com/a/169716/246342 – Alex K. Jun 24 '15 at 13:51
  • 1
    All developers touching the UI source modules have to agree on using the same small fonts or large fonts OS setting. (VB6 does not work with custom font sizes). – wqw Jun 27 '15 at 18:25
  • @alex, would you like to make your comment an answer so I can accept it? – dangerousdave Jun 28 '15 at 17:55

2 Answers2

1

Use 'Format -> Lock Controls' menu option and if you use the same machine/screen it should not change.

KMan
  • 155
  • 1
  • 9
1

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.

Alex K.
  • 171,639
  • 30
  • 264
  • 288