Click here to Skip to main content
15,910,009 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Check if GDI+ bitmap has transparency Pin
Luc Pattyn29-May-08 21:52
sitebuilderLuc Pattyn29-May-08 21:52 
QuestionSaving PDF on local hard disk which is read by browser control Pin
Sunil Shindekar28-May-08 23:13
Sunil Shindekar28-May-08 23:13 
AnswerRe: Saving PDF on local hard disk which is read by browser control Pin
jzonthemtn29-May-08 1:40
jzonthemtn29-May-08 1:40 
GeneralRe: Saving PDF on local hard disk which is read by browser control Pin
Sunil Shindekar29-May-08 3:21
Sunil Shindekar29-May-08 3:21 
QuestionNeed help with a project, I am really stumped! Pin
Ogre72228-May-08 20:04
Ogre72228-May-08 20:04 
AnswerRe: Need help with a project, I am really stumped! Pin
Eduard Keilholz28-May-08 20:42
Eduard Keilholz28-May-08 20:42 
GeneralRe: Need help with a project, I am really stumped! Pin
Ogre72229-May-08 2:44
Ogre72229-May-08 2:44 
AnswerRe: Need help with a project, I am really stumped! Pin
Sam Xavier28-May-08 23:26
Sam Xavier28-May-08 23:26 
GeneralRe: Need help with a project, I am really stumped! Pin
Ogre72229-May-08 2:41
Ogre72229-May-08 2:41 
GeneralRe: Need help with a project, I am really stumped! Pin
Chinners29-May-08 3:14
Chinners29-May-08 3:14 
GeneralRe: Need help with a project, I am really stumped! Pin
Ogre72229-May-08 4:26
Ogre72229-May-08 4:26 
GeneralRe: Need help with a project, I am really stumped! Pin
Chinners29-May-08 4:57
Chinners29-May-08 4:57 
GeneralRe: Need help with a project, I am really stumped! Pin
Ogre72229-May-08 5:22
Ogre72229-May-08 5:22 
GeneralRe: Need help with a project, I am really stumped! Pin
Ogre72229-May-08 15:47
Ogre72229-May-08 15:47 
GeneralRe: Need help with a project, I am really stumped! Pin
Chinners29-May-08 22:35
Chinners29-May-08 22:35 
GeneralRe: Need help with a project, I am really stumped! Pin
Steven J Jowett29-May-08 4:07
Steven J Jowett29-May-08 4:07 
QuestionCheck tinytext column in MySQL Database with VB.NET Pin
drexler_kk28-May-08 15:17
drexler_kk28-May-08 15:17 
AnswerRe: Check tinytext column in MySQL Database with VB.NET Pin
jzonthemtn29-May-08 2:36
jzonthemtn29-May-08 2:36 
QuestionTrouble with VB.NET and XPath Pin
Dominick Marciano28-May-08 9:45
professionalDominick Marciano28-May-08 9:45 
AnswerRe: Trouble with VB.NET and XPath Pin
MidwestLimey28-May-08 13:26
professionalMidwestLimey28-May-08 13:26 
GeneralRe: Trouble with VB.NET and XPath Pin
Dominick Marciano29-May-08 6:43
professionalDominick Marciano29-May-08 6:43 
GeneralRe: Trouble with VB.NET and XPath Pin
MidwestLimey29-May-08 8:19
professionalMidwestLimey29-May-08 8:19 
QuestionbackgroundWorker Help Pin
Cory Kimble28-May-08 7:35
Cory Kimble28-May-08 7:35 
I am getting data from Com1 from a scale. I need to save info in a textbox. I have read that I need a backgroundworker in order to access the textbox that was created on a different thread. I just need a little help with this. Let me show you what I have.

 BackgroundWorker.WorkerReportsProgress = True
 BackgroundWorker.WorkerSupportsCancellation = True

Private Sub DataReceived( _
                      ByVal sender As Object, _
                      ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) _
                      Handles serialPort.DataReceived

        stringCom = serialPort.ReadExisting.ToString()

        BackgroundWorker.RunWorkerAsync()


    End Sub

Private Sub backgroundworker_Dowork(ByVal sender As Object, ByVal e As DoWorkEventArgs) Handles BackgroundWorker.DoWork
        Dim argument As Object = e.Argument


        For Value As Integer = 0 To 1
            If BackgroundWorker.CancellationPending Then

                Exit For

            End If

            BackgroundWorker.ReportProgress(Value, stringCom)
            BackgroundWorker.CancelAsync()
        Next

        Threading.Thread.Sleep(100)

    End Sub

Private Sub backgroundworker_Progresschanged(ByVal sender As Object, ByVal e As ProgressChangedEventArgs) Handles BackgroundWorker.ProgressChanged
        Me.txtbxWeight.Text = e.UserState


    End Sub


I know I have somethings in here I probably don't need but I was copying code from a book and was adding and taking out things. My goal is to get the weight stored in txtbxweight.text. This code gives me an error still saying it is of a different thread.

Any help is appreciated.
AnswerRe: backgroundWorker Help Pin
Kschuler28-May-08 8:30
Kschuler28-May-08 8:30 
GeneralRe: backgroundWorker Help Pin
Cory Kimble28-May-08 10:47
Cory Kimble28-May-08 10:47 

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.