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

C#

 
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 
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 
Well, this is exactly my problem, Invoke or BeginInvoke will not help me, because they will just make a safe-thread call, but the update will still be made on the UI thread. I think I need a way to make the update from another thread, but in a safe way. Let me tell you some details of my engine.
For now, my Sprite control is derived from PictureBox, adding some animation support, like interval and an OnUpdate event that it's set by the developer. For now, my Form only has an Threading.Timer thread that at 5 ms() calls a method for every sprite on the form, to make the Sprite check if the interval has passed, and to call the onupdate event. If I let the OnUpdate event empty, my app works fine, since it has nothing to add to the message queue. But if I add something to the event (for example I added an Opacity property to the Sprite and in the event, I say Opacity+=5), I'm not able to do much while the sprite is running, because the message queue is filled with this messages sent by the Sprite.
I'm starting to think that making a game engine from the designer its a bad ideea, but it would be so easy for the developer to visually set the Sprites behavior. Thank you
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 
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 

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.