Hi everybody…![]()
I’m newbie in vb.net…
I’ve created a vb.net form which contain two datetimepicker by the following format “ddd dd MMM yyyy HH:mm” , a button and three PictureBoxs.
Form Descriptions:
DateTimePicker1: stored datetime value using application setting
DateTimePicker2: current datetime value
Button1: send the value of current datetime to stored datetime
Green image (OK)
Yellow image (Attention)
Red image (Urgent)
I want to add animated alert related to the values in datetimepickers current and stored datetime by the following situations:-
Situation 1- When the current datetime value of datetimepicker is difference of two days and above of stored datetime value:
Green image (OK) steady visible=true
Yellow image (Attention) visible=false
Red image (Urgent) visible=false
*For example if the current datetime is “Tue 07 Oct 2008 17:15” and the stored datetime is “Fri 10 Oct 2008 17:15” the green image will be visible & steady , other images are hidden until the next situation.
Situation 2- When the current datetime value of datetimepicker reach two day before stored date at time 06:30
Green image (OK) visible=false
Yellow image (Attention) blinks visible=true
Red image (Urgent) visible=false
*For example if the current datetime is “Mon 07 Oct 2008 06:30” and the stored datetime is “Fri 10 Oct 2008 17:15” the Yellow image will be visible & blinks, other images are hidden until the next situation.
Situation 3- When the current datetime value of datetimepicker is equal of stored datetime value at time 06:30
Green image (OK) visible=false
Yellow image (Attention) visible=false
Red image (Urgent) blinks visible=true
*For example if the current datetime is “Fri 10 Oct 2008 06:30” and the stored datetime is “Fri 10 Oct 2008 17:15” the Red image will be visible & blinks, other images are hidden until the next situation.
Please any suggestions and ideas
Regards…![]()




Reply With Quote