• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

vb monthCalendar

what is the return value of the mouse, I want to take the value of the chosen date YYYY-MM-DD and insert into a textbox
0
prowebinteractive
Asked:
prowebinteractive
1 Solution
 
riyazthadCommented:
   Private Sub MonthCalendar1_DateSelected(ByVal sender As Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateSelected
        TextBox1.Text = e.Start.Date
    End Sub

If you are selecting one date, it will put it textbox or else if you are selectign range of date, then you need to use both
e.Start.Date and e.End.Date .

0
 
prowebinteractiveAuthor Commented:
I need the selected month, not the start, nor end
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now