Click here to Skip to main content
15,887,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: datagrid in vs 2012 Pin
jenkinsdjj31-Dec-12 0:40
jenkinsdjj31-Dec-12 0:40 
QuestionGetting innertext of HTML with </ br> tag between words Pin
Stonesteel26-Dec-12 22:57
Stonesteel26-Dec-12 22:57 
AnswerRe: Getting innertext of HTML with </ br> tag between words Pin
Dave Kreskowiak27-Dec-12 8:49
mveDave Kreskowiak27-Dec-12 8:49 
GeneralRe: Getting innertext of HTML with </ br> tag between words Pin
Stonesteel27-Dec-12 21:04
Stonesteel27-Dec-12 21:04 
GeneralRe: Getting innertext of HTML with </ br> tag between words Pin
Dave Kreskowiak28-Dec-12 4:41
mveDave Kreskowiak28-Dec-12 4:41 
Questionthreading impliment Pin
Michael Hulak25-Dec-12 17:58
Michael Hulak25-Dec-12 17:58 
AnswerRe: threading impliment Pin
Dineshshp25-Dec-12 18:32
professionalDineshshp25-Dec-12 18:32 
AnswerRe: threading impliment Pin
Eddy Vluggen26-Dec-12 12:16
professionalEddy Vluggen26-Dec-12 12:16 
The Invoke pattern;
VB.NET
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 Pin
KASR125-Dec-12 7:21
KASR125-Dec-12 7:21 
AnswerRe: How to read list of local and network printers Pin
Eddy Vluggen25-Dec-12 8:30
professionalEddy Vluggen25-Dec-12 8:30 
GeneralRe: How to read list of local and network printers Pin
KASR126-Dec-12 3:38
KASR126-Dec-12 3:38 
GeneralRe: How to read list of local and network printers Pin
Eddy Vluggen26-Dec-12 11:58
professionalEddy Vluggen26-Dec-12 11:58 
GeneralRe: How to read list of local and network printers Pin
KASR126-Dec-12 23:15
KASR126-Dec-12 23:15 
GeneralRe: How to read list of local and network printers Pin
Eddy Vluggen27-Dec-12 4:28
professionalEddy Vluggen27-Dec-12 4:28 
GeneralRe: How to read list of local and network printers Pin
KASR127-Dec-12 7:26
KASR127-Dec-12 7:26 
GeneralAdding an email notification module to my application. Pin
KismetGerald24-Dec-12 13:01
KismetGerald24-Dec-12 13:01 
GeneralRe: Adding an email notification module to my application. Pin
Richard MacCutchan24-Dec-12 23:07
mveRichard MacCutchan24-Dec-12 23:07 
GeneralRe: Adding an email notification module to my application. Pin
KismetGerald25-Dec-12 0:09
KismetGerald25-Dec-12 0:09 
GeneralRe: Adding an email notification module to my application. Pin
Richard MacCutchan25-Dec-12 21:01
mveRichard MacCutchan25-Dec-12 21:01 
Questionvbs - text inputs uploaded to web Pin
oceaniana24-Dec-12 12:25
oceaniana24-Dec-12 12:25 
QuestionThrowing run time error while saving the record. Pin
Member 786176324-Dec-12 2:11
Member 786176324-Dec-12 2:11 
AnswerRe: Throwing run time error while saving the record. Pin
Eddy Vluggen25-Dec-12 3:03
professionalEddy Vluggen25-Dec-12 3:03 
Questiongetting right string value from textbox with arabic text in vb6 Pin
Member 970722123-Dec-12 0:44
Member 970722123-Dec-12 0:44 
AnswerRe: getting right string value from textbox with arabic text in vb6 Pin
Eddy Vluggen23-Dec-12 14:17
professionalEddy Vluggen23-Dec-12 14:17 
GeneralRe: getting right string value from textbox with arabic text in vb6 Pin
Member 970722123-Dec-12 20:34
Member 970722123-Dec-12 20:34 

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.