Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How could I represent a series of events like google calendar?

I need to be able to plot events on a vertical timeline and I like the way Google Calendar achieves this:

Screenshot of a day in Google Calendar

Currently I'm displaying the information with a ListView component, but this two practical drawbacks:

  1. It's far from clear when there's a gap
  2. Or, conversely, when there's an overlap

Both problems stem from the lack of representation of event length. This is the primary thing I'd like to rectify.

Is there a component available that will help me to do this? Else, does anyone have any suggestions for how I should go about making it from scratch?

I'm using C# and winforms.

like image 799
Tom Wright Avatar asked Feb 26 '23 03:02

Tom Wright


2 Answers

Tom, if you are ready to pay for commercial scheduling component, here is the one and similarly there are some others available in the market.

http://www.syncfusion.com/products/user-interface-edition/windows-forms/Schedule

but if you intend to develop one by yourself, then probably you could customize DataGrid control that's by far the reliable way which I could think of. but authoring a new windows forms control will take quite a bit of time, then we could expect.

Happy Coding.

like image 198
Karthik Mahalingam Avatar answered Mar 04 '23 02:03

Karthik Mahalingam


My first thoughts are to A) try using the Microsoft Charts to make this or B) Create a custom control that draws out rectangles for each event, and position the rectangle in the appropriate time range.

like image 22
Tony Abrams Avatar answered Mar 04 '23 01:03

Tony Abrams