Click here to Skip to main content
       

Visual Basic

 
GeneralRe: datagrid in vs 2012 Pinmemberjenkinsdjj31-Dec-12 0:40 
QuestionGetting innertext of HTML with </ br> tag between words PinmemberStonesteel26-Dec-12 22:57 
AnswerRe: Getting innertext of HTML with </ br> tag between words PinmvpDave Kreskowiak27-Dec-12 8:49 
GeneralRe: Getting innertext of HTML with </ br> tag between words PinmemberStonesteel27-Dec-12 21:04 
GeneralRe: Getting innertext of HTML with </ br> tag between words PinmvpDave Kreskowiak28-Dec-12 4:41 
Questionthreading impliment PinmemberMichael Hulak25-Dec-12 17:58 
AnswerRe: threading impliment PinmemberDineshshp25-Dec-12 18:32 
AnswerRe: threading impliment PinmemberEddy Vluggen26-Dec-12 12:16 
The Invoke pattern;
Imports System.Threading
 
Public Class Form1
    Dim MyNewThread As Thread
 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        
        'create the thread 
        MyNewThread = New Thread(AddressOf MyThread.MyThreadExecute)
        MyThread.ThatForm = Me
        'start the thread
        MyNewThread.Start()
    End Sub
 
    Public Sub SetProgress(ByVal What As String)
        If InvokeRequired Then
            Invoke(New Action(Of String)(AddressOf SetProgress), New Object() {What})
            Return
        End If
 
        Label1.Text = What
    End Sub
End Class
 
Module MyThread
    Public ThatForm As Form1
 
    Public Sub MyThreadExecute()
        Dim i As Integer = 0
        Do
            i = i + 1
            ThatForm.SetProgress(i)
            Thread.Sleep(100)
        Loop
    End Sub
End Module
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

QuestionHow to read list of local and network printers PinmemberKASR125-Dec-12 7:21 
AnswerRe: How to read list of local and network printers PinmemberEddy Vluggen25-Dec-12 8:30 
GeneralRe: How to read list of local and network printers PinmemberKASR126-Dec-12 3:38 
GeneralRe: How to read list of local and network printers PinmemberEddy Vluggen26-Dec-12 11:58 
GeneralRe: How to read list of local and network printers [modified] PinmemberKASR126-Dec-12 23:15 
GeneralRe: How to read list of local and network printers PinmemberEddy Vluggen27-Dec-12 4:28 
GeneralRe: How to read list of local and network printers PinmemberKASR127-Dec-12 7:26 
GeneralAdding an email notification module to my application. PinmemberKismetGerald24-Dec-12 13:01 
GeneralRe: Adding an email notification module to my application. PinmvpRichard MacCutchan24-Dec-12 23:07 
GeneralRe: Adding an email notification module to my application. PinmemberKismetGerald25-Dec-12 0:09 
GeneralRe: Adding an email notification module to my application. PinmvpRichard MacCutchan25-Dec-12 21:01 
Questionvbs - text inputs uploaded to web Pinmemberoceaniana24-Dec-12 12:25 
QuestionThrowing run time error while saving the record. PinmemberMember 786176324-Dec-12 2:11 
AnswerRe: Throwing run time error while saving the record. PinmemberEddy Vluggen25-Dec-12 3:03 
Questiongetting right string value from textbox with arabic text in vb6 PinmemberMember 970722123-Dec-12 0:44 
AnswerRe: getting right string value from textbox with arabic text in vb6 PinmemberEddy Vluggen23-Dec-12 14:17 
GeneralRe: getting right string value from textbox with arabic text in vb6 PinmemberMember 970722123-Dec-12 20:34 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 30 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid