Click here to Skip to main content
15,927,060 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Reading XL files in VB6 Pin
RichardGrimmer24-Jun-04 6:11
RichardGrimmer24-Jun-04 6:11 
GeneralTrace the information about share sessions Pin
Mekong River23-Jun-04 23:03
Mekong River23-Jun-04 23:03 
GeneralRe: Trace the information about share sessions Pin
Dave Kreskowiak24-Jun-04 2:35
mveDave Kreskowiak24-Jun-04 2:35 
GeneralRe: Trace the information about share sessions Pin
Mekong River24-Jun-04 5:57
Mekong River24-Jun-04 5:57 
GeneralRe: Trace the information about share sessions Pin
Dave Kreskowiak24-Jun-04 6:28
mveDave Kreskowiak24-Jun-04 6:28 
GeneralRe: Trace the information about share sessions Pin
Mekong River25-Jun-04 6:01
Mekong River25-Jun-04 6:01 
GeneralSystem date and time Pin
mythinky23-Jun-04 18:03
mythinky23-Jun-04 18:03 
GeneralRe: System date and time Pin
Dave Kreskowiak24-Jun-04 3:24
mveDave Kreskowiak24-Jun-04 3:24 
mythinky wrote:
How to make a form displaying the time according to our system date and time?
Drop a TextBox or a Label control on the form:
TextBox1.Text = DateTime.Now().ToString()


mythinky wrote:
How to check whether the date has changed or not?
There is no event that fires when the System Date/Time changes. You have to keep track of the Date when your app starts, then once in a while, say every minute, check the current system Date against the stored version. If the current Date is lower than the one where your app started, then the date changed. If the current date is greater than the stored date, then you have to check to see if midnight rolled over from the last time you checked. If it has not rolled over midnight, then the date changed.

mythinky wrote:
how to check whether the time is on specified time, e.g. check whether the time is 10:00 a.m or not
This code will check to see if it is 10:00am on the current date on which it is run:
Dim currentTime As DateTime = DateTime.Now()
Dim checkTime As New DateTime(currentTime.Year, _
                              currentTime.Month, _
                              currentTime.Day, _
                              10, 0, 0)
If DateTime.Compare(currentTime, checkTime) = 0 Then
    ' The current time is 10:00am today...
Else
    ' The current time is NOT 10:00am today...
End If



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralPermutations in Excel's Visual Basic Pin
jbreen723-Jun-04 16:56
jbreen723-Jun-04 16:56 
GeneralRe: Permutations in Excel's Visual Basic Pin
Dave Kreskowiak24-Jun-04 2:43
mveDave Kreskowiak24-Jun-04 2:43 
GeneralRe: Permutations in Excel's Visual Basic Pin
tanstaafl2824-Jun-04 9:21
tanstaafl2824-Jun-04 9:21 
GeneralSave the value of a control Pin
Brad Fackrell23-Jun-04 10:53
Brad Fackrell23-Jun-04 10:53 
GeneralRe: Save the value of a control Pin
sivilian24-Jun-04 5:13
sivilian24-Jun-04 5:13 
GeneralVBA/Excel - Execute macro if comment inserted Pin
Jon G23-Jun-04 5:37
Jon G23-Jun-04 5:37 
GeneralRe: VBA/Excel - Execute macro if comment inserted Pin
Jon G23-Jun-04 6:33
Jon G23-Jun-04 6:33 
GeneralRe: VBA/Excel - Execute macro if comment inserted Pin
Mike Ellison23-Jun-04 6:56
Mike Ellison23-Jun-04 6:56 
GeneralNew Problem Pin
MarcMicalizzi23-Jun-04 5:08
MarcMicalizzi23-Jun-04 5:08 
GeneralRe: New Problem Pin
Dave Kreskowiak23-Jun-04 5:50
mveDave Kreskowiak23-Jun-04 5:50 
GeneralRe: New Problem Pin
Steven Campbell23-Jun-04 7:27
Steven Campbell23-Jun-04 7:27 
GeneralRe: New Problem Pin
Dave Kreskowiak23-Jun-04 8:37
mveDave Kreskowiak23-Jun-04 8:37 
GeneralDrag and drop between 2 listboxes Pin
Member 62023523-Jun-04 3:26
Member 62023523-Jun-04 3:26 
GeneralDrag and drop between 2 listboxes Pin
Member 62023523-Jun-04 3:26
Member 62023523-Jun-04 3:26 
Generalinterfacing scanner Pin
Saud AKhter22-Jun-04 23:37
Saud AKhter22-Jun-04 23:37 
GeneralRe: interfacing scanner Pin
Dave Kreskowiak23-Jun-04 3:36
mveDave Kreskowiak23-Jun-04 3:36 
GeneralVB6 to .Net User Controls Pin
mckly22-Jun-04 22:09
mckly22-Jun-04 22:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.