Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 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 August 7th, 2007, 12:23 AM
Authorized User
 
Join Date: Jul 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Control misplaced

Hello,
  when i set WindowState property of the form to Maximized , the controls are misplaced. for example the i fixed the calendar control in the right corner , but when executed that calendar control is moved little bit towards left side.
  how to fix it
  Thanks in advance.

watashi
 
Old August 7th, 2007, 01:04 AM
Authorized User
 
Join Date: Sep 2004
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You need to use the anchor or dock properties.
Anchor allows you to set a control relative to another control or to the form itself.

http://www.c-sharpcorner.com/UploadF...roperties.aspx

Greetz,

Geert

http://geertverhoeven.blogspot.com
 
Old August 7th, 2007, 10:46 PM
Authorized User
 
Join Date: Jul 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot.
i fix it.

watashi






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to put a button control in a GridView control ryan.webb ASP.NET 2.0 Basics 2 December 28th, 2007 05:26 AM
Can't move focus to control <control scptech Access VBA 8 October 26th, 2007 12:16 PM
I give up: so many misplaced Crystal Reports posts jminatel Forum and Wrox.com Feedback 1 October 27th, 2006 09:38 AM
Help! Custom Server Control using User Control diehard ASP.NET 1.0 and 1.1 Professional 2 January 4th, 2006 12:33 PM
Help with control initialization in user control mike_remember ASP.NET 1.0 and 1.1 Professional 7 December 19th, 2005 11:08 AM





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