Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
Questionhello all i need help Pin
zidan91111-Apr-06 17:46
zidan91111-Apr-06 17:46 
AnswerRe: hello all i need help Pin
chakkara200311-Apr-06 18:11
chakkara200311-Apr-06 18:11 
AnswerRe: hello all i need help Pin
CWIZO11-Apr-06 19:43
CWIZO11-Apr-06 19:43 
GeneralRe: hello all i need help Pin
Bassam Saoud11-Apr-06 19:52
Bassam Saoud11-Apr-06 19:52 
AnswerRe: hello all i need help Pin
HimaBindu Vejella11-Apr-06 19:52
HimaBindu Vejella11-Apr-06 19:52 
AnswerRe: hello all i need help Pin
albCode11-Apr-06 20:45
albCode11-Apr-06 20:45 
QuestionUpdating ListView with Thread (+ extra thread questions) Pin
Skoder11-Apr-06 16:10
Skoder11-Apr-06 16:10 
AnswerRe: Updating ListView with Thread (+ extra thread questions) Pin
S. Senthil Kumar11-Apr-06 17:46
S. Senthil Kumar11-Apr-06 17:46 
Skoder wrote:
Should the thread which updates the ListView instead maybe call a method like Invoke(TheMethod) every 10 seconds, or how should it be done ?


That's one way to do it. If all the thread does is refresh the listview, you could use the System.Windows.Forms.Timer[^] class instead.

Skoder wrote:
1. I only want 1 thread to be able to be created and working on a method.


You could use the IsAlive[^] property.

Skoder wrote:
2. I only want 1 thread a time to run some code. Usually i solve this by declaring an Object threadLock globally within the class, soo i can just do lock(threadLock) { THE CODE HERE }.

That looks fine.

Regards
Senthil
_____________________________
My Blog | My Articles | My Flickr | WinMacro
QuestionHow to make a copy of a binary file without using Copy function? Pin
tranthuyen11-Apr-06 16:10
tranthuyen11-Apr-06 16:10 
AnswerRe: How to make a copy of a binary file without using Copy function? Pin
Christian Graus11-Apr-06 16:56
protectorChristian Graus11-Apr-06 16:56 
GeneralRe: How to make a copy of a binary file without using Copy function? Pin
mav.northwind11-Apr-06 23:37
mav.northwind11-Apr-06 23:37 
AnswerRe: How to make a copy of a binary file without using Copy function? Pin
alexey N11-Apr-06 18:28
alexey N11-Apr-06 18:28 
AnswerRe: How to make a copy of a binary file without using Copy function? Pin
mav.northwind11-Apr-06 23:35
mav.northwind11-Apr-06 23:35 
QuestionHow to ftp upload a .zip (binary) file? Pin
tranthuyen11-Apr-06 16:07
tranthuyen11-Apr-06 16:07 
QuestionHow to use Flash with C# Pin
mm31011-Apr-06 15:36
mm31011-Apr-06 15:36 
AnswerRe: How to use Flash with C# Pin
Christian Graus11-Apr-06 16:55
protectorChristian Graus11-Apr-06 16:55 
JokeRe: How to use Flash with C# Pin
leppie11-Apr-06 21:38
leppie11-Apr-06 21:38 
GeneralRe: How to use Flash with C# Pin
Christian Graus12-Apr-06 1:25
protectorChristian Graus12-Apr-06 1:25 
QuestionAdding Controls Pin
rahultaing11-Apr-06 15:03
rahultaing11-Apr-06 15:03 
AnswerRe: Adding Controls Pin
S. Senthil Kumar11-Apr-06 17:48
S. Senthil Kumar11-Apr-06 17:48 
QuestionControls Pin
rahultaing11-Apr-06 14:33
rahultaing11-Apr-06 14:33 
AnswerRe: Controls Pin
albCode11-Apr-06 21:45
albCode11-Apr-06 21:45 
Questionhelppppppppppp. Pin
lover9111-Apr-06 13:41
lover9111-Apr-06 13:41 
AnswerRe: helppppppppppp. Pin
Christian Graus11-Apr-06 16:54
protectorChristian Graus11-Apr-06 16:54 
QuestionVS 2005 with netFramework 1.1 ? Pin
hasantayyar11-Apr-06 9:38
hasantayyar11-Apr-06 9:38 

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.