views:

113

answers:

2

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...)

A: 

If you are developing a web application then I would seriously look at using jquery. A good calendar control should be done client side so I would be looking at some form of java script solution. If you look at jquery-calendar.js as a good example you will see the complexity involved in developing your own control.

kjkerstens
Well, as I'm developing WebApps by using QooxDoo JS Framework I would surely have chosen this framework for this project either. Thanks for your help but as I now specified I'm developing a C# Windows Forms application.PS: have a look at qooxdoo (www.qooxdo.org) - great framework, great support.
dhh
+2  A: 

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.

MadBoy
Thanks for your reply - I'll at least have a look at this one. You're right, at least the code might give some ideas.
dhh
Well - I'll try this one now, maybe developing an own control is realy oversized ^^
dhh
Think so too :-) It really has a lot of functions and adding simple features (if necessary) is much easier then going for the big thing yourself.
MadBoy