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

C#

 
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 
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 
I can't help you with setting priorities to messages. But I doubt you're going the right course with that anyway.

I think another solution would be to use timeSetEvent/timeKillEvent as mentioned by Luc and just use one for each control. But don't have it fire off periodically unless needed. So if you're sprite is idle, don't fire off any timers. If you're sprite is moving, have a timer tick at a reasonable interval until you're sprite is done moving. This way no unnecessary events will need to be processed.

I'm not sure how windows likes it if you have a massif amount of sprites with timers, but I guess you don't need to worry about that right now.

Another solution might be to have one timer (again with a reasonable interval), which basically is you refresh all event. On that event you can check the position and shape of all controls and redraw them in one go. This will probably generate quite some messages at that time, but probably a lot less compared to having a tick every 5ms.


Hybrid DSP: Digital processing and storage solutions.
Hybrid GeoTools: Advanced GIS editing tools.

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 
QuestionDatagridview Pin
iet200012-Sep-07 19:37
iet200012-Sep-07 19:37 
AnswerRe: Datagridview Pin
Parwej Ahamad12-Sep-07 20:19
professionalParwej Ahamad12-Sep-07 20:19 
AnswerRe: Datagridview Pin
C#Coudou12-Sep-07 20:20
C#Coudou12-Sep-07 20:20 
QuestionXML and Generic List Pin
satyaki mishra12-Sep-07 19:25
satyaki mishra12-Sep-07 19:25 
AnswerRe: XML and Generic List Pin
Pete O'Hanlon12-Sep-07 21:59
mvePete O'Hanlon12-Sep-07 21:59 

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.