Click here to Skip to main content
15,889,992 members
Home / Discussions / C#
   

C#

 
GeneralRe: OleDbCommand "Command Error" [modified] Pin
Mike Jeferson19-Aug-06 23:17
Mike Jeferson19-Aug-06 23:17 
AnswerRe: OleDbCommand - Command Error Pin
Nader Elshehabi19-Aug-06 23:54
Nader Elshehabi19-Aug-06 23:54 
QuestionZooming Pin
Aslam Bari19-Aug-06 19:43
Aslam Bari19-Aug-06 19:43 
AnswerRe: Zooming Pin
Dave Kreskowiak19-Aug-06 20:43
mveDave Kreskowiak19-Aug-06 20:43 
QuestionHow to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
hongheo7619-Aug-06 18:41
hongheo7619-Aug-06 18:41 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Dave Kreskowiak19-Aug-06 20:41
mveDave Kreskowiak19-Aug-06 20:41 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Stefan Troschuetz19-Aug-06 22:33
Stefan Troschuetz19-Aug-06 22:33 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Mircea Grelus20-Aug-06 1:14
Mircea Grelus20-Aug-06 1:14 
The problem is that you're not calling the function on the right thread. This article[^] explains the problem and also offers a solution.

hongheo76 wrote:
Since I know for sure that my code won't cause any problems


You might be under the impression that the code runs fine, and it may be true, but there also could be unpredicted results.

You're probably updating the UI from another thread. In this case, only the thread that created a control can access and/or modify its contents. Doing it from another thread could result in deadlock and other unpredictid results.

The right way to a control from another thread is to post a message to the application queue, and when that message is to be executed the control will get updated on the same thread that created it.

regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.

AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Mircea Grelus20-Aug-06 1:20
Mircea Grelus20-Aug-06 1:20 
AnswerRe: How to check if I am using VStudio 2003 or 2005 (or .net 1.1 or 2.0) in C# Pin
Ista20-Aug-06 6:32
Ista20-Aug-06 6:32 
QuestionExtracting NetworkCredentials from WebBrowser? Pin
E. Beeton19-Aug-06 15:21
E. Beeton19-Aug-06 15:21 
AnswerRe: Extracting NetworkCredentials from WebBrowser? Pin
Nader Elshehabi20-Aug-06 1:45
Nader Elshehabi20-Aug-06 1:45 
GeneralRe: Extracting NetworkCredentials from WebBrowser? Pin
E. Beeton20-Aug-06 6:04
E. Beeton20-Aug-06 6:04 
QuestionArrayList Delete Both Identical Strings? Pin
gman4419-Aug-06 13:01
gman4419-Aug-06 13:01 
AnswerRe: ArrayList Delete Both Identical Strings? Pin
Christian Graus19-Aug-06 13:15
protectorChristian Graus19-Aug-06 13:15 
AnswerRe: ArrayList Delete Both Identical Strings? Pin
Stefan Troschuetz19-Aug-06 22:11
Stefan Troschuetz19-Aug-06 22:11 
QuestionInvalidate wont actually do what I need to do Pin
Ista19-Aug-06 12:29
Ista19-Aug-06 12:29 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 13:22
Guffa19-Aug-06 13:22 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista19-Aug-06 14:00
Ista19-Aug-06 14:00 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 14:21
Guffa19-Aug-06 14:21 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista19-Aug-06 16:17
Ista19-Aug-06 16:17 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 22:02
Guffa19-Aug-06 22:02 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista20-Aug-06 6:52
Ista20-Aug-06 6:52 
GeneralRe: Invalidate wont actually do what I need to do Pin
Guffa20-Aug-06 14:06
Guffa20-Aug-06 14:06 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista20-Aug-06 16:15
Ista20-Aug-06 16:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.