Auto centers any object (images,etc.) on any monitor resulotion or dimensions. It auto detects moni
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.
Rate Auto centers any object (images,etc.) on any monitor resulotion or dimensions. It auto detects moni
(2(2 Vote))
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
Auto centers any object (images,etc.) on any monitor resulotion or dimensions. It auto detects moni Comments
No comments yet — be the first to post one!
Post a Comment