Wrox Programmer Forums
BOOK: Visual Basic 2005 Programmer's Reference
This is the forum to discuss the Wrox book Visual Basic 2005 Programmer's Reference by Rod Stephens; ISBN: 9780764571985
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Basic 2005 Programmer's Reference section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 19th, 2007, 06:22 AM
Authorized User
Join Date: Jan 2006
Posts: 43
Thanks: 1
Thanked 0 Times in 0 Posts
Default form position

im creating an usercontrol, if the user doubleclik that control, i have to dispay a form (say x-form). my problem is i was unable to position the form (x-form) in the location which i wanted (ie. the top of the control or the bottom of the control)

the user placed the control in his form anywhere he wanted, but i have to show the form (x-form) at the exact position of the usercontrol.top -right or usercontrol.bottom-right

any ideas?


Old April 19th, 2007, 09:05 AM
Rod Stephens's Avatar
Wrox Author
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts

The trick is to set the new form's StartPosition property to Manual. Otherwise VB positions the form in a default location defined by the system. (You can also set StartPosition to CenterScreen or CenterParent, although that won't help with this application.)


Check out my latest book:
"Expert One-on-One Visual Basic 2005 Design and Development"

Sign up for the free VB Helper Newsletters at http://www.vb-helper.com/newsletter.html

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Form DataSet Position to DataGrid Selection robzyc C# 2 September 9th, 2007 04:28 AM
Position barski XSLT 5 July 11th, 2007 01:54 PM
combining a form input name with xsl position() ? joeprice XSLT 1 February 23rd, 2006 09:54 AM
IE Hack needed for form position DanDan CSS Cascading Style Sheets 0 January 22nd, 2005 06:35 PM
position cursor at certain field on user form kliu9 Excel VBA 1 January 21st, 2005 06:51 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.