title: How do I add dates to a calendar in vb.net?
body: <p>I'm creating a scheduling calendar for Employees in which they can store their shifts.
  I have so far created Flow layout panels for each day in which I will be displaying the dates.
  But I can't figure out how to display the dates for each month in each panel.</p>
  <p>This is the code I have so far, But it doesn't do anything:</p>
  <pre><code> Private Sub AddlLabelDayToF1Day(ByVal startdayAtf1Number As Integer, ByVal totalDaysInmonth As Integer)
  
     For Each fl As FlowLayoutPanel In listFlday
  
          fl.Controls.Clear()
      Next
  
  
  For i As Integer = 1 To totalDaysInmonth
      Dim lbl As New Label
      lbl.Name = $&quot;lblDay{i}&quot;
      lbl.AutoSize = False
      lbl.TextAlign = ContentAlignment.MiddleRight
      lbl.Size = New Size(107, 23)
      lbl.Text = i
      lbl.Font = New Font(&quot;Microsoft Sans Serif&quot;, 12)
      listFlday((i - 1) + (startdayAtf1Number - 1)).Controls.Add(lbl)
  
  
  Next
  End Sub
  </code></pre>
  <p>ListflDay is the list in which I have added all the Flow layout panels.</p>
  <p>Could anyone please advice how I could make this work please?</p>