Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Win Form & Web Form Control Update from a thread in Assembly

Win Form & Web Form Control Update from a thread in Assembly

Scheduled Pinned Locked Moved C#
helpcsharpasp-netquestionannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zinc_z
    wrote on last edited by
    #1

    Hi , I have written an assembly in C# which uses threads, and I want to add the reference of this assembly in both Windows Form and ASP.NET Web Form. There is a method in a thread of my assembly which should send the current status of processing to Windows Form and Web Form . My problem is, I first used the 'invoke and delegates' mechanism from my assembly to update WindowForm control , but this technique did't work on WebForm control as I could't find any equiavalent of 'Invoke' in WebForm . Now I tried to use the Delegates and Events , I fire events from my assembly and try to catch those events in my WIndow Form , but getting error that "cross-thread operation is not valid" as I am trying to update GUI control frm my own thread.... Is there any way around to this ? I want to use technique through which I can update my both Win Form and Web Form controls ! Please I need help I m realy very badly struck here... Thanks in advance. ZINK

    HELLO

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups