Have you tried "me.center"? agrgal wrote: > > I wrote some code to center a Form window, even the Desktop Size is > different. Here it is: > > <p><code> FMain.X = Int((Desktop.Width - FMain.Width) / 2)</code></p> > <p><code>FMain.Y = Int((Desktop.Height - FMain.Height) / 2)</code></p> > > Meanwhile the Form is resized regarding to the Y coordinate, it doesn't > work as well for the X coordinate. Why? It seems that FMain.X doesn't > 'catch up' a number (FMain.X=100 won't work too) > > What's happening? Please, help me!!! :-) >
-- View this message in context: http://www.nabble.com/X-coordinate-of-a-Form-Frame.-My-Second-Problem.-tp23013834p23016773.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user