Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 21-04-2009
Member
 
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.
Reply With Quote
  #2  
Old 21-04-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
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.
Reply With Quote
  #3  
Old 21-04-2009
Member
 
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Calendar issues in Visual basic 6"
Thread Thread Starter Forum Replies Last Post
what are Visual Basic IDE? Naresh Modi Software Development 2 06-03-2009 09:49 AM
Is GUI same like Visual Basic ? Caesar Software Development 2 02-03-2009 01:32 PM
Visual Basic 2005 or Visual Basic 6 Aasha Software Development 5 15-01-2009 06:56 PM
My Class In Visual Basic Danior Software Development 6 12-01-2009 02:48 PM
Visual Basic on LAN djbbenn Software Development 2 05-08-2008 02:15 PM


All times are GMT +5.5. The time now is 05:11 AM.