by Francis Ceril (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 18th February 2010
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Auto centers any object (images,etc.) on any monitor resulotion or dimensions. It auto detects monitor screensize and object's size and adjust
API Declarations
// image or any object can be used
// useful for applications that will be installed on different monitor resulotions or dimensions.
Dim a, b, c, d As String
a = Screen.Width / 2
b = image1.Width / 2
image1.Left = a - b
c = Screen.Height / 2
d = image1.Height / 2
image1.Top = (c - d) - (StatusBar1.Height * 3)
End Sub
No comments have been posted about Auto centers any object (images,etc.) on any monitor resulotion or dimensions. It auto detects moni. Why not be the first to post a comment about Auto centers any object (images,etc.) on any monitor resulotion or dimensions. It auto detects moni.