Hi,
Me to Express vb 2k5
As I could remember there was a funtion in the old VB where simply type "Time" or something then it will show you the real time and second appear on the label.
Is that funtion still available in VB express 2k5, or it had been renamed to something else?
thx
8 17188
Have you tried something like: - lblTime.Text = Format(Now, "HH:mm:ss")
Hope that this helps.
Have you tried something like: - lblTime.Text = Format(Now, "HH:mm:ss")
Hope that this helps.
i tried that before it does show the time, but it doesnt refresh like a realtime:(
Not sure purpose of clock, but live clocks are usually done through JS - check out: Clocklink
Not sure purpose of clock, but live clocks are usually done through JS - check out: Clocklink
my idea behind using a clock with ticking second was for the user to know the current time when the program run all will be blackout only the program is visible so i need a clock for my VB project to let users know what time it is.
my idea behind using a clock with ticking second was for the user to know the current time when the program run all will be blackout only the program is visible so i need a clock for my VB project to let users know what time it is.
if your project is web application, you must use script ( javascript , or other ) to show current time.
if your project is window application, you can try by timer controls, place the code to tick event of timer control. set enabled to true and interval to 1000 for timer control's properties.
Well, I know this much.
In VB6, you can make a label showing the time and make it update by it self. In .NET I am still stumped on how to do that correctly.
but the Code for VB6 is
and it's that easy, I wish I knew how to do it in .NET, I'm sure my programming teacher will tell me what the code is, if I get it I will share it with everyone.
Till then,
Overdosed
Check out htis link: http://www.mycsharpcorner.com/Post.aspx?postID=23
It shows how you can make your own Clock User Control, then you can use in your Windows Form.
The basic idea is simple: "you use a Timer object to refresh a Lable Text property with the current time".
Hope this helps!
I need a javascript to click an URL link at 7:00pm CST everyday which starts a web presentation?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Agency |
last post by:
I'm still working on the bpm counter.
I need to have at least 2 displays that are not static. One would be a
clock/running time and the other would should the current beat count.
How would I do this in Tkinter? I was thinkning of canvas-text, but
there must be a widget for doing this kind of display. I'm a bit lost
and would appreciate some help.
|
by: Terry Carroll |
last post by:
I've got a small batch image-processing program (it adds the time a
digital photo was taken to the lower right of the image), and as a
feature, I wanted to show a thumbnail of each image it was being
processed. I can't get the image to update, though.
I trimmed it down to a basic app indicating the problem and the code
is at the end of this message. It should display the three listed
sample images, one after another.
The thing is,...
|
by: Carl |
last post by:
I have a main form with navigation buttons on it and a label showing
for example Record 1 of 15 using recordsetclone on it and eveything
works fine. When I move through the records the record number changes
fine. Within this main form I have a subform detailing distribution
records for the contact (main form is based on this) that also has
navigation buttons and a label showing Distribution 1 of ##. This is
where the problem lies. The...
|
by: Bart Goeman |
last post by:
Hi,
I have a question about how to put redundant information in data
structures, initialized at compile time. This is often necessary
for performance reasons and can't be done at run time (data
structures are read only)
Ideally one should be able to put the redundant
information there automatically so no mistakes are possible, but in a lot
of case I see no way how to do it.
|
by: SysSpider |
last post by:
Hi again,
This is my problem: when i try to compile the code that contains the
function below, i get this:
--
gcc:21: error: case label does not reduce to an integer constant
gcc:24: error: case label does not reduce to an integer constant
--
| |
by: M. David Johnson |
last post by:
I cannot get my OleDbDataAdapter to update my database
table from my local dataset table. The Knowledge Base
doesn't seem to help - see item 10 below.
I have a Microsoft Access 2000 database which indexes
computer magazine articles for personal reference.
I am developing a Visual Basic.NET program whose sole
purpose is to enter new records into the database. No
updates to existing entries, no deletions, and no display
|
by: Will |
last post by:
Hi there ..
I wanna know how to display the time in a label and have
it change every sec with the system cock ...
meaning that its always syncronized with the system clock,
Sec per sec.
I need the code.
|
by: rbinington |
last post by:
Hi,
I am trying to write a DNN module that has the ability to insert articles into an article repository. I want the users to be able to move pages around and enter text into the FCKEditor. I want only one instance of the FCKEditor on the screen at one time so I make tabs that the user can click and I store the values in variables behind the scenes. I change the CSS class on the link that is the currently selected one.
I have a really...
|
by: Rex Mottram |
last post by:
Can anyone explain this?
% cat t.c
#include <stdio.h>
#define FIRST "first"
#define SECOND "second"
int
main(int argc, char *argv)
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |