Wrox Programmer Forums
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 October 7th, 2006, 05:25 AM
Registered User
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Windows size

hi, i want to know how can i change the size of text box and button when i maximize my windows?
cause now when i maximize my window the textbox still remain the same size....how can i solve this?

Old October 14th, 2006, 02:41 PM
mkb mkb is offline
Registered User
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

        private void Form1_Resize(object sender, EventArgs e)
        { //always 1/4 of the size of the window
            textBox1.width = (this.Width / 4);


rember to delare it in the desing easy way is juz click the form click the ligint looking box in proerties window and juz click resize at the bottom if u need any more help email me

Similar Threads
Thread Thread Starter Forum Replies Last Post
solution for windows size adjustment rutul ASP.NET 2.0 Basics 0 January 24th, 2008 07:50 AM
Size of text box depending on size of another box AstridVM BOOK: Access 2003 VBA Programmer's Reference 0 March 7th, 2007 06:24 AM
Accessing Windows service from a windows app sajid08 C# 1 October 6th, 2006 10:25 AM
Find a windows size and position Rowshay Visual Basic 2005 Basics 0 March 20th, 2006 01:02 AM
Windows 98 OCX control issues vs Windows XP benoyraj VB How-To 0 May 5th, 2004 08:10 AM

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