Set DateTimePicker date
-
It depends on what you mean, one month later than what? If you mean one month from another DateTimePicker then
Me.DateTimePicker2.Value = Me.DateTimePicker1.Value.AddMonths(1)
If you mean from todays date then
Me.DateTimePicker1.Value = Me.DateTimePicker1.Value.AddMonths(1)
If that doesn't get you there, please be a little more specific. Thanks
-
A wild, adventurous, and untested guess:
dateTimePicker.Value=dateTimePicker.Value.AddMonths(1)
:confused:Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
-
It depends on what you mean, one month later than what? If you mean one month from another DateTimePicker then
Me.DateTimePicker2.Value = Me.DateTimePicker1.Value.AddMonths(1)
If you mean from todays date then
Me.DateTimePicker1.Value = Me.DateTimePicker1.Value.AddMonths(1)
If that doesn't get you there, please be a little more specific. Thanks
-
A wild, adventurous, and untested guess:
dateTimePicker.Value=dateTimePicker.Value.AddMonths(1)
:confused:Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Luc Pattyn wrote:
A wild, adventurous,
Stop living dangerously!
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
-
Luc Pattyn wrote:
A wild, adventurous,
Stop living dangerously!
Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]
why? adding a meesage to the VB forum always is an adventure, you never know what the outcome will be. :laugh:
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
-
why? adding a meesage to the VB forum always is an adventure, you never know what the outcome will be. :laugh:
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
You don't have to go as far as adding a message........just visiting the VB Forum is a wild adventure, the savage beast that is a poorly asked question is always lurking in the shadows, just waiting to jump out, to be rapidly shot down by quick CG response :)