| | |
Displaying time on a Form
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2007
Posts: 4
Reputation:
Solved Threads: 0
Hey all~ I'm very new to VB.net infact i've only been so far through 2 classes but I'm still going. My personal Project that I'm doing is a simply display with some buttons that when you click on them that link to an exe file on my desktop. I've gotten that part down, but i'm having trouble locating code to add/Display time on my form.. I want it to display Vertical with the format of HH:MM
S | MM/DD/YYYY. I want it to be in sync with my system time. Is there any way possibal of doing that? ^^; Thanks in advance for any help.:mrgreen:
S | MM/DD/YYYY. I want it to be in sync with my system time. Is there any way possibal of doing that? ^^; Thanks in advance for any help.:mrgreen: •
•
Join Date: Aug 2005
Posts: 6
Reputation:
Solved Threads: 0
You need to add a Timer to you form and a Lable
Double click in the timer and it should up the code editor in the Timer Tick event.
In the Tick event you need to update the Lable.
Lable.text = Date.Now or there abouts..
Make sure the timer interval is set to 1 second, (timer is in milli seconds to it will be 1000)
Stick to it and all this will make sense soon.
JAPEL
Double click in the timer and it should up the code editor in the Timer Tick event.
In the Tick event you need to update the Lable.
Lable.text = Date.Now or there abouts..
Make sure the timer interval is set to 1 second, (timer is in milli seconds to it will be 1000)
Stick to it and all this will make sense soon.
JAPEL
![]() |
Similar Threads
- displaying time (Java)
- displaying labview graph on vb6 form (Visual Basic 4 / 5 / 6)
- Need help simply displaying time on an APP (Visual Basic 4 / 5 / 6)
- impose a limitation on form of time duration (PHP)
Other Threads in the VB.NET Forum
- Previous Thread: Printing Data Report Directly in vb.net
- Next Thread: or the selected partion the permission for Write must be denied.Not allowed the user
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account array basic beginner bing browser button buttons center check code crystalreport cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic dropdownlist excel fade file-dialog filter forms ftp generatetags google gridview html images input insert intel internet listview mobile monitor net networking objects open output panel passingparameters pdf picturebox port position print printing problem remove save searchbox searchvb.net select serial settings shutdown soap sqlserver survey table tcp temperature text textbox timer timespan toolbox transparency trim update user vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode year






