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. Error on ISynchronizeInvoke casting

Error on ISynchronizeInvoke casting

Scheduled Pinned Locked Moved C#
helpcsharp
4 Posts 2 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.
  • J Offline
    J Offline
    jacklynn_mei
    wrote on last edited by
    #1

    what should i do if i have an error in ISynchronizeInvoke casting. Actually i am doing a c# console application that use ISynchronizeInvoke the code is like this: ISynchronizeInvoke i = (ISynchronizeInvoke)this; The Error: Unable to cast object of type 'ArtIntelTania.Program' to type 'System.ComponentModel.ISynchronizeInvoke'. hope somebody can help me Thanks in advance Regard, jac

    L 1 Reply Last reply
    0
    • J jacklynn_mei

      what should i do if i have an error in ISynchronizeInvoke casting. Actually i am doing a c# console application that use ISynchronizeInvoke the code is like this: ISynchronizeInvoke i = (ISynchronizeInvoke)this; The Error: Unable to cast object of type 'ArtIntelTania.Program' to type 'System.ComponentModel.ISynchronizeInvoke'. hope somebody can help me Thanks in advance Regard, jac

      L Offline
      L Offline
      Leslie Sanford
      wrote on last edited by
      #2

      Consoles don't implement ISynchronizeInvoke. You'll need a Form or Control for that. Can you describe in more detail what you're trying to acheive?

      J 1 Reply Last reply
      0
      • L Leslie Sanford

        Consoles don't implement ISynchronizeInvoke. You'll need a Form or Control for that. Can you describe in more detail what you're trying to acheive?

        J Offline
        J Offline
        jacklynn_mei
        wrote on last edited by
        #3

        oic... Actually the idea is like this: - i want to display all the record(s) inside the database - the connection is always there, so that i can retrieve the records. For an example, if i insert a new data the data will be displayed instantly (no need to refresh or debug once again). thanks, Jac

        L 1 Reply Last reply
        0
        • J jacklynn_mei

          oic... Actually the idea is like this: - i want to display all the record(s) inside the database - the connection is always there, so that i can retrieve the records. For an example, if i insert a new data the data will be displayed instantly (no need to refresh or debug once again). thanks, Jac

          L Offline
          L Offline
          Leslie Sanford
          wrote on last edited by
          #4

          jacklynn_mei wrote:

          - i want to display all the record(s) inside the database - the connection is always there, so that i can retrieve the records. For an example, if i insert a new data the data will be displayed instantly (no need to refresh or debug once again).

          I don't know much about using databases. I'm guessing you'd probably have to hook into some event that is raiesed when the database changes and then display the update in your UI. A Form based application would probably be better for this than a Console application.

          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