how to set a date time value different from system time in the status bar 
Author Message
 how to set a date time value different from system time in the status bar

HI

Is it possible to set a date/time different from the
system time in the panels of the status bar. And once set
it should increment the date/time as the time moves
forward.

If there is any 3rd party product available to accomplish
this, please advice.

Thanks

vidit



Sat, 30 Oct 2004 02:41:56 GMT  
 how to set a date time value different from system time in the status bar
It's easy enough to use a timer....
Drop a timer and a statusbar on a form and paste the following
'===========
Option Explicit

Private miDateOffset As Integer

Private Sub Form_Load()
   'add a panel to display the time in
   StatusBar1.Panels.Add , "MyTime", "", sbrText

   miDateOffset = 3 'show 3 hours later (use negative for earlier)

   Timer1.Interval = 5 'fire asap the first time through
   Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
   StatusBar1.Panels("MyTime").Text = DateAdd("h", miDateOffset, Now)
   Timer1.Interval = 750
End Sub
'===========

--
Ken Halter
MS-MVP-VB
http://www.vbsight.com
Please keep it in the groups..

Quote:

> HI

> Is it possible to set a date/time different from the
> system time in the panels of the status bar. And once set
> it should increment the date/time as the time moves
> forward.

> If there is any 3rd party product available to accomplish
> this, please advice.

> Thanks

> vidit



Sat, 30 Oct 2004 03:27:26 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to set VB application time different from system time

2. Matching system date/time with field date/time

3. combining a time and a date to one Date/Time value

4. My StatusBarEx Control -- ProgressBar, PictureBox, Virtual Key, CapsLock, Date, Time, StatusBar, Status Bar

5. Status Bar Panel Type Date/Time

6. Date & Time in Status bar

7. Date/Time in VB5 Status Bar

8. Updating Time and Date on Status Bar

9. date/time on status bar do not refresh

10. How do you display a date and time field on a status bar

11. Date & Time update in a status Bar

12. Set System Time to Server Time

 

 
Powered by phpBB® Forum Software