Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27355

VS 2010 Background worker do work will not get textbox value. What could be wrong?

$
0
0
In my form load
A connection is made to the database and a textbox on another form gets filled with data.


In the background worker do work
I am trying to retrieve that value.

Here is part of the code I have:

Code:

Private Sub BackgroundWorker_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker.DoWork
        'Load The Devices


            Dim Pos_Keyboard As DeviceInfo = Explorer.GetDevice(FormPosKeyboard.TextBoxPosKeyboardDeviceName.Text)  <<< Trying to retrieve from textbox

I know for a fact that the form load filled the textbox on the other form.

Viewing all articles
Browse latest Browse all 27355


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>