Results 1 to 8 of 8

Thread: Code FOr CroSS THreAD

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2010
    Posts
    182

    Code FOr CroSS THreAD

    I would like some code and how to place it in my windows form

    This is inside a thread, that is called by button 2

    vb.net Code:
    1. If portdata2.Rows.Item(sum).Cells.Item(1).Value = "" Then
    2.                             portdata2.Rows.Add(1)     ''' i want to add a row to this datagridview
    3. end if

    when my code arrives this line it gives me the cross thread error





    What i srt of understand its that in
    portdata2.rows(1) instead of this i should place a code like invoque something

    and in my form i should add a sub where invoque is compare...

    i just dont know how


    I dont want link to read about how to do it..because i just dont get it...
    i have always have trouble with this safe thread calls so i want someone to teach me with lil apples..

    This goes here and so on..

    PLZZZZZZZZZZZZZZZZ
    Last edited by justme369; Jul 9th, 2010 at 02:12 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width