473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

statusbar

Syd
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...
Nov 17 '05 #1
2 2990
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 (me*****@gmail.com) and i will send it to you.
--
Alvo von Cossel I of Germany
"Syd" wrote:
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...

Nov 17 '05 #2
> > I put a statusbar to my form.And I want to add a clock.I wrote
statusbarpanel1.text=DateTime.Now.ToString( )
but the cl
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.
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Scott | last post by:
How can I get text to remain on the Browser's statusbar? For example, if I'm saving data to a DB Table after a user clicks a Button in the ASP page, I want the statusbar to show something like...
4
by: Tonya | last post by:
Hi, Does anyone know how i can add controls to a progress bar. I have searched the internet but could not find any examples. what i want to add is a progress bar and a button. thx
18
by: Andrew Poulos | last post by:
If I manage to call the following bit of javascript in IE and MZ w = window.open("", "s", 'status=no,resizable=no,width=450,height=450'); I get a window that is not resizable and without a...
1
by: Ahmet | last post by:
In my application, I have statusbar on which i show icons. On some cases, I have to change icon of my statusbar to show different messages on panels. But I dont know how to change icon of one...
3
by: TonyM | last post by:
Hi all, I have an application with a few different Windows forms. I am trying to update a statusbar panel's text that is in the main form, from another form. When I set the statusbar and the...
9
by: Christian Blackburn | last post by:
Hi Gang, I've had this happen with a couple of controls now, but my patience has worn thin. Can somebody tell me why I can read/write to most objects on my form from my module, but not when...
6
by: Anony | last post by:
Hi All, I have two icons: Private micoIcon1 As New System.Drawing.Icon(System.IO.Path.Combine(Application.StartupPath, "Icon1.ico")) Private micoIcon2 As New...
2
by: GrandpaB | last post by:
HI, I am attempting to write to the StatusBar on MyForm from within a class that I wrote. In the following code, VB does not like 'MyForm.StatusBar1.' VB states, ' Reference to a non-shared member...
1
by: herve | last post by:
Hi, everybody I'm working with wxPython 2.8.1.1. Does anybody know how to change the foreground colors in a wx.StatusBar
3
by: S. Viswanathan | last post by:
Hi everybody! In VB.NET 2005, MenuStrip and Statusstrip controls added. When the mouse over on the Menuitem its corresponding Tooptip text should be displayed in the statusstrip. How to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.