OpenNETCF's monthcalendar control

L

Lonifasiko

I would like to know if it is possible to change OpenNETCF's
monthcalendar's heigth and width properties? I'm putting this control
inside a panel and although it seems you can change this two
properties, when you leave the box, the default value is again written.
Is this a bug? I need the monthcalendar control to fullfill all the
panel (all the form would do it also).

Another odd behaviour I've detected: Although you specify only one date
can be selected (MaxSelectionCount = 1), you can select the days you
want with the pencil.

If you know another calendar control that can be resized and the
appearance is more or less the same as monthcalendar's (I really like
it!), tell me please.
Thanks in advance.

MIGUELÓN.
 
P

Peter Foot [MVP]

The control wraps the native month calendar which is a fixed size for a
single month. Regarding the MaxSelectionCount, this is a bug, and it should
work as expected if you set this property once the form has been
initialised, rather than in the designer - e.g. place it in your form load
method

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org

I would like to know if it is possible to change OpenNETCF's
monthcalendar's heigth and width properties? I'm putting this control
inside a panel and although it seems you can change this two
properties, when you leave the box, the default value is again written.
Is this a bug? I need the monthcalendar control to fullfill all the
panel (all the form would do it also).

Another odd behaviour I've detected: Although you specify only one date
can be selected (MaxSelectionCount = 1), you can select the days you
want with the pencil.

If you know another calendar control that can be resized and the
appearance is more or less the same as monthcalendar's (I really like
it!), tell me please.
Thanks in advance.

MIGUELÓN.
 
L

Lonifasiko

Hi again Peter,

Lately I have the impression I'm disturbing you somuch with my posts!
You are the only one that answers my posts.

Thanks for the info, I've heard that CF 2.0 will bring by default a
MonthCalendar control as OpenNETCF does nowadays. Will be resizable?
From your answer seem not.

Respect to the bug of the monthcalendar control in 1.3 version:
Although I've tried MaxSelectionCount = 1 in Form_Load event, you can
always select seven days. It's not working.

Regards.
 
P

Peter Foot [MVP]

Yes, the .NETCF v2.0 control also wraps the native Windows CE control so it
will also be fixed size. Regarding the MaxSelectionCount property, I'll take
another look at the code to see if we can fix it for the next version.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top