Print Page | Close Window

PopupControl: Center on Form

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2333
Printed Date: 17 November 2024 at 5:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PopupControl: Center on Form
Posted By: rdeboer
Subject: PopupControl: Center on Form
Date Posted: 06 June 2005 at 4:24pm

How do I center a PopupControl on the current form in VB6?




Replies:
Posted By: SuperMario
Date Posted: 06 June 2005 at 5:21pm
Use the Right and Bottom properties of the Popup to center it in the form.  It uses the pixel coordinate system.  You can try something like PopupControl.Right = Form.ScaleWidth\2 and PopupControl.Bottom = Form.ScaleHeight\2.  



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net