Results 1 to 4 of 4

Thread: [RESOLVED] create calendar with msflexgrid flexgrid grid control

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2013
    Posts
    16

    Resolved [RESOLVED] create calendar with msflexgrid flexgrid grid control

    Name:  calendar.jpg
Views: 2488
Size:  33.4 KB please finish for me or help. No need for years. January, March, May, July, August, October, December have 31 days. September, April, June, November have 30 days.
    Code:
    Private Sub Form_Load()
        Dim C As Integer
        Dim R As Integer
    
        cboMonth.AddItem "January"
        cboMonth.AddItem "February"
        cboMonth.AddItem "March"
        cboMonth.AddItem "April"
        cboMonth.AddItem "May"
        cboMonth.AddItem "June"
        cboMonth.AddItem "July"
        cboMonth.AddItem "August"
        cboMonth.AddItem "September"
        cboMonth.AddItem "October"
        cboMonth.AddItem "November"
        cboMonth.AddItem "December"
        
        cboDay.AddItem "Monday"
        cboDay.AddItem "Tuesday"
        cboDay.AddItem "Wednesday"
        cboDay.AddItem "Thursday"
        cboDay.AddItem "Friday"
        cboDay.AddItem "Saturday"
        cboDay.AddItem "Sunday"
        
        MSFlexGrid1.Rows = 6
        MSFlexGrid1.Cols = 7
        MSFlexGrid1.FixedCols = 0
        
        For C = 0 To MSFlexGrid1.Cols - 1
           MSFlexGrid1.ColWidth(C) = 600
        Next C
        For R = 0 To MSFlexGrid1.Rows - 1
            MSFlexGrid1.RowHeight(R) = 600
        Next R
        
        With MSFlexGrid1
            .Row = 0
            .Col = 0
            .Text = "Mon"
            .Col = 1
            .Text = "Tue"
            .Col = 2
            .Text = "Wed"
            .Col = 3
            .Text = "Thu"
            .Col = 4
            .Text = "Fri"
            .Col = 5
            .Text = "Sat"
            .Col = 6
            .Text = "Sun"
        End With
    End Sub
    Last edited by firezap; Jan 21st, 2013 at 08:38 PM.

Tags for this Thread

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