statusbar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
I put a statusbar to my form.And I want to add a clock.I wrote
statusbarpanel1.text=DateTime.Now.ToString( )
but the clock does not work.How does it work?
Thanks...
 
hi,

i heard that you could combine jscript with c#. i know how to make a working
clock with jscript but not with c#. i havent got much time at the moment but
you could ask the disccussion group how to combine jscript with c# and
hopefully you will get a decent answer

i will be on holiday for a while so could you please ask me for the jscript
via email ([email protected]) and i will send it to you.
 
I put a statusbar to my form.And I want to add a clock.I wrote
i heard that you could combine jscript with c#. i know how to make a working
clock with jscript but not with c#. i havent got much time at the moment but
you could ask the disccussion group how to combine jscript with c# and
hopefully you will get a decent answer

I assume that you are talking about stand alone applications?
In that case, I don't see why you would need javascript.

Just add a timer component to that form and in that timer event execute
"statusbarpanel1.text=DateTime.Now.ToString( )"
This should do the trick. So every second the timer gets updated.
 
Back
Top