Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to design a calendar control

I need to design a calendar control which should be added to our companie's application (I know there's already quite a lot calendar controls but I shall develop our own one...).

How should I start, should I use a kind of table to display the days or should I completely draw my own grid? How can I do this (I do not need rdy-to-use code, I just need some ideas...)

The application is written in C# as a WindowsForms application (thanks for the hint, forgot to mention this in first case...)

like image 501
dhh Avatar asked Nov 23 '25 00:11

dhh


1 Answers

Seeing your comment about WinForms and:

I need to develop an own one because it must be integrated in an already existent application, I need full access in means of style and functionality

makes me suggest to use ready project http://www.codeproject.com/KB/selection/MonthCalendar.aspx and modify it if necessary. I use it in my own little project and it works like a charm. It provides full source if necessary so you can integrate it easily and modify if you think it's not fit enough.

In the end if you end up not using it, you can peak at the sources and functionality it implements and do it your own way.

To me redoing it from scratch is a bit pointless especially with such a good / free one.

like image 81
MadBoy Avatar answered Nov 25 '25 15:11

MadBoy