README.md
December 5, 2022 ยท View on GitHub
Description
The purpose of this code is to expand on what Ian Ippolito stated in an early post with the same code. I noticed that his same code did not state all the versions that can take advantage of this code. This code will center a form on the screen, not taking into consideration the taskbar. Yes, there are other ways of achieving this, api being one of them, but who wouldn't rather have a smaller, simpler code?
More Info
1 form, place code in form_load
| Submitted On | |
| By | Casey |
| Level | Unknown |
| User Rating | 4.3 (17 globes from 4 users) |
| Compatibility | VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0 |
| Category | Custom Controls/ Forms/ Menus |
| World | Visual Basic |
| Archive File |
Source Code
Top = Screen.Height / 2 - Height / 2
Left = Screen.Width / 2 - Width / 2