invoke

  1. C

    Question error BeginInvoke cannot be called .. until window handle has been created

    VB 2008 I have read posts here and elsewhere online but cannot figure out what the problem is. Please help. FYI, I am new to OOP. I have 2 (simplified)code files shown below, one with the UI form and one class for the serial port stuff. When the beginInvoke occurs I get the uncreated handle...
  2. nineclicks

    Beginner trying cross threading...

    Private Sub TreeView1_AfterSelect(sender As Object, e As TreeViewEventArgs) Handles TreeView1.AfterSelect ListView1.Items.Clear() For Each Thing As String In Directory.GetFiles(e.Node.Tag) Dim fi As FileInfo = New FileInfo(Thing) With...
  3. T

    Question Exception Thrown By Target of Invocation Error (only as stand-alone not in test)

    I have an application that provides the users a list of crystal reports that they can run. I use a datatable, displayed on a datagrid within a form, to show the users descriptive names for the reports, and a check box for each. The users clicks the check box for the report(s) they want to run...
  4. S

    Question Multi-threading in GUI environment

    Hi, I made a simple Form1, with Text.Box1 (starting value=1) and Text.Box2 (starting value = 100000), as shown below : I wanted that, when the Form loads,value of Text.Box1 keeps on increasing by 2 and value of Text.Box2 keeps on decreasing by 3. I wanted to achieve this by multi-threading...
  5. D

    Question cross thread call problem

    Hi, Even though there are many examples of Invoke operations, I can't find something that works for me. (I'm using VS 2008, and working in VB) Here is what i have: A main module with functions (thread 1) that starts a BeginRead for a TCPClient. When the callback function executes (on thread...
  6. capella07

    Question Need to Invoke a Method, Not a Control, From Another Thread

    This is for .NET Compact Framework 2.0 Here's the flow of what I'm trying to do: 1. On the main form a scanner class is instantiated that (in the scanner's constructor) sets the scanner settings (baud rate, parity, etc) and opens the scanner for use 2. A barcode is scanned (via a scanner...
Back
Top