Click here to Skip to main content
16,006,442 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Determine integer? Pin
Alex@UEA17-Sep-06 5:52
Alex@UEA17-Sep-06 5:52 
AnswerRe: Determine integer? Pin
Guffa15-Sep-06 6:59
Guffa15-Sep-06 6:59 
AnswerRe: Determine integer? Pin
Alex@UEA16-Sep-06 22:32
Alex@UEA16-Sep-06 22:32 
GeneralRe: Determine integer? Pin
Dave Kreskowiak17-Sep-06 4:51
mveDave Kreskowiak17-Sep-06 4:51 
QuestionRe: Determine integer? [modified] Pin
Alex@UEA17-Sep-06 5:49
Alex@UEA17-Sep-06 5:49 
AnswerRe: Determine integer? Pin
Dave Kreskowiak17-Sep-06 6:38
mveDave Kreskowiak17-Sep-06 6:38 
Questionproblem with socketpermission Pin
blanchard15-Sep-06 0:21
blanchard15-Sep-06 0:21 
Questioncreate an array of stopwatch objects Pin
steve_rm14-Sep-06 21:05
steve_rm14-Sep-06 21:05 
Hello,

I am doing a application that will monitor up to 10 different tasks. Each task will start, run, and stop at different times.

I have to display each task in a label. I have 2 buttons start and stop.

l enter the task number in the text box and press start, I can do this will all the tasks. When l want to stop, I will enter the task number in the text box and press stop.

So I can start and stop any task and see the time of all the tasks that are currently running.

I have done this for 1 stopwatch object, but not sure how to create an array and monitor all the task the are currently running at the same time.

Here is my code so far so you can see what I am doing.
Start button
<br />
Dim taskID As String<br />
taskStopWatch.Start()<br />


Stop button
<br />
Dim taskID As Integer<br />
taskStopWatch.Stop()<br />


<br />
Private Sub tmrTaskLog_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrTaskLog.Tick<br />
        Dim ts As TimeSpan<br />
<br />
        If (taskStopWatch.IsRunning) Then<br />
            ts = taskStopWatch.Elapsed<br />
            taskDuration = String.Format("{0:00}:{1:00}:{2:00}", ts.Hours, ts.Minutes, ts.Seconds)<br />
            TimeTaskID.Text = taskDuration<br />
    End Sub<br />


Thanks very much in advance

Steve
AnswerRe: create an array of stopwatch objects Pin
Dave Kreskowiak15-Sep-06 8:20
mveDave Kreskowiak15-Sep-06 8:20 
QuestionMaximize PrintPreviewDialog window Pin
quinton.nel14-Sep-06 20:54
quinton.nel14-Sep-06 20:54 
AnswerRe: Maximize PrintPreviewDialog window Pin
Dave Kreskowiak15-Sep-06 7:42
mveDave Kreskowiak15-Sep-06 7:42 
QuestionAbouit the maximizing the form from task bar Pin
ravindra_p14-Sep-06 20:53
ravindra_p14-Sep-06 20:53 
AnswerRe: Abouit the maximizing the form from task bar Pin
Dave Kreskowiak15-Sep-06 6:53
mveDave Kreskowiak15-Sep-06 6:53 
QuestionHow to replace text Pin
sonj14-Sep-06 20:51
sonj14-Sep-06 20:51 
AnswerRe: How to replace text Pin
Guffa15-Sep-06 1:53
Guffa15-Sep-06 1:53 
QuestionAdding service to VB.net application Pin
quinton.nel14-Sep-06 20:34
quinton.nel14-Sep-06 20:34 
QuestionProblem with FileListBox Pin
georgekjolly14-Sep-06 19:15
georgekjolly14-Sep-06 19:15 
AnswerRe: Problem with FileListBox Pin
Dave Kreskowiak15-Sep-06 5:23
mveDave Kreskowiak15-Sep-06 5:23 
GeneralRe: Problem with FileListBox Pin
georgekjolly15-Sep-06 19:01
georgekjolly15-Sep-06 19:01 
QuestionHow to connect a scanner Pin
EclipseOrg14-Sep-06 19:05
EclipseOrg14-Sep-06 19:05 
AnswerRe: How to connect a scanner Pin
Christian Graus14-Sep-06 19:24
protectorChristian Graus14-Sep-06 19:24 
GeneralRe: How to connect a scanner Pin
EclipseOrg14-Sep-06 19:29
EclipseOrg14-Sep-06 19:29 
QuestionHI Pin
manikandavadivel14-Sep-06 18:29
manikandavadivel14-Sep-06 18:29 
AnswerRe: HI Pin
Christian Graus14-Sep-06 19:26
protectorChristian Graus14-Sep-06 19:26 
QuestionHow to get the WMI property description?? Pin
ATRider14-Sep-06 9:17
ATRider14-Sep-06 9:17 

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.