Post by ranilwallace on Sept 13, 2015 13:59:02 GMT 10
Hi, i wanted to know if there is a way i can centre a form horizontally but not vertically.
Ranil, Lauve Tech
|
|
Post by Nathan Lecompte on Sept 13, 2015 22:51:24 GMT 10
Well, if you align it centre horizontally then where do you want it to be placed vertically? Otherwise you might as well just centre it both horizontally and vertically
|
|
Post by dar on Sept 14, 2015 0:36:10 GMT 10
dim centerposX as integer = 0 centerposX = (My.Computer.Screen.Bounds.size.width/2) - ([theform].width/2)
[theform].left = centerposX
something like that... long time not touched vbnet
|
|
Post by ranilwallace on Sept 14, 2015 2:14:50 GMT 10
thanks dar. And admin i would have placed it right below the taskbar which would be about 30 ..
Ranil, Lauve Tech
|
|