Click here to Skip to main content
16,019,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is there a way to transfer files to remote computer of different domain using remote server's username and password??? (c# , console) Pin
surender.m23-Jun-11 19:13
surender.m23-Jun-11 19:13 
RantRe: Is there a way to transfer files to remote computer of different domain using remote server's username and password??? (c# , console) Pin
Mario Majčica23-Jun-11 4:13
professionalMario Majčica23-Jun-11 4:13 
GeneralRe: Is there a way to transfer files to remote computer of different domain using remote server's username and password??? (c# , console) Pin
surender.m23-Jun-11 19:11
surender.m23-Jun-11 19:11 
Questionreduce of picture to fit panel size Pin
Eddie198722-Jun-11 23:57
Eddie198722-Jun-11 23:57 
AnswerRe: reduce of picture to fit panel size Pin
OriginalGriff23-Jun-11 0:24
mveOriginalGriff23-Jun-11 0:24 
GeneralRe: reduce of picture to fit panel size Pin
mahendren29-Jun-11 2:05
mahendren29-Jun-11 2:05 
QuestionPainting issue while running two different threads Pin
Piyush Vaishnav22-Jun-11 23:29
Piyush Vaishnav22-Jun-11 23:29 
AnswerRe: Painting issue while running two different threads Pin
Dave Kreskowiak23-Jun-11 2:36
mveDave Kreskowiak23-Jun-11 2:36 
It sounds as if you've done something very wrong. The form should be on the UI (startup) thread and your worker code on the background thread. If the background isn't doing actual work, it shouldn't normally be running at all, unless this is some kind of server process. It really depends on what you're doing, but it's customary to create the worker background object when needed and let it terminate itself when the work is done, though, that's not always possible or appropriate.

The other popular method is to run the background thread in two modes, work and polling. Work mode is obvious. This is where the thread is actually processing work. Polling mode is where the thread is checking some kind of variable every so often to see if there's work to be picked up and processed. This polling should be done in a loop that is delayed with a sleep for, say, once a second. The UI code, your Yes button code, should set the variable appropriately to get the background thread to kick off work.

AnswerRe: Painting issue while running two different threads Pin
BobJanova23-Jun-11 4:44
BobJanova23-Jun-11 4:44 
QuestionTextBoxes, ListView, DataGrid or something else? Pin
TheBlindWatchmaker22-Jun-11 13:31
TheBlindWatchmaker22-Jun-11 13:31 
AnswerRe: TextBoxes, ListView, DataGrid or something else? Pin
Mycroft Holmes22-Jun-11 14:11
professionalMycroft Holmes22-Jun-11 14:11 
GeneralRe: TextBoxes, ListView, DataGrid or something else? Pin
TheBlindWatchmaker22-Jun-11 14:40
TheBlindWatchmaker22-Jun-11 14:40 
GeneralRe: TextBoxes, ListView, DataGrid or something else? Pin
Mycroft Holmes22-Jun-11 14:49
professionalMycroft Holmes22-Jun-11 14:49 
GeneralRe: TextBoxes, ListView, DataGrid or something else? Pin
Wayne Gaylard22-Jun-11 20:59
professionalWayne Gaylard22-Jun-11 20:59 
GeneralRe: TextBoxes, ListView, DataGrid or something else? Pin
TheBlindWatchmaker23-Jun-11 11:22
TheBlindWatchmaker23-Jun-11 11:22 
GeneralRe: TextBoxes, ListView, DataGrid or something else? Pin
BobJanova23-Jun-11 22:45
BobJanova23-Jun-11 22:45 
AnswerRe: TextBoxes, ListView, DataGrid or something else? Pin
BobJanova23-Jun-11 1:07
BobJanova23-Jun-11 1:07 
QuestionGSM Modem Pin
marshall_donuts22-Jun-11 7:46
marshall_donuts22-Jun-11 7:46 
AnswerRe: GSM Modem Pin
jschell22-Jun-11 9:19
jschell22-Jun-11 9:19 
GeneralRe: GSM Modem Pin
marshall_donuts26-Jun-11 14:46
marshall_donuts26-Jun-11 14:46 
GeneralRe: GSM Modem Pin
Andy41129-Jun-11 2:45
Andy41129-Jun-11 2:45 
Questionitextsharp colums question Pin
cromster22-Jun-11 5:17
cromster22-Jun-11 5:17 
AnswerRe: itextsharp colums question Pin
cromster11-Jul-11 5:18
cromster11-Jul-11 5:18 
QuestionPassing one of struct (from array) to other method (in different files) Pin
Blubbo22-Jun-11 5:16
Blubbo22-Jun-11 5:16 
QuestionRe: Passing one of struct (from array) to other method (in different files) Pin
MicroVirus22-Jun-11 5:55
MicroVirus22-Jun-11 5:55 

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.