Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
QuestionWindows Form KeyDown Pin
Zeyad Jalil21-Aug-14 0:06
professionalZeyad Jalil21-Aug-14 0:06 
AnswerRe: Windows Form KeyDown Pin
Eddy Vluggen21-Aug-14 0:34
professionalEddy Vluggen21-Aug-14 0:34 
AnswerRe: Windows Form KeyDown Pin
joost.versteegen21-Aug-14 2:58
joost.versteegen21-Aug-14 2:58 
GeneralRe: Windows Form KeyDown Pin
Rob Philpott21-Aug-14 6:25
Rob Philpott21-Aug-14 6:25 
QuestionMobile Money Transfer Application Pin
Soren Neilsen20-Aug-14 22:42
Soren Neilsen20-Aug-14 22:42 
AnswerRe: Mobile Money Transfer Application Pin
OriginalGriff20-Aug-14 22:44
mveOriginalGriff20-Aug-14 22:44 
QuestionOpenFileDialog works from app but not from a spawned thread after use InvokeMember to load assembly / class Pin
JudyL_MD20-Aug-14 10:41
JudyL_MD20-Aug-14 10:41 
AnswerRe: OpenFileDialog works from app but not from a spawned thread after use InvokeMember to load assembly / class PinPopular
Richard Deeming20-Aug-14 10:59
mveRichard Deeming20-Aug-14 10:59 
I suspect your background thread needs to be an STA thread. Try changing your Startup.Run method:
C#
public void Run()
{
    Thread runThread = new Thread(ActualWork);
    runThread.ApartmentState = ApartmentState.STA;
    runThread.Start();
}




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: OpenFileDialog works from app but not from a spawned thread after use InvokeMember to load assembly / class Pin
JudyL_MD20-Aug-14 11:04
JudyL_MD20-Aug-14 11:04 
GeneralRe: OpenFileDialog works from app but not from a spawned thread after use InvokeMember to load assembly / class Pin
Ravi Bhavnani20-Aug-14 11:12
professionalRavi Bhavnani20-Aug-14 11:12 
QuestionSolution for Oracle.DataAccess.Client.OracleException Pin
Member 1099617820-Aug-14 2:25
Member 1099617820-Aug-14 2:25 
AnswerRe: Solution for Oracle.DataAccess.Client.OracleException Pin
Richard MacCutchan20-Aug-14 3:09
mveRichard MacCutchan20-Aug-14 3:09 
AnswerRe: Solution for Oracle.DataAccess.Client.OracleException Pin
Dave Kreskowiak20-Aug-14 4:09
mveDave Kreskowiak20-Aug-14 4:09 
Questioncode in c# Pin
Member 1087469320-Aug-14 2:02
Member 1087469320-Aug-14 2:02 
AnswerRe: code in c# Pin
OriginalGriff20-Aug-14 2:21
mveOriginalGriff20-Aug-14 2:21 
AnswerRe: code in c# Pin
Lambin22-Aug-14 1:33
Lambin22-Aug-14 1:33 
QuestionEquivalent Linq Query for SQL Query? Pin
murali_utr19-Aug-14 16:55
murali_utr19-Aug-14 16:55 
AnswerRe: Equivalent Linq Query for SQL Query? Pin
Richard MacCutchan19-Aug-14 21:41
mveRichard MacCutchan19-Aug-14 21:41 
AnswerRe: Equivalent Linq Query for SQL Query? Pin
Sibeesh KV29-Sep-14 19:43
professionalSibeesh KV29-Sep-14 19:43 
QuestionMessage Closed Pin
19-Aug-14 12:19
omprakash jaiswal19-Aug-14 12:19 
AnswerRe: mask attack Pin
Bernhard Hiller19-Aug-14 21:15
Bernhard Hiller19-Aug-14 21:15 
AnswerRe: mask attack PinPopular
OriginalGriff19-Aug-14 21:47
mveOriginalGriff19-Aug-14 21:47 
GeneralRe: mask attack Pin
Rob Philpott19-Aug-14 23:12
Rob Philpott19-Aug-14 23:12 
GeneralRe: mask attack Pin
OriginalGriff19-Aug-14 23:23
mveOriginalGriff19-Aug-14 23:23 
QuestionHTTP CURL Pin
Shankar Subramanian19-Aug-14 10:28
Shankar Subramanian19-Aug-14 10:28 

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.