I'm developing a winform Windows Mobile 5.0 or above application with . NET Compact Framework 2.0 SP2 and C# .
I'm wondering if there is a way to set a default size of a custom control. When I drop it over the form (on the designer) it is always getting 200x200 as its default size.
Any advice?
Thank you!
There are two ways to do it:
Override the default Size property and assign this Attribute to it:
[DefaultValue(typeof(Size), "500, 500")]
Set the default size you want within the constructor.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.