Click here to Skip to main content
16,007,504 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: free disc space Pin
Smithers-Jones10-Jan-08 7:16
Smithers-Jones10-Jan-08 7:16 
QuestionWebbrowser control need help Pin
King of Kingz10-Jan-08 0:58
King of Kingz10-Jan-08 0:58 
GeneralRe: Webbrowser control need help Pin
Dave Kreskowiak10-Jan-08 4:32
mveDave Kreskowiak10-Jan-08 4:32 
QuestionTimer with Date function Pin
Xooku10-Jan-08 0:49
Xooku10-Jan-08 0:49 
GeneralRe: Timer with Date function Pin
Dave Kreskowiak10-Jan-08 4:26
mveDave Kreskowiak10-Jan-08 4:26 
QuestionRe: Timer with Date function Pin
Xooku10-Jan-08 20:20
Xooku10-Jan-08 20:20 
GeneralRe: Timer with Date function Pin
Dave Kreskowiak11-Jan-08 1:33
mveDave Kreskowiak11-Jan-08 1:33 
QuestionRe: Timer with Date function Pin
Xooku13-Jan-08 18:03
Xooku13-Jan-08 18:03 
I've set the timer interval to "1000" for second intervals.

And made the change to this
If Now() <= StartTime Or Now() >= EndTime Then
because ie. startime "10H00" to endtime "18H00", the event must fire any time between "18H00" to the next morning "10H00".

In my previous reply I used a timer. Would this be the correct way then to use threading?

Public Class Form5<br />
    Dim t As System.Threading.Thread = Nothing<br />
<br />
    Private Sub Shutdown()<br />
<br />
        Do<br />
            System.Threading.Thread.Sleep(1000)<br />
            Dim StartTime As New DateTime(Now.Year, Now.Month, Now.Day, 6, 0, 0)<br />
            Dim EndTime As New DateTime(Now.Year, Now.Month, Now.Day, 11, 56, 0)<br />
<br />
            If Now() <= StartTime Or Now() >= EndTime Then<br />
                MsgBox("1st piece")<br />
                t.Abort()<br />
            End If<br />
        Loop<br />
<br />
    End Sub<br />
<br />
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
<br />
        t = New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf Shutdown))<br />
        t.Start()<br />
<br />
    End Sub<br />
End Class


thankyou Chris
GeneralRe: Timer with Date function Pin
Dave Kreskowiak14-Jan-08 1:43
mveDave Kreskowiak14-Jan-08 1:43 
GeneralRe: Timer with Date function Pin
Xooku14-Jan-08 17:35
Xooku14-Jan-08 17:35 
QuestionRe: Timer with Date function Pin
Xooku16-Jan-08 22:30
Xooku16-Jan-08 22:30 
QuestionRe: Timer with Date function Pin
Xooku20-Jan-08 18:52
Xooku20-Jan-08 18:52 
QuestionMonitoring Power status on Laptop Pin
aspireneo10-Jan-08 0:40
aspireneo10-Jan-08 0:40 
GeneralRe: Monitoring Power status on Laptop Pin
Dave Kreskowiak10-Jan-08 2:05
mveDave Kreskowiak10-Jan-08 2:05 
QuestionHow to load record into a dataset??? Pin
Support1239-Jan-08 20:17
Support1239-Jan-08 20:17 
AnswerHow to READ record FROM a dataset??? Pin
Support1239-Jan-08 22:32
Support1239-Jan-08 22:32 
GeneralRe: How to READ record FROM a dataset??? Pin
Support1239-Jan-08 23:28
Support1239-Jan-08 23:28 
GeneralRe: How to READ record FROM a dataset??? Pin
ChandraRam10-Jan-08 1:39
ChandraRam10-Jan-08 1:39 
AnswerRe: How to READ record FROM a dataset??? Pin
Support12310-Jan-08 3:18
Support12310-Jan-08 3:18 
GeneralRe: How to READ record FROM a dataset??? Pin
Support12310-Jan-08 3:21
Support12310-Jan-08 3:21 
GeneralRe: How to READ record FROM a dataset??? Pin
Dave Kreskowiak10-Jan-08 4:07
mveDave Kreskowiak10-Jan-08 4:07 
GeneralRe: How to READ record FROM a dataset??? Pin
Support12310-Jan-08 18:40
Support12310-Jan-08 18:40 
GeneralRe: How to READ record FROM a dataset??? Pin
Dave Kreskowiak11-Jan-08 1:28
mveDave Kreskowiak11-Jan-08 1:28 
GeneralRe: How to READ record FROM a dataset??? Pin
ChandraRam10-Jan-08 4:17
ChandraRam10-Jan-08 4:17 
GeneralHelp me on migration issues. Pin
soniasan9-Jan-08 19:10
soniasan9-Jan-08 19:10 

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.