Visual Basic Help needed!

Ranhiru

Member
Feb 2, 2007
6,438
42
0
Inside FIREFOX
Im using Visual Basic Express 2008...and Well i have a data time picker and when the user picks a date from the date time picker there is another date time picker and it should display the date which is 3 days after the date what the user entered in the previously?

plz help! Thanx a lot in advance
 

rapa

Member
May 5, 2006
17,049
48
0
සසර ගමන තුළ
Ranhiru said:
Im using Visual Basic Express 2008...and Well i have a data time picker and when the user picks a date from the date time picker there is another date time picker and it should display the date which is 3 days after the date what the user entered in the previously?

plz help! Thanx a lot in advance
machan text field eka hariyata name karalada thiyenne?
 

heshan123

Member
Jan 12, 2007
3,422
3
0
40
SrI lAnKa
Sorry for the late reply machan. Just saw ur thread. Here is the code. Hope u will get it.

Public Class Form1
Dim dat1 As Date

Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
dat1 = DateTimePicker1.Value

DateTimePicker2.Value = dat1.AddDays(3.0)

End Sub

End Class
 
Last edited:
  • Like
Reactions: Ranhiru

shaaj

Member
Sep 21, 2006
3,817
4
0
Death Valley
Ranhiru said:
Im using Visual Basic Express 2008...and Well i have a data time picker and when the user picks a date from the date time picker there is another date time picker and it should display the date which is 3 days after the date what the user entered in the previously?

plz help! Thanx a lot in advance

MASSINA MOKADA PENNA NETTE... HELP ILLANNA WITHARADA DEN EK ENNE... :P :P ;) ;)
 

Ranhiru

Member
Feb 2, 2007
6,438
42
0
Inside FIREFOX
heshan123 said:
Sorry for the late reply machan. Just saw ur thread. Here is the code. Hope u will get it.

Public Class Form1
Dim dat1 As Date

Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
dat1 = DateTimePicker1.Value

DateTimePicker2.Value = dat1.AddDays(3.0)

End Sub

End Class


Thanx a lot machan...ill check this and tell u k :D :D :D