Click here to Skip to main content
15,907,497 members
Home / Discussions / C#
   

C#

 
AnswerRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 0:11
mveRichard MacCutchan12-Nov-11 0:11 
AnswerRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 1:50
sitebuilderLuc Pattyn12-Nov-11 1:50 
AnswerRe: PInvoke registry value - Help please. Pin
CCodeNewbie12-Nov-11 2:42
CCodeNewbie12-Nov-11 2:42 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 3:20
mveRichard MacCutchan12-Nov-11 3:20 
AnswerRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 4:20
sitebuilderLuc Pattyn12-Nov-11 4:20 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 5:38
mveRichard MacCutchan12-Nov-11 5:38 
GeneralRe: PInvoke registry value - Help please. Pin
CCodeNewbie12-Nov-11 4:22
CCodeNewbie12-Nov-11 4:22 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 6:30
mveRichard MacCutchan12-Nov-11 6:30 
GeneralRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 6:59
sitebuilderLuc Pattyn12-Nov-11 6:59 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 7:08
mveRichard MacCutchan12-Nov-11 7:08 
AnswerRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 7:28
sitebuilderLuc Pattyn12-Nov-11 7:28 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 7:35
mveRichard MacCutchan12-Nov-11 7:35 
GeneralRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 7:44
sitebuilderLuc Pattyn12-Nov-11 7:44 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 8:10
mveRichard MacCutchan12-Nov-11 8:10 
GeneralRe: PInvoke registry value - Help please. Pin
CCodeNewbie12-Nov-11 22:58
CCodeNewbie12-Nov-11 22:58 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan13-Nov-11 1:23
mveRichard MacCutchan13-Nov-11 1:23 
GeneralRe: PInvoke registry value - Help please. Pin
CCodeNewbie13-Nov-11 2:26
CCodeNewbie13-Nov-11 2:26 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan13-Nov-11 3:37
mveRichard MacCutchan13-Nov-11 3:37 
GeneralRe: PInvoke registry value - Help please. Pin
CCodeNewbie13-Nov-11 4:13
CCodeNewbie13-Nov-11 4:13 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan13-Nov-11 4:30
mveRichard MacCutchan13-Nov-11 4:30 
AnswerRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 4:35
sitebuilderLuc Pattyn12-Nov-11 4:35 
AnswerRe: PInvoke registry value - Help please. Pin
biop.codeproject13-Nov-11 15:05
biop.codeproject13-Nov-11 15:05 
GeneralRe: PInvoke registry value - Help please. Pin
CCodeNewbie13-Nov-11 22:14
CCodeNewbie13-Nov-11 22:14 
QuestionForm.Show() in a backgroundworker doesn't work Pin
teknolog12311-Nov-11 22:41
teknolog12311-Nov-11 22:41 
hi, Whenever I start a instance of a form with frm.Show() from a backgroundworkder or a thread other than the mainform's thread like the sample below, the new form is unstable. but it's okay with frm.ShowDialog(). I want to use frm.show() because the code don't stop and wait for the user action. Any idea about it?

C#
//this way, the frm hangs
private void bgworker_DoWork(object sender, DoWorkEventArgs e)
{
    NewWindow frm=new NewWindow(); //this is not the main form
    frm.Show();
}

//this way it's okay
private void bgworker_DoWork(object sender, DoWorkEventArgs e)
{
    NewWindow frm=new NewWindow(); //this is not the main form
    frm.ShowDialog();
}

AnswerRe: Form.Show() in a backgroundworker doesn't work Pin
Richard MacCutchan11-Nov-11 22:53
mveRichard MacCutchan11-Nov-11 22:53 

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.