Dim workspace(1 To 4) As Long ' (1)=left (2)=top (3)=right (4)=bottom
SystemParametersInfo &H30, 0, workspace(1), 0 ' &h30 = get workspace size
Dim X As Long, Y As Long, w As Long, h As Long
X = workspace(1) * Screen.TwipsPerPixelX
Y = workspace(2) * Screen.TwipsPerPixelY
w = workspace(3) * Screen.TwipsPerPixelX - X
h = workspace(4) * Screen.TwipsPerPixelY - Y
Move X + 0.1 * w, Y + 0.1 * h, 0.8 * w, 0.8 * h ' 10% margins
in vb6 is working why in vb.net not working. Can you help me. Please???