[Gambas-user] How to open main form in the centre of any screen
Robert Rowe
robert.c.rowe at ...626...
Sun Mar 23 15:47:57 CET 2008
Try this:
fMain.x = (Desktop.Width - fMain.Width) / 2
fMain.y = (Desktop.Height - fMain.Height) / 2
Robert Rowe
andy2 wrote:
> I have problem to open my software at the centre of my screen. Actually
> i use the following code:
>
> PUBLIC SUB Main()
> fMain.x = fMain.ScreenX / 2
> fMain.y = fMain.ScreenY + 200
> fMain.Show
> END
>
> But this code doesn't work very well. Thanks for your attention.
>
> Andy
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
More information about the User
mailing list