VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A 2 line code to center forms without api

Casey  (2 Submissions)   Custom Controls/Forms/Menus   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

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?

Assumes
1 form, place code in form_load

Rate A 2 line code to center forms without api (5(5 Vote))
A 2 line code to center forms without api.bas

A 2 line code to center forms without api Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters