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:

  1. Override Assign this property to the default size and assign it to this attribute:

      [default value (type size, "500, 500")]  
  2. Within the constructor you want to set the default size.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -