I need to place a window at the top of the windows screen (I am running Windows XP on VirtualBox).
I used:
Self.Top = Screen(0).Top + 40
but the window is hidden (vertically) until the middle of its ToolBar.
How can I do that ?
PS: I stick that same window at the rightmost of the screen using:
Self.Left = (Screen(0).Width - Self.Width) - 4
and this is good.
PS: the OS X part works fine, actually, under Mavericks.
David_Cox
(David Cox)
2
Have you tried screen(0).availablewidth ?
LangueR
(LangueR)
3
Why wouldn’t you use screen(0).availableHeight (and screen(0).availableWidth for that matter)?
LangueR
(LangueR)
5
Yes u did 
Funny I was just playing with that some 15mins back to center the program window of a text parser I was doing.
No, I do not tried it. I will do once no more on the road
Thanks.
[quote=114485:@Emile Schwarz]I need to place a window at the top of the windows screen (I am running Windows XP on VirtualBox).
I used:
Self.Top = Screen(0).Top + 40
but the window is hidden (vertically) until the middle of its ToolBar.
How can I do that ?
PS: I stick that same window at the rightmost of the screen using:
Self.Left = (Screen(0).Width - Self.Width) - 4
and this is good.
PS: the OS X part works fine, actually, under Mavericks.[/quote]
What about AvailableTop ?
Thank you all !
The answer was to use AvailableTop