holiday callender
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: holiday callender

  1. #1
    Join Date
    May 2003
    Posts
    7

    holiday callender

    Hi
    Look at the calender jepg to see what i want.
    Anny tips ar wlecome
    I think to store the holidays in a db file?

    But how can i mak a calendar in vb.net
    You see a red line and the last red line is between 51 and 52 so 52 of the year is the first column of the next year.
    I test it with thunderbird mail and the lightning calendar extention. And there it works when i creat a event every 4 weeks it works good.

    Everry tips how to start is welcome
    Name:  calendar.jpg
Views: 80
Size:  36.4 KB

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,259

    Re: holiday callender

    What have you done so far?

  3. #3
    Join Date
    May 2003
    Posts
    7

    Re: holiday callender

    Looking for a tool on google how can doe that but noting found that do the job. Sorry
    I found well a custom created calender tool and i take a look in the weekend to change them. But i don't now how to set the red line.
    And the person who created told me that he try to change it we will see and wait.

  4. #4
    Join Date
    May 2003
    Posts
    7

    Re: holiday callender

    i have nothing at the moment need tips to start

  5. #5
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,259

    Re: holiday callender

    You have had basically 6 months to do research, or at least to come up with something. How can you expect us to help if you haven't done any effort?

    If you have some code, post it here. we can try to puzzle it out. When providing code it makes all of our lives easier

  6. #6
    Join Date
    May 2003
    Posts
    7

    Re: holiday callender

    i have nothing beacause i don't now ho to start
    Do not know how to start otherwise i would not ask for tips

  7. #7
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,243

    Re: holiday callender

    I tired to look at your image but it is scaled down to the point that I can't tell much about it.

    You'll need to determine what you want it to look like and layout your form then begin writing code that populates text and sets any colors you might want to use.
    Again your picture is of no real help and you really have not provided any info about what you want combine so can only speak in general terms.
    Always use [code][/code] tags when posting code.

  8. #8
    Join Date
    May 2003
    Posts
    7

    Re: holiday callender

    KalenderLaatsteVersie.pdf
    In attachements a pdf file with my callendar it

    On the calendar there are thik redlines And thy must com automaticly.
    that is the code to detect if the date falls in the 4 week of the year
    And when i now when is the first line that for the following line is weeknumber of firstline +4
    That is the code i use in vba excel
    Code:
     
    For Each ElkeCel In Range("H4:H9")
        RodeLijn = VierdeWeekCv(ElkeCel.Value)
        If RodeLijn = "Waar" Then
            RodeLijnTeller = ElkeCel.Offset(, 1)
            Exit For
        End If
    Next
    
    Function VierdeWeekCv(Datum As Date) As Boolean
        VierdeWeekCv = (DateDiff("ww", DateSerial(1900, 1, 1), Datum, vbMonday) Mod 4) = 3
    end sub
    Last edited by glda19; May 19th, 2017 at 10:10 AM.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)