How to Set DateTimePicker Values to Current Month Range in VB.Net

0
75

This tutorial is all about How to Set DateTimePicker Values to Current Month Range in VB.Net. With this tutorial you can Set DateTimePicker Values to Current Month Range in VB.Net easily. So let’s get started:

  • First is open the Visual Basic, Select File on the menu, then click New and create a new project.

  • Then a New Project Dialog will appear. You can rename your project, depending on what you like to name it. After that click OK

  • Design your form like this just like what I’ve shown you below.
    Add 2 DateTimePicker from the ToolBox.
  • After Designing your form, Add this code.
    1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2. DateTimePicker1.Value = Today.Date.AddDays(-Today.Day + 1)
    3. DateTimePicker2.Value = Today.DateEnd Sub
  • Finally,Click F5 to run the Program.
    Output:

If you have any comments or suggestion about on How to Set DateTimePicker Values to Current Month Range in VB.Net, Please Feel Free to contact our webpage.

Download How to Set DateTimePicker Values to Current Month Range in VB.Net Code Here

Other articles you might read also:

 

 

 

Facebook Comments
(Visited 84 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here