Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
OriginalGriff22-Aug-09 21:09
mveOriginalGriff22-Aug-09 21:09 
GeneralRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
TAFIN22-Aug-09 21:40
TAFIN22-Aug-09 21:40 
GeneralRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
OriginalGriff22-Aug-09 21:54
mveOriginalGriff22-Aug-09 21:54 
GeneralRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
TAFIN22-Aug-09 22:28
TAFIN22-Aug-09 22:28 
AnswerRe: What is the method in C# like the method - "repaint()" in JAVA??? Pin
Hristo-Bojilov22-Aug-09 22:51
Hristo-Bojilov22-Aug-09 22:51 
Questiondatabase size not changed Pin
msrezapro22-Aug-09 15:02
msrezapro22-Aug-09 15:02 
AnswerRe: database size not changed Pin
Luc Pattyn22-Aug-09 15:19
sitebuilderLuc Pattyn22-Aug-09 15:19 
QuestionAppend cookies in httpwebrequest Pin
Evgeni5722-Aug-09 7:05
Evgeni5722-Aug-09 7:05 
Questiona c++ class library/dll in your c# project Pin
Natural_Demon22-Aug-09 5:58
Natural_Demon22-Aug-09 5:58 
AnswerRe: a c++ class library/dll in your c# project Pin
Hristo-Bojilov22-Aug-09 6:25
Hristo-Bojilov22-Aug-09 6:25 
GeneralRe: a c++ class library/dll in your c# project Pin
Natural_Demon22-Aug-09 6:32
Natural_Demon22-Aug-09 6:32 
GeneralRe: a c++ class library/dll in your c# project Pin
Hristo-Bojilov22-Aug-09 6:59
Hristo-Bojilov22-Aug-09 6:59 
QuestionBlock parent form Pin
Dominik Reichl22-Aug-09 4:21
Dominik Reichl22-Aug-09 4:21 
AnswerRe: Block parent form Pin
Dominik Reichl22-Aug-09 6:18
Dominik Reichl22-Aug-09 6:18 
AnswerRe: Block parent form Pin
Natural_Demon22-Aug-09 6:19
Natural_Demon22-Aug-09 6:19 
GeneralRe: Block parent form Pin
Dominik Reichl22-Aug-09 6:49
Dominik Reichl22-Aug-09 6:49 
GeneralRe: Block parent form Pin
Natural_Demon22-Aug-09 7:07
Natural_Demon22-Aug-09 7:07 
AnswerRe: Block parent form Pin
Xmen Real 22-Aug-09 7:09
professional Xmen Real 22-Aug-09 7:09 
GeneralRe: Block parent form Pin
Dominik Reichl22-Aug-09 8:17
Dominik Reichl22-Aug-09 8:17 
AnswerRe: Block parent form Pin
Saksida Bojan22-Aug-09 12:02
Saksida Bojan22-Aug-09 12:02 
GeneralRe: Block parent form Pin
Luc Pattyn22-Aug-09 13:29
sitebuilderLuc Pattyn22-Aug-09 13:29 
Saksida Bojan wrote:
Moddaly and non moddaly means only that it runs either in diffrent or same thread


I don't think so. It means they use different message pumps, however all message pumps are executed (one at a time) by one and only one thread.

Here is an experiment to prove it:
- create main form Form1 with a ListBox and a Button; it will be shown modelessly;
- create Form2 with a ListBox and a Button; it will be shown modally;
- add the following to Form1:
public partial class Form1 : Form {
    int count;

    public Form1() {
        InitializeComponent();
    }

    public void log(string s) {
        lb.Items.Add(s);
    }

    private void button1_Click(object sender, EventArgs e) {
        log("Thread ID="+Thread.CurrentThread.ManagedThreadId);
        Form2 f=new Form2();
        f.ShowDialog();
    }

    protected override void WndProc(ref Message m) {
        count++;
        if (count<5) log("Thread ID="+Thread.CurrentThread.ManagedThreadId);
        base.WndProc(ref m);
    }
}


- add basically the same code to Form2 (without new Form2/ShowDialog)
- run, click button, see all thread IDs, on second form, click button, see all thread IDs equal to the former ones.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

QuestionPermanent connection with webserver Pin
Xmen Real 22-Aug-09 3:15
professional Xmen Real 22-Aug-09 3:15 
AnswerRe: Permanent connection with webserver Pin
Natural_Demon22-Aug-09 6:30
Natural_Demon22-Aug-09 6:30 
GeneralRe: Permanent connection with webserver Pin
Xmen Real 22-Aug-09 7:04
professional Xmen Real 22-Aug-09 7:04 
GeneralRe: Permanent connection with webserver Pin
Dave Kreskowiak22-Aug-09 7:38
mveDave Kreskowiak22-Aug-09 7: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.