Results 1 to 5 of 5

Thread: Create controls in differente threads

  1. #1

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729

    Create controls in differente threads


    An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll

    Additional information: Controls created on one thread cannot be parented to a control on a different thread.
    hmmm i've heared of this...it seems we cannot create controls in different threads..lol how do i do this then? lol
    Last edited by PT Exorcist; Oct 26th, 2002 at 01:13 PM.

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Why would you need to? You can have your controls create threads and start them by using their events. There is no need really for them to be on seperate threads...at least none that I can think of.

  3. #3

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    solved the problem lol

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    What solved it? How did you do it.

  5. #5

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    hmmmmmm i dont remember very well but i passed a parameter who was the control... PictureBox source, then after making what i wanted i just had to make source.image = blablabla...he didnt give error this way lol

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