Hi,
Use the following for updating Date & Time on regular basis.
[CODE=vb]Private Sub Timer1_Timer() 'Set Timer 1 Interval =1000
Label1.Caption = Date ' Present Date
Label2.Caption = Time ' Present Time
End Sub[/CODE]
At Label1.Caption & Label2.Caption you will get actual present date & time
updating every second. Now convert & use as given below. ...
User Profile
Collapse
-
Last edited by Killer42; Nov 18 '07, 12:07 AM. Reason: Reduced excessive quote block, added CODE=vb tag -
khushtarzia started a topic Automatic Time Manager (ATM) for On/Off Timer in VB6 through PC's LPT-1 Portin Visual BasicAutomatic Time Manager (ATM) for On/Off Timer in VB6 through PC's LPT-1 Port
Dear Friends
I want to know how to generate 1/100 of a second time in VB6 for On/Off Timer
function for Automatic Time Manager (ATM) through PC's LPT-1 Port with Interfac. Kindly help me.
Thanks
Khushtar Zia -
Hi
Click on the following links & know more n more about Visual Basic
supports from Microsoft.
http://msdn2.microsoft.com/en-us/vbrun/default.aspx
http://msdn2.microsoft.com/en-us/vbrun/ms788708.aspx
http://msdn.microsoft.com/vbasic/support/
Khushtar Zia...Leave a comment:
-
Hi
Pl tell me, IS IT WORK IF We Note the following two points.
for 3 digit BCD reading of an digital instrument.
1- Type in (Module1.bas)
Public Declare Function Inp Lib "inpout32.d ll" Alias "Inp32" _
(ByVal address As Integer) _
As Integer
Public Declare Sub Out Lib "inpout32.d ll" Alias "Out32" _
(ByVal address As Integer, _
ByVal...Leave a comment:
-
khushtarzia started a topic PC's LPT-1 Interface with Windows XP & VB-6 for BCD output of an instrumentin Visual BasicPC's LPT-1 Interface with Windows XP & VB-6 for BCD output of an instrument
Hi,
Any body can help me to interface 3 digit BCD output of an digital instrument to PC's through LPT-1 to read the BCD out put on screen in 3 digit decimal that is 999 format.
Hhushtar Zia -
Make application through Package and Deployment Wizard means PDCMDLN. The path of the file PDWizard is as under --->C:\Program Files\Microsoft Visual Studio\VB98\Wiz ards\
Khushtar Zia...Leave a comment:
-
VB6 and DOS Commands
HI,
Can anybody tell me how we can Execute DOS Internal or External commands like DIR, CLS,MD,RD or CHKDSK etc. from VB6?
Thanks
Khushtar Zia
No activity results to display
Show More
Leave a comment: