-
Can't resize user controls in user control (WinForms)
Howdy all,
I'm fairly new to .NET, but have been programming for many years in UNIX and a little in COM & MFC for the PC. I've been doing a lot of reading on WinForms to get up to speed but have found only a little on changing size on the fly. I'm having a problem on my latest project and was wondering if anyone has any ideas.
I have a C# user control I have built that I need to make change its size on the fly to accomodate a toolbar that changes size based on an XML data file. This user control will eventually live inside another user control. I'm trying to resize the control internally (from within its class).
I have a driver I'm testing with that's simply a blank form with the user control on it. I've tried setting:
this.Size = new Size(width, height);
and I've also tried:
this.ClientSize = new Size(width, height);
Nothing seems to get the contol to change its size on the host form. Any ideas what I'm missing?
Similar Threads
-
By Ian Drake in forum ASP.NET
Replies: 0
Last Post: 10-30-2001, 09:38 AM
-
By Gordon Feeney in forum VB Classic
Replies: 1
Last Post: 10-17-2001, 11:45 AM
-
By Jeff Trate in forum VB Classic
Replies: 1
Last Post: 06-08-2001, 10:42 AM
-
By Annie Wang in forum ASP.NET
Replies: 0
Last Post: 05-24-2001, 04:07 PM
-
Replies: 15
Last Post: 05-09-2001, 04:40 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks