Results 1 to 3 of 3

Thread: Calendar issues in Visual basic 6

  1. #1
    Join Date
    Mar 2009
    Posts
    89

    Calendar issues in Visual basic 6

    Hello friends,

    I am facing an issue while creating while creating calenders in Visual basic 6.0. I I need a function which takes a year as input and tells whether it's a leap year or not.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Calendar issues in Visual basic 6

    Try to follow this steps first go to Project - - >components and from here select Microsoft calendar control 12 and finally add calendar in your application.

  3. #3
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Calendar issues in Visual basic 6

    I would suggest you to use the following code for finding input values is a leap year or not.

    Code:
    Private Sub Form_Load()
        MsgBox "2008 = " & IsLeapYear(2008)
        MsgBox "2009 = " & IsLeapYear(2009)
    End Sub
    
    Private Function IsLeapYear(ByVal iYear As Integer) As Boolean
    Dim strDate As String
    
        strDate = "February 29, " & iYear
        IsLeapYear = IsDate(strDate)
    End Function

Similar Threads

  1. what are Visual Basic IDE?
    By Naresh Modi in forum Software Development
    Replies: 2
    Last Post: 06-03-2009, 09:49 AM
  2. Is GUI same like Visual Basic ?
    By Caesar in forum Software Development
    Replies: 2
    Last Post: 02-03-2009, 01:32 PM
  3. Visual Basic 2005 or Visual Basic 6
    By Aasha in forum Software Development
    Replies: 5
    Last Post: 15-01-2009, 06:56 PM
  4. My Class In Visual Basic
    By Danior in forum Software Development
    Replies: 6
    Last Post: 12-01-2009, 02:48 PM
  5. Visual Basic on LAN
    By djbbenn in forum Software Development
    Replies: 2
    Last Post: 05-08-2008, 02:15 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,771,562.83766 seconds with 16 queries