By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 924 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Need to build a custom calendar control

P: n/a
Hello all:

I have a C# windows application that needs a custom calendar. I need this
calendar displayed as a month view. I also need the ability to
insert/manipulate images and text into each day cell. I will also need drag
and drop functionality for each item in the day. I figure there is two ways
to go about this; 1) create a user control for use in a windows form or 2)
use a web page in a web browser control. Which method would you use?

1) A user control would be my preference because I already have a library
of controls I'm using. However, I'm not certain how to go about creating
the cells, lines, borders and all. I did create a control that resembeled a
month view by using text labels across the top (m,t,w, etc) and then
bordered listboxes arranged in cols/rows that formed the day cells. This
could work, but there would be a lot of alignment code (resize and maximize,
etc.). Although, after looking at Outlooks calendar it seems those cells
are listboxes too... maybe I'm on the right track.

2) I've thought about using a web browser control and loading an XML page
(my target user will most likely not have an in-house web server). I've
already got a web browser control that loads a support page and downloads
page from my server. My preference would be to use an ASP.net page instead
of XML but I'm not sure how to load it into the browser control w/o a web
server to parse it. And I don't know how to get drag and drop to work with
the individual items in each day *in* a browser. I'm sure it can be done
and if this is the best route to go, then I'll figure it out.

Thanks for the help and consideration,
Mike
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.