Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > Limiting the UserControl Size


Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2004, 03:28 PM
Mikecrosoft's Avatar
Mikecrosoft Mikecrosoft is offline
Mexican Coder
 
Join Date: Jun 2002
Location: Monterrey, N.L., Mexico
Posts: 2,793
Default Limiting the UserControl Size


Hi how are you,



I'm making my own control (UserControl) its a Graphical Button, so I need to limit the size of the button (No sizeable) how I can do this ??

Thanks !
__________________
Mikecrosoft.NET
* If I stop to ask I will stop to learn
* Just I know that I don't know nothing
Reply With Quote
  #2  
Old 01-28-2004, 08:44 PM
VBJoe's Avatar
VBJoe VBJoe is offline
Village VB Idiot

* Expert *
 
Join Date: Jan 2003
Location: Idaho
Posts: 1,850
Default

I've never created a UserControl in .NET, so I can't guarantee that my method will work. (but I hear that creating a UserControl in .NET is similar but much simpler than in VB6)

Anyway, use the UserControl's Resize event to enforce maximum/minimum size properties.
Reply With Quote
  #3  
Old 01-29-2004, 08:11 AM
Mikecrosoft's Avatar
Mikecrosoft Mikecrosoft is offline
Mexican Coder
 
Join Date: Jun 2002
Location: Monterrey, N.L., Mexico
Posts: 2,793
Default

I used the resize event, but the Control looks bad when I restore the user size to the maximum size. you know, when the windows was drawn and when I restore the width and height the user control looks not fine, I need something like when you set the Maximum / Minimum properties of a windows form.


Thanks
__________________
Mikecrosoft.NET
* If I stop to ask I will stop to learn
* Just I know that I don't know nothing
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bloated binary files Success_Machine Tech Discussions 3 10-13-2003 08:00 AM
API / UDT's and Size Bradley API 20 06-24-2003 07:46 AM
DB Navigation!!! adruta Database and Reporting 3 10-16-2002 09:12 AM
3D cube adruta Word, PowerPoint, Outlook, and Other Office Products 1 10-08-2002 08:21 AM
VB6 to VBA adruta General 0 10-08-2002 04:17 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->