Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. the best way to draw a calendar in C#

the best way to draw a calendar in C#

Scheduled Pinned Locked Moved C#
csharpgraphicsxmlhelptutorial
7 Posts 4 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    student1988
    wrote on last edited by
    #1

    Hi im trying to implement a calendar interface in my C# application but im not sure what the best way to draw the calendar is - i had a look at the form controls in visual C# 2005 and thought the datagridview might be a good start then populate it with events from an Xml file Another possible solution would be google calender but i couldnt find any help with drawing google calender in C# application and thier tutorial was about adding and manipultaing events using .NET cliet libraries. Does anyone have any ideas for this? i would appreciate any help Cheers

    R 1 Reply Last reply
    0
    • S student1988

      Hi im trying to implement a calendar interface in my C# application but im not sure what the best way to draw the calendar is - i had a look at the form controls in visual C# 2005 and thought the datagridview might be a good start then populate it with events from an Xml file Another possible solution would be google calender but i couldnt find any help with drawing google calender in C# application and thier tutorial was about adding and manipultaing events using .NET cliet libraries. Does anyone have any ideas for this? i would appreciate any help Cheers

      R Offline
      R Offline
      Rob Philpott
      wrote on last edited by
      #2

      The DateTimePicker control does it all for you presuming your working with WinForms and not WebForms.

      Regards, Rob Philpott.

      S 1 Reply Last reply
      0
      • R Rob Philpott

        The DateTimePicker control does it all for you presuming your working with WinForms and not WebForms.

        Regards, Rob Philpott.

        S Offline
        S Offline
        student1988
        wrote on last edited by
        #3

        Thanks for the reply, Rob. this is not what i im looking for though. i want to draw a calendar for a schedule and to have the days of the week displayed vertically and the time horizontally (similar to school timetable format) and then to populate this with shifts created in the program.

        M R 2 Replies Last reply
        0
        • S student1988

          Thanks for the reply, Rob. this is not what i im looking for though. i want to draw a calendar for a schedule and to have the days of the week displayed vertically and the time horizontally (similar to school timetable format) and then to populate this with shifts created in the program.

          M Offline
          M Offline
          musefan
          wrote on last edited by
          #4

          Personally I would handle the paint event for a panel and draw with the Graphics class, that way I can make it look anyway I want it to :)

          Life goes very fast. Tomorrow, today is already yesterday.

          1 Reply Last reply
          0
          • S student1988

            Thanks for the reply, Rob. this is not what i im looking for though. i want to draw a calendar for a schedule and to have the days of the week displayed vertically and the time horizontally (similar to school timetable format) and then to populate this with shifts created in the program.

            R Offline
            R Offline
            Rob Philpott
            wrote on last edited by
            #5

            A bit like Outlooks Calendar feature? Sorry, got the wrong end of the stick. Two routes to what you want - either get a 3rd party control which does that sort of thing or roll your own. If you've not written a control like that before, its not a light undertaking!

            Regards, Rob Philpott.

            S 1 Reply Last reply
            0
            • R Rob Philpott

              A bit like Outlooks Calendar feature? Sorry, got the wrong end of the stick. Two routes to what you want - either get a 3rd party control which does that sort of thing or roll your own. If you've not written a control like that before, its not a light undertaking!

              Regards, Rob Philpott.

              S Offline
              S Offline
              student1988
              wrote on last edited by
              #6

              what do you mean by third party control? something like Google calendar API Cheers

              2 1 Reply Last reply
              0
              • S student1988

                what do you mean by third party control? something like Google calendar API Cheers

                2 Offline
                2 Offline
                22over7
                wrote on last edited by
                #7

                You might want to have a look at: Month Calendar[^] and maybe: Calendar DayView Control[^] as well. There are demos and source code you can download and tweak should you wish. Hope this helps, and good luck.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups