Hi John, Thanks for your response.
I've found the problem, but I'm not sure why it happens! I had the anchor property set to 768. As soon as I changed it to 128 or 256 the buttons behaved exactly as I expected. No idea why <g> John Weller 01380 723235 07976 393631 > > What happens when you step through it? Try commenting out the refresh and > see if it works. > > John > > > I have a screen where I want to control the position and > visibility of a set > of buttons depending on a global variable. The visibility part is working > fine but the positioning commands seem to be ignored. The form is the > opening screen for the app and is a top-level MDI form. The code > I am using > is below: _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

