Error on ISynchronizeInvoke casting
-
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
-
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
Consoles don't implement
ISynchronizeInvoke
. You'll need aForm
orControl
for that. Can you describe in more detail what you're trying to acheive? -
Consoles don't implement
ISynchronizeInvoke
. You'll need aForm
orControl
for that. Can you describe in more detail what you're trying to acheive?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
-
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
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.