Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 19th, 2007, 06:22 AM
Authorized User
Points: 208, Level: 4
Points: 208, Level: 4 Points: 208, Level: 4 Points: 208, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
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?



thanks



Reply With Quote
  #2 (permalink)  
Old April 19th, 2007, 09:05 AM
Rod Stephens's Avatar
Wrox Author
Points: 2,999, Level: 22
Points: 2,999, Level: 22 Points: 2,999, Level: 22 Points: 2,999, Level: 22
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 601
Thanks: 1
Thanked 84 Times in 83 Posts
Default

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.)

Rod
RodStephens@vb-helper.com

Check out my latest book:
"Expert One-on-One Visual Basic 2005 Design and Development"
http://www.vb-helper.com/one_on_one.htm

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08:54 AM
IE Hack needed for form position DanDan CSS Cascading Style Sheets 0 January 22nd, 2005 05:35 PM
position cursor at certain field on user form kliu9 Excel VBA 1 January 21st, 2005 05:51 AM



All times are GMT -4. The time now is 11:12 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.