Im trying to access a listbox control located on my main form inside an AsyncCallback method and getting cross thread errors as AsyncCallback is on a seperate thread. I decided then to create a new delagate and fire an event from within the AsyncCallback method thinking this would solve the problem but that too was executed on a seperate thread. How can i fire an event from inside the method that runs on the main thread? thankyou.
pokabot
Posts
-
AsyncCallback threading issue -
quick tcp questionWhat I meant to ask was how would you go about creating your own protocol so the client knew what type of message it was recieving (could be text or other type of data). Also would it be ok to create 2 seperate sockets, one for sending and one for recieving? Thankyou
-
quick tcp questionHow do you go about creating your own packet to send over TCP?
-
PluginsThe above article would be great if in c#. Could anyone rewrite? ty
-
PluginsHow do you give a plugin access to all data and methods of the hosting application? Is it possible to set a plugins/interfaces method to respond to a windows event?
-
Best approachthankyou
-
EventsI will be adding and removing functions throught the program so i will not know what functions are registered @ what time, thats why i wanted to know if there was a priority.
-
Best approachI am recreating a collectable card game and need to make the game easily updatable. Each card has its own effects which i will have to write specific functions for and the problem arises when new cards need to be added and the application will obviously not have the functionality for them. Could i somehow write a dll for each card including the new functions or add the new functions to an existing dll, but then how would the app know about the new functions. As you can tell i have not got a clue :)
-
EventsCan i attach multiple functions to an event Handler/listner? If so is there anyway to prioritize their execution? Also what would happen if you trigger an event with no handler attached? ty
-
Joypad!ty
-
Joypad!Hi is there a way to simulate keypresses using a joypad? I would like to create a program which fires keypress messages to an IE window for use with games. Is this possible? ty
-
Changing the screen resolutionHi all Is it possible to change the screen resolution in c# (no DirectX!). Also why is it that when creating a windows application in c# without the designer, along with your window you get a cmd window? Could someone post some code to get a simple window up without this! Many thanks
-
Using MCISendString for gamesIs the MCISendString function in winmm.dll suitable for playing the music in a game? I would use wave files with the PlaySound command but file sizes are too large! Thanks
-
Rythm gameYou obviously know what your talking about but sadly i had no idea ... any chance you could break it down a bit for me (which music file is best to use?, how do i find the beat durations? etc.) I was thinking of having an editor and plotting the notes on a timeline ... saying that I dont think there would be another way to do it! Thanks for your response
-
Rythm gameHi all I want to make a very basic rythm game in c#. What would be the best way to get the grahics to run in time with a music file? Some basic ideas of how it could be done would be great to get me started. thanx
-
Saving Animated GifsHi In my program a have a series of images that i would like to save as an animated gif. Is this possible in c#, im using visual c# express ed. If not how easy/hard is it to save images into a windows movie file if at all possible. Many thanks.
-
Perfect Timing!So .. am i right in thinking if i fix the framerate to 60fps and then every loop move the sprite 100 / amount of ms passed then if any time is left draw the frame?
-
Perfect Timing!Hi all, I need to move a sprite exactly 100 pixels every second regardless of the framerate. Any help would be great ..thx.
-
Animated gifsHi Is there any support in c# to create and save animated gifs yet? If so can it be done in c# express and a code snippet would be helpfull. ty
-
html file parsing helpHi could any one show me the best way to extract the info i need from the file below. Basicly the files are hand historys from a poker site and i would like to keep track of how often a player calls checks folds and so on. The file is in html (hoping it posts ok) , or if any one could tell me if it would be better to convert the file to xml (if possible) and extract the data that way? well here is a short part of the file .....
Idx
Date/Time
Table Name
Hand ID
Stakes
19
[[Jul 31 16:04:10]](#[Jul 31 16:04:10]~Casanova~10474702-12327~$0.25/$0.50)
[Casanova](#[Jul 31 16:04:10]~Casanova~10474702-12327~$0.25/$0.50)
[10474702-12327](#[Jul 31 16:04:10]~Casanova~10474702-12327~$0.25/$0.50)
[$0.25/$0.50](#[Jul 31 16:04:10]~Casanova~10474702-12327~$0.25/$0.50)
18
[[Jul 31 16:03:20]](#[Jul 31 16:03:20]~Casanova~10474702-12326~$0.25/$0.50)
[Casanova](#[Jul 31 16:03:20]~Casanova~10474702-12326~$0.25/$0.50)
[10474702-12326](#[Jul 31 16:03:20]~Casanova~10474702-12326~$0.25/$0.50)
[$0.25/$0.50](#[Jul 31 16:03:20]~Casanova~10474702-12326~$0.25/$0.50)
17
[[Jul 31 16:02:32]](#[Jul 31 16:02:32]~Casanova~10474702-12325~$0.25/$0.50)
[Casanova](#[Jul 31 16:02:32]~Casanova~10474702-12325~$0.25/$0.50)
[10474702-12325](#[Jul 31 16:02:32]~Casanova~10474702-12325~$0.25/$0.50)
[$0.25/$0.50](#[Jul 31 16:02:32]~Casanova~10474702-12325~$0.25/$0.50)
16
[[Jul 31 16:01:45]](#[Jul 31 16:01:45]~Casanova~10474702-12324~$0.25/$0.50)
[Casanova](#[Jul 31 16:01:45]~Casanova~10474702-12324~$0.25/$0.50)
[10474702-12324](#[Jul 31 16:01:45]~Casanova~10474702-12324~$0.25/$0.50)