Results 1 to 16 of 16

Thread: dropDown Calendar control

  1. #1

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    dropDown Calendar control

    features include:

    • UK/US holidays
    • programmable reminders
    Attached Images Attached Images  
    Attached Files Attached Files

  2. #2
    Lively Member
    Join Date
    Dec 2007
    Posts
    109

    Re: dropDown Calendar control

    nice but can y set a year calendar on a form

  3. #3

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: dropDown Calendar control

    Quote Originally Posted by glda19 View Post
    nice but can y set a year calendar on a form
    Not sure what you mean. Try asking in the main VB forum if your question doesn't relate to this control:

    http://www.vbforums.com/forumdisplay...sual-Basic-NET

  4. #4
    Lively Member
    Join Date
    Dec 2007
    Posts
    109

    Re: dropDown Calendar control

    now you have a form with a calendar for one month. Can you make it for 12 months

  5. #5

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: dropDown Calendar control

    Quote Originally Posted by glda19 View Post
    now you have a form with a calendar for one month. Can you make it for 12 months
    The max. dropdown display is one month, but you can change months and years, so you could change the display to show next month, or 6 months from now...

  6. #6
    Lively Member
    Join Date
    Dec 2007
    Posts
    109

    Re: dropDown Calendar control

    how can i change it so that it works like the standard calender of vb.net. There you can set 4 colums en 3 rows. than you have a year calender how can i change yourse

  7. #7

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: dropDown Calendar control

    Quote Originally Posted by glda19 View Post
    how can i change it so that it works like the standard calender of vb.net. There you can set 4 colums en 3 rows. than you have a year calender how can i change yourse
    That would take quite a lot of work. I don't have time to do a personalized rewrite for you.
    If you want to use a standard MonthCalendar:

    Code:
    Public Class Form1
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim xStart As Integer = 12
            Dim yStart As Integer = 12
            For x As Integer = 1 To 12
                Dim calendar As New MonthCalendar()
                calendar.MinDate = New Date(Now.Year, x, 1)
                calendar.MaxDate = New Date(Now.Year, 12, 31)
                calendar.SetDate(calendar.MinDate)
                calendar.Name = "calendar" + x.ToString
                calendar.Location = New Point(xStart, yStart)
                If x = 4 Or x = 8 Then
                    xStart = 12
                    yStart += (calendar.Height + 12)
                Else
                    xStart += (calendar.Width + 55)
                End If
                Me.Controls.Add(calendar)
            Next
            Me.SetClientSizeCore(xStart + 6, CInt(yStart * 1.5))
        End Sub
    
    End Class

  8. #8
    Lively Member
    Join Date
    Dec 2007
    Posts
    109

    Re: dropDown Calendar control

    The code that you give is that for yours calendar or the Standard vb calendar.
    I have youre code is pisible to give a tip how to doget that ?
    Now where did you store the events I give in. A tip is welcome to change it toto a db to store the evenevents

  9. #9

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: dropDown Calendar control

    The code I posted was for a standard MonthCalendar.
    If you can wait 7 to 14 days I might rewrite the control as something more similar to what you're looking for. I really can't look at it any sooner than that...

  10. #10
    Lively Member
    Join Date
    Dec 2007
    Posts
    109

    Re: dropDown Calendar control

    Its good for me i look aslo to your code. And look i can change it .
    Where do you save the reminders can i save it in a database.
    End is it posible to add the weeknumbers.

    And i need a tip how to set a vertical line every four week. when i set in thunderbird mail and calender a event that have a duration of 4 days and than i set to repeat it everry 4weeks. That works.
    How can i do that?

  11. #11
    Lively Member
    Join Date
    Dec 2007
    Posts
    109

    Re: dropDown Calendar control

    Quote Originally Posted by .paul. View Post
    The code I posted was for a standard MonthCalendar.
    If you can wait 7 to 14 days I might rewrite the control as something more similar to what you're looking for. I really can't look at it any sooner than that...
    Did you rewrite the calendar like you told. Or to i have to wait so how long

  12. #12
    Frenzied Member
    Join Date
    Dec 2014
    Location
    VB6 dinosaur land
    Posts
    1,191

    Re: dropDown Calendar control

    Quote Originally Posted by glda19 View Post
    Did you rewrite the calendar like you told. Or to i have to wait so how long
    Surely in 3 weeks you could have figured out how to modify it on your own. Did you even bother to try?

  13. #13
    Lively Member
    Join Date
    Dec 2007
    Posts
    109

    Re: dropDown Calendar control

    i don't have the time to do that. But i will look at it. And you say when you have 8 ore 14 days i change if for you

  14. #14
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: dropDown Calendar control

    Quote Originally Posted by glda19 View Post
    i don't have the time to do that. But i will look at it. And you say when you have 8 ore 14 days i change if for you
    You don't have time to do it yourself, yet you have the time to wait for someone else to do it?
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  15. #15
    Lively Member
    Join Date
    Dec 2007
    Posts
    109

    Re: dropDown Calendar control

    that is waht you wrote
    The code I posted was for a standard MonthCalendar.
    If you can wait 7 to 14 days I might rewrite the control as something more similar to what you're looking for. I really can't look at it any sooner than that..
    so i wait

  16. #16
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,929

    Re: dropDown Calendar control

    No, that is what somebody else wrote... and the word "might" is extremely important, it does not mean "will".

    Unless you are paying somebody, you can't expect them to do your work for you (whether or not it is something you are being paid for). You were given advice on how to do it, but it seems that you aren't willing to put in any effort to try.


    I recommend that you at least make an attempt yourself, even if you don't manage to complete it. If you make a decent attempt and get stuck, I recommend creating a new thread in the VB.Net forum.

    If you aren't willing to try, I recommend either finding a pre-made control that does exactly want you want, or find a site that allows you to hire programmers and pay one to make it for you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width