Click here to Skip to main content
15,922,894 members
Home / Discussions / C#
   

C#

 
GeneralRe: ad muncher Pin
Mridang Agarwalla2-Dec-04 2:34
Mridang Agarwalla2-Dec-04 2:34 
QuestionFileSystemWatcher.FileName case? Pin
Quiffco1-Dec-04 0:15
Quiffco1-Dec-04 0:15 
AnswerRe: FileSystemWatcher.FileName case? Pin
Dave Kreskowiak1-Dec-04 4:17
mveDave Kreskowiak1-Dec-04 4:17 
GeneralRe: FileSystemWatcher.FileName case? Pin
Quiffco5-Dec-04 22:15
Quiffco5-Dec-04 22:15 
GeneralPassing parameter file to VS.net Winform design screen Pin
Gary Perkin1-Dec-04 0:12
Gary Perkin1-Dec-04 0:12 
GeneralRe: Passing parameter file to VS.net Winform design screen Pin
Gary Perkin6-Dec-04 22:20
Gary Perkin6-Dec-04 22:20 
Questioncan threading is way in finding co-ordinate? Pin
montu337730-Nov-04 23:28
montu337730-Nov-04 23:28 
AnswerRe: can threading is way in finding co-ordinate? Pin
DougW481-Dec-04 4:31
DougW481-Dec-04 4:31 
Multithreading might not be the best implementation technique simply for determining the row and column numbers of your cursor. While it is nice to think of a thread as running concurrently with your main thread, in reality, they are still sharing processing space. If you do want to create a multithreaded application, then there are a few methods of going about this, some good, some really bad. First, you can start your thread when the application starts, and loop through it, constantly checking the cursor location. I think you'll find this is the worst approach you can take, as your thread will be interfering with your main application (and really you don't want a user to know it's even running.) Another approach would be to run a thread each time an event occurs which would possibly change the cursor location (such as a key press, or a mouse click.) These event handlers can simply start a thread, which handles finding the cursor location, and displaying it in your status bar (or wherever you want it.) This is better than the first approach, but I think an even better implementation would be to start one thread to check the cursor location, have it wait until an event is triggered, check the cursor, then go back into its waiting state until the next event is triggered. This way you don't have the overhead of constantly creating new threads to do the same task. Since this is purely a reader thread, I don't think you'll need locking mechanisms, but do a little research on it. If you do need to lock out the main thread, then you really aren't gaining much improvement over just calling a regular function when your events are fired.

Good luck

- Doug
GeneralRe: can threading is way in finding co-ordinate? Pin
montu33771-Dec-04 17:32
montu33771-Dec-04 17:32 
Questioncan threading is way in finding co-ordinate? Pin
montu337730-Nov-04 23:27
montu337730-Nov-04 23:27 
AnswerRe: can threading is way in finding co-ordinate? Pin
Christian Graus30-Nov-04 23:36
protectorChristian Graus30-Nov-04 23:36 
Generalsearching of line in scanned image Pin
montu337730-Nov-04 22:52
montu337730-Nov-04 22:52 
GeneralRe: searching of line in scanned image Pin
Christian Graus30-Nov-04 23:33
protectorChristian Graus30-Nov-04 23:33 
GeneralHelp needed on code simplification Pin
lj_rules30-Nov-04 21:40
lj_rules30-Nov-04 21:40 
GeneralRe: Help needed on code simplification Pin
Daniel Turini30-Nov-04 21:54
Daniel Turini30-Nov-04 21:54 
GeneralRe: Help needed on code simplification Pin
lj_rules2-Dec-04 13:26
lj_rules2-Dec-04 13:26 
GeneralRe: Help needed on code simplification Pin
TyronX1-Dec-04 10:19
TyronX1-Dec-04 10:19 
GeneralTcpListener : Best approach to check the active connections Pin
Zishan Haider30-Nov-04 21:08
Zishan Haider30-Nov-04 21:08 
GeneralRe: TcpListener : Best approach to check the active connections Pin
Daniel Turini30-Nov-04 21:50
Daniel Turini30-Nov-04 21:50 
GeneralRe: TcpListener : Best approach to check the active connections Pin
Zishan Haider1-Dec-04 1:03
Zishan Haider1-Dec-04 1:03 
GeneralRe: TcpListener : Best approach to check the active connections Pin
Zishan Haider1-Dec-04 3:31
Zishan Haider1-Dec-04 3:31 
GeneralC# with MySql Pin
Member 150205630-Nov-04 20:16
Member 150205630-Nov-04 20:16 
GeneralRe: C# with MySql Pin
Daniel Turini30-Nov-04 21:49
Daniel Turini30-Nov-04 21:49 
GeneralQuotes around string Pin
StephenMcAllister30-Nov-04 19:46
StephenMcAllister30-Nov-04 19:46 
GeneralRe: Quotes around string Pin
Alex Korchemniy30-Nov-04 19:53
Alex Korchemniy30-Nov-04 19:53 

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.