Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
AnswerRe: Drawing in loop [modified] Pin
Le centriste5-Jun-06 10:05
Le centriste5-Jun-06 10:05 
GeneralRe: Drawing in loop [modified] Pin
Nikhil Wason5-Jun-06 10:19
Nikhil Wason5-Jun-06 10:19 
GeneralRe: Drawing in loop [modified] Pin
Dan Neely5-Jun-06 10:29
Dan Neely5-Jun-06 10:29 
AnswerRe: Drawing in loop Pin
Le centriste5-Jun-06 10:17
Le centriste5-Jun-06 10:17 
GeneralRe: Drawing in loop Pin
Nikhil Wason5-Jun-06 10:21
Nikhil Wason5-Jun-06 10:21 
GeneralRe: Drawing in loop Pin
S. Senthil Kumar5-Jun-06 22:27
S. Senthil Kumar5-Jun-06 22:27 
AnswerRe: Drawing in loop Pin
Josh Smith5-Jun-06 10:42
Josh Smith5-Jun-06 10:42 
QuestionHow to re-use form/control manipulation code? Pin
nicknotyet5-Jun-06 9:51
nicknotyet5-Jun-06 9:51 
I have a routine that enables me to update a textbox even when called from a non-ui thread.

delegate void AppendTextCallBack(string text);

private void AppendText(string text)
{
if (this.textBoxStatus.InvokeRequired)
{
AppendTextCallBack CallBackAppendText = new AppendTextCallBack(AppendText);
this.Invoke(CallBackAppendText, new object[] { text });
}
else
{
textBoxStatus.AppendText(text);
}
}

It works just fine, the problem is that I am repeating it and others like it in every single form in my app. I'd like to refactor and have a single function in some common location that all the forms can use. I'd prefer not to create whole new class, but...

Any suggestions?
AnswerRe: How to re-use form/control manipulation code? Pin
nicknotyet5-Jun-06 9:52
nicknotyet5-Jun-06 9:52 
AnswerRe: How to re-use form/control manipulation code? Pin
Josh Smith5-Jun-06 10:46
Josh Smith5-Jun-06 10:46 
GeneralRe: How to re-use form/control manipulation code? Pin
nicknotyet5-Jun-06 11:03
nicknotyet5-Jun-06 11:03 
AnswerRe: How to re-use form/control manipulation code? Pin
S. Senthil Kumar5-Jun-06 22:39
S. Senthil Kumar5-Jun-06 22:39 
QuestionSample app with DAL connectivity [modified] Pin
IMC20065-Jun-06 8:35
IMC20065-Jun-06 8:35 
AnswerRe: Sample app with DAL connectivity [modified] Pin
Josh Smith5-Jun-06 10:52
Josh Smith5-Jun-06 10:52 
GeneralSample app with DAL connectivity Pin
IMC20065-Jun-06 13:36
IMC20065-Jun-06 13:36 
GeneralRe: Sample app with DAL connectivity Pin
Josh Smith7-Jun-06 12:21
Josh Smith7-Jun-06 12:21 
QuestionProblem with DataGrid in MultiThread enviroment Pin
fan wei fang5-Jun-06 7:44
fan wei fang5-Jun-06 7:44 
AnswerRe: Problem with DataGrid in MultiThread enviroment Pin
Josh Smith5-Jun-06 8:57
Josh Smith5-Jun-06 8:57 
GeneralRe: Problem with DataGrid in MultiThread enviroment Pin
fan wei fang5-Jun-06 9:34
fan wei fang5-Jun-06 9:34 
GeneralRe: Problem with DataGrid in MultiThread enviroment Pin
Josh Smith5-Jun-06 10:29
Josh Smith5-Jun-06 10:29 
GeneralRe: Problem with DataGrid in MultiThread enviroment Pin
fan wei fang5-Jun-06 18:03
fan wei fang5-Jun-06 18:03 
Questiondate conversion Pin
kjosh5-Jun-06 5:51
kjosh5-Jun-06 5:51 
AnswerRe: date conversion Pin
Josh Smith5-Jun-06 5:56
Josh Smith5-Jun-06 5:56 
AnswerRe: date conversion Pin
User 66585-Jun-06 6:07
User 66585-Jun-06 6:07 
QuestionVB6 --> C# Binary file reading Pin
aldogon5-Jun-06 5:45
aldogon5-Jun-06 5:45 

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.