-
How to catch WM_GETMINMAXINFO with C# ???
I have just installed visualstudio.net and I was curious to try C# and see
if it can be useful with my work. So I am really a novice. I usually develop
with C++ and VB.
No I can't find out who to override WM_GETMINMAXINFO to set the minimum size
of the window... Maybe I should use something else? I saw a mintracksize,
but didn't understand how it works.
The documentation does really suck.
Thanks,
Max
-
Re: How to catch WM_GETMINMAXINFO with C# ???
Max,
>No I can't find out who to override WM_GETMINMAXINFO to set the minimum size
>of the window... Maybe I should use something else? I saw a mintracksize,
>but didn't understand how it works.
MinTrackSize should be what you're looking for. Put this in your Form:
protected override Size MinTrackSize
{
get { return new Size(400, 300); }
}
Matt
====================================
Mattias Sjögren - mattias @ mvps.org
http://www.msjogren.net/dotnet/
CodeHound - The Software Developer's Search Engine
http://www.codehound.com
-
Re: How to catch WM_GETMINMAXINFO with C# ???
>protected override Size MinTrackSize
>{
> get { return new Size(400, 300); }
>}
.... or even better, forget that override and just set the property to
what you want, for example in your constructor.
MinTrackSize = new Size(400, 300);
Matt
====================================
Mattias Sjögren - mattias @ mvps.org
-
Re: How to catch WM_GETMINMAXINFO with C# ???
Half ot times I compile my very simple project it crash, is it common? Maybe
I should install it on win2000?
Where can I find a good documentation, or a good book, about all these
things work with c#?
Thanks,
Max
"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> ha scritto nel messaggio
news:3a724f47.129943919@news.devx.com...
> >protected override Size MinTrackSize
> >{
> > get { return new Size(400, 300); }
> >}
>
> ... or even better, forget that override and just set the property to
> what you want, for example in your constructor.
>
> MinTrackSize = new Size(400, 300);
>
>
> Matt
>
> ====================================
> Mattias Sjögren - mattias @ mvps.org
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