Click here to Skip to main content
15,905,867 members
Home / Discussions / C#
   

C#

 
AnswerRe: Generics: Is x numeric? Pin
S. Senthil Kumar22-Aug-06 4:09
S. Senthil Kumar22-Aug-06 4:09 
AnswerRe: Generics: Is x numeric? Pin
Judah Gabriel Himango22-Aug-06 4:17
sponsorJudah Gabriel Himango22-Aug-06 4:17 
AnswerRe: Generics: Is x numeric? Pin
Eric Dahlvang22-Aug-06 5:20
Eric Dahlvang22-Aug-06 5:20 
QuestionProblem with search DateTime with SQL Pin
ATC22-Aug-06 3:56
ATC22-Aug-06 3:56 
QuestionIs OpenSceneGraph as managed c++ in a C# gui possible? Pin
Atlemann22-Aug-06 3:44
Atlemann22-Aug-06 3:44 
AnswerRe: Is OpenSceneGraph as managed c++ in a C# gui possible? Pin
Judah Gabriel Himango22-Aug-06 4:23
sponsorJudah Gabriel Himango22-Aug-06 4:23 
QuestionEditting the range for an excel pivottable Pin
Goalie3522-Aug-06 3:17
Goalie3522-Aug-06 3:17 
QuestionIsNull with C# Pin
M Riaz Bashir22-Aug-06 3:00
M Riaz Bashir22-Aug-06 3:00 
AnswerRe: IsNull with C# Pin
User 665822-Aug-06 3:04
User 665822-Aug-06 3:04 
GeneralRe: IsNull with C# Pin
Ed.Poore22-Aug-06 4:25
Ed.Poore22-Aug-06 4:25 
GeneralRe: IsNull with C# Pin
User 665822-Aug-06 4:47
User 665822-Aug-06 4:47 
GeneralRe: IsNull with C# Pin
Ed.Poore22-Aug-06 6:09
Ed.Poore22-Aug-06 6:09 
AnswerRe: IsNull with C# Pin
Judah Gabriel Himango22-Aug-06 4:25
sponsorJudah Gabriel Himango22-Aug-06 4:25 
AnswerRe: IsNull with C# Pin
Ed.Poore22-Aug-06 4:26
Ed.Poore22-Aug-06 4:26 
Questionvalidation Pin
nachisaravanan22-Aug-06 2:57
nachisaravanan22-Aug-06 2:57 
AnswerRe: validation Pin
MCSD-Gandalf22-Aug-06 3:25
MCSD-Gandalf22-Aug-06 3:25 
Questionhow to keep a group together in a rdlc report? Pin
gus_br22-Aug-06 2:47
gus_br22-Aug-06 2:47 
AnswerRe: how to keep a group together in a rdlc report? Pin
Alex.Shnaider17-Apr-12 22:29
Alex.Shnaider17-Apr-12 22:29 
Questionhow do i get?... Pin
diddy3422-Aug-06 2:29
diddy3422-Aug-06 2:29 
AnswerRe: how do i get?... Pin
TikkuTakku22-Aug-06 2:41
TikkuTakku22-Aug-06 2:41 
Questionreportviewer not printing Pin
Glen Harvy22-Aug-06 2:15
Glen Harvy22-Aug-06 2:15 
QuestionPrinting messages from other classes in the main form. Pin
TikkuTakku22-Aug-06 2:04
TikkuTakku22-Aug-06 2:04 
Hi!

I have created a simple server application and now I'm trying to create
sensible UI for it. The problem is that I don't know how to send log-messages
from other classes(Server,ConnectionProcessor etc) to be printed in a
multiline textbox in the main form(ServerForm, which starts the server-thread and so on).
I have tried some things with delegates but without success. Here's a little
example of what I have tried:

public class Server{
public delegate void printMessage(string message);
public printMessage print;
public void test(){
print = new printMessage(new ServerForm().printMessage);
print("Message printed via delegate");
}
}

public class ServerForm{

//Some code...

public void printMessage(string message){
serverLogTextBox.Text = message;
}
}

Any ideas, suggestions and possible solutions are hugely appreciated.
Thanks in advance.

-K-
AnswerRe: Printing messages from other classes in the main form. Pin
Christian Graus22-Aug-06 2:08
protectorChristian Graus22-Aug-06 2:08 
GeneralRe: Printing messages from other classes in the main form. [modified] Pin
TikkuTakku22-Aug-06 2:21
TikkuTakku22-Aug-06 2:21 
GeneralRe: Printing messages from other classes in the main form. Pin
engsrini22-Aug-06 6:56
engsrini22-Aug-06 6:56 

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.