c# - .NET Compact Framework: define default size to a custom control -
I am developing with a Winform Windows Mobile 5.0 or above application. Net Compact Framework 2.0 SP2 and C # .
I'm thinking that there is no way to set a default size for custom control. When I leave it on the Designer, it always gets 200x200 as my default size.
Any advice?
Thank you!
There are two ways to do this:
-
Override Assign this property to the default size and assign it to this attribute:
[default value (type size, "500, 500")]
-
Within the constructor you want to set the default size.
Comments
Post a Comment