Make sure in CreateParams you set the form visibility to false, on OnCreate set the left and top property values and then make the form visible again. otherwise flickering would be a normal behavior...
Vahan -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of A R Bhatt Sent: Saturday, June 04, 2005 4:01 PM To: [email protected] Subject: Re: [delphi-en] set form top and left at run time Are you assigning left & top in two separate lines of code? That may cause flickering. Try SetBounds. HTH, Aniket On 6/4/05, Monir-SCS <[EMAIL PROTECTED]> wrote: > > I need to set form top and left at run time, I am reading these values > from > ini file, > Setting left and top in OnCreate has no effect and so in OnShow , Setting > left and top in OnActivate worked but with flicker (the form will appear > at > screen center then shifted to postions specified by (left, top) > > So what is the best way to set form top and left at run time? > > Thanks for your help. > > Monir > > > > ----------------------------------------------------- > Home page: http://groups.yahoo.com/group/delphi-en/ > To unsubscribe: [EMAIL PROTECTED] > Yahoo! Groups Links > > > > > > > [Non-text portions of this message have been removed] ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] ---------------------------------------------------------------------------- ---- Yahoo! Groups Links a.. To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. [Non-text portions of this message have been removed] ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

