Click here to Skip to main content
16,013,592 members
Home / Discussions / C#
   

C#

 
AnswerRe: getting ip or mac address with c# ? Pin
leppie26-Jun-06 1:26
leppie26-Jun-06 1:26 
AnswerRe: getting ip or mac address with c# ? Pin
Tarakeshwar Reddy26-Jun-06 1:27
professionalTarakeshwar Reddy26-Jun-06 1:27 
QuestionRedirect file stream? Pin
Narthalion26-Jun-06 0:59
Narthalion26-Jun-06 0:59 
AnswerRe: Redirect file stream? Pin
Nader Elshehabi26-Jun-06 1:45
Nader Elshehabi26-Jun-06 1:45 
QuestionValue member & display member for combobox when using datareader Pin
ashishinfra26-Jun-06 0:56
ashishinfra26-Jun-06 0:56 
AnswerRe: Value member & display member for combobox when using datareader Pin
Paul Brower26-Jun-06 2:12
Paul Brower26-Jun-06 2:12 
GeneralRe: Value member & display member for combobox when using datareader Pin
ashishinfra26-Jun-06 2:31
ashishinfra26-Jun-06 2:31 
QuestionOpenFileDialog equivalent for a MTA app? Pin
Jon Hulatt26-Jun-06 0:38
Jon Hulatt26-Jun-06 0:38 
Hi All,

My app is MTA, because it needs to be for directshow. I'm now wanting to use OpenFileDialog, but it seems to not work: calling ShowDialog results in a ThreadStateException with additional information

"Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process"

Anyone got any ideas for an alternative or a workaround? My main thread needs to stay MTA, or directshow stuff i'm doing will not work.

Any help greatly appreciated!

Jon

using System.Beer;

AnswerRe: OpenFileDialog equivalent for a MTA app? Pin
Nader Elshehabi26-Jun-06 1:32
Nader Elshehabi26-Jun-06 1:32 
GeneralRe: OpenFileDialog equivalent for a MTA app? Pin
Jon Hulatt26-Jun-06 4:13
Jon Hulatt26-Jun-06 4:13 
GeneralRe: OpenFileDialog equivalent for a MTA app? Pin
Nader Elshehabi26-Jun-06 6:00
Nader Elshehabi26-Jun-06 6:00 
QuestionCrystal reports... with a SQL or format string Pin
Willem_Le_Roux26-Jun-06 0:32
Willem_Le_Roux26-Jun-06 0:32 
AnswerRe: Crystal reports... with a SQL or format string [modified] Pin
Tarakeshwar Reddy26-Jun-06 1:15
professionalTarakeshwar Reddy26-Jun-06 1:15 
QuestionRe: Crystal reports... with a SQL or format string [modified] Pin
Willem_Le_Roux28-Jun-06 1:08
Willem_Le_Roux28-Jun-06 1:08 
AnswerRe: Crystal reports... with a SQL or format string Pin
Tarakeshwar Reddy28-Jun-06 1:35
professionalTarakeshwar Reddy28-Jun-06 1:35 
GeneralRe: Crystal reports... with a SQL or format string Pin
Willem_Le_Roux28-Jun-06 2:04
Willem_Le_Roux28-Jun-06 2:04 
GeneralRe: Crystal reports... with a SQL or format string Pin
Tarakeshwar Reddy28-Jun-06 2:11
professionalTarakeshwar Reddy28-Jun-06 2:11 
GeneralRe: Crystal reports... with a SQL or format string Pin
Willem_Le_Roux28-Jun-06 2:36
Willem_Le_Roux28-Jun-06 2:36 
GeneralRe: Crystal reports... with a SQL or format string Pin
Tarakeshwar Reddy28-Jun-06 2:42
professionalTarakeshwar Reddy28-Jun-06 2:42 
GeneralRe: Crystal reports... with a SQL or format string Pin
Willem_Le_Roux28-Jun-06 3:02
Willem_Le_Roux28-Jun-06 3:02 
GeneralRe: Crystal reports... with a SQL or format string Pin
Willem_Le_Roux28-Jun-06 3:11
Willem_Le_Roux28-Jun-06 3:11 
GeneralRe: Crystal reports... with a SQL or format string Pin
Tarakeshwar Reddy28-Jun-06 4:27
professionalTarakeshwar Reddy28-Jun-06 4:27 
QuestionWeb Service Deserialization problem Pin
stickyWicky26-Jun-06 0:14
stickyWicky26-Jun-06 0:14 
QuestionCrystal Report 10 in VS .Net 2005 (Windows Forms app) [modified] Pin
Mairaaj Khan26-Jun-06 0:10
professionalMairaaj Khan26-Jun-06 0:10 
QuestionUdpClient error Pin
sjembek26-Jun-06 0:09
sjembek26-Jun-06 0:09 

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.