Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: Changing the screen resolution Pin
Giorgi Dalakishvili12-Sep-07 22:37
mentorGiorgi Dalakishvili12-Sep-07 22:37 
QuestionInserting Multiple Rows in a dataset to Database Pin
meeram39512-Sep-07 21:51
meeram39512-Sep-07 21:51 
AnswerRe: Inserting Multiple Rows in a dataset to Database Pin
Giorgi Dalakishvili12-Sep-07 22:35
mentorGiorgi Dalakishvili12-Sep-07 22:35 
GeneralRe: Inserting Multiple Rows in a dataset to Database Pin
meeram39513-Sep-07 1:23
meeram39513-Sep-07 1:23 
QuestionCom port and process Pin
Rahul.RK12-Sep-07 21:29
Rahul.RK12-Sep-07 21:29 
AnswerRe: Com port and process Pin
Pete O'Hanlon12-Sep-07 22:17
mvePete O'Hanlon12-Sep-07 22:17 
GeneralRe: Com port and process Pin
Rahul.RK12-Sep-07 22:22
Rahul.RK12-Sep-07 22:22 
QuestionHow to process calls to a Control on a separate thread? Pin
ctoma200512-Sep-07 21:18
ctoma200512-Sep-07 21:18 
Hy there, I have a big problem(at least for me). I am trying to make some Controls that update themselves wery fast (even at 5 ms). It is for a game engine, but I want the users to make their game in the Form designer, this is why I derived the sprite from PictureBox.
My problem is that I will never be able to update the control from a separate thread (I mean i can but it's suicide) and from what I know every property\method call to a control translates to a SEND_MESSAGE or a POST_MESSAGE and this is processed in the UI thread. This is were all the other windows messages are processed, so when I start the update, the message queue gets filled with this updates and I'm not able to process other messages (resize, move window etc.). If I add an Application.DoEvents to the update, than the speed of the sprite will depend on what I am doing with the mouse\keyboard on the screen.

Can anyone help me with this problem?? I REALLY wan't to use controls for this game, but I am stuck Frown | :( Thank you
AnswerRe: How to process calls to a Control on a separate thread? Pin
Mark Swaanenburg12-Sep-07 22:22
Mark Swaanenburg12-Sep-07 22:22 
GeneralRe: How to process calls to a Control on a separate thread? Pin
ctoma200512-Sep-07 22:32
ctoma200512-Sep-07 22:32 
GeneralRe: How to process calls to a Control on a separate thread? Pin
Mark Swaanenburg12-Sep-07 22:43
Mark Swaanenburg12-Sep-07 22:43 
GeneralRe: How to process calls to a Control on a separate thread? Pin
ctoma200513-Sep-07 3:06
ctoma200513-Sep-07 3:06 
GeneralRe: How to process calls to a Control on a separate thread? Pin
Mark Swaanenburg13-Sep-07 4:09
Mark Swaanenburg13-Sep-07 4:09 
GeneralRe: How to process calls to a Control on a separate thread? Pin
Luc Pattyn13-Sep-07 1:10
sitebuilderLuc Pattyn13-Sep-07 1:10 
QuestionDatabase retrieving problem Pin
Nishad8512-Sep-07 20:59
Nishad8512-Sep-07 20:59 
AnswerRe: Database retrieving problem Pin
Paul Conrad14-Sep-07 19:05
professionalPaul Conrad14-Sep-07 19:05 
Questioninstance of object in a class Pin
bluetx12-Sep-07 20:58
bluetx12-Sep-07 20:58 
AnswerRe: instance of object in a class Pin
pmarfleet12-Sep-07 21:45
pmarfleet12-Sep-07 21:45 
AnswerRe: instance of object in a class Pin
Parwej Ahamad12-Sep-07 21:52
professionalParwej Ahamad12-Sep-07 21:52 
QuestionDataGridView SelectionBackColor and Transparency Problem Pin
mertkan6512-Sep-07 20:55
mertkan6512-Sep-07 20:55 
QuestionUse managed DLL in unmanaged and managed environment Pin
mpavas12-Sep-07 20:08
mpavas12-Sep-07 20:08 
AnswerRe: Use managed DLL in unmanaged and managed environment Pin
Parwej Ahamad12-Sep-07 20:29
professionalParwej Ahamad12-Sep-07 20:29 
GeneralRe: Use managed DLL in unmanaged and managed environment Pin
mpavas12-Sep-07 21:01
mpavas12-Sep-07 21:01 
QuestionWindows Services Pin
Elizma12-Sep-07 19:50
Elizma12-Sep-07 19:50 
AnswerRe: Windows Services Pin
Parwej Ahamad12-Sep-07 20:36
professionalParwej Ahamad12-Sep-07 20:36 

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.