Click here to Skip to main content
15,918,617 members
Home / Discussions / C#
   

C#

 
QuestionRe: Texts in all combo boxes are selected Pin
J$22-Aug-07 13:19
J$22-Aug-07 13:19 
AnswerRe: Texts in all combo boxes are selected Pin
AndrusM22-Aug-07 23:14
AndrusM22-Aug-07 23:14 
QuestionHow to know the fact that desktop in changed? Pin
dhami_naresh22-Aug-07 7:37
dhami_naresh22-Aug-07 7:37 
AnswerRe: How to know the fact that desktop in changed? Pin
snorkie22-Aug-07 11:53
professionalsnorkie22-Aug-07 11:53 
GeneralRe: How to know the fact that desktop in changed? Pin
dhami_naresh22-Aug-07 16:12
dhami_naresh22-Aug-07 16:12 
AnswerRe: How to know the fact that desktop in changed? Pin
Luc Pattyn22-Aug-07 13:10
sitebuilderLuc Pattyn22-Aug-07 13:10 
GeneralRe: How to know the fact that desktop in changed? Pin
dhami_naresh6-Sep-07 19:56
dhami_naresh6-Sep-07 19:56 
QuestionWindows service + COM STA Pin
SteveL1223422-Aug-07 7:29
SteveL1223422-Aug-07 7:29 
How does one receive events in a C# windows service from a COM object that has been instantiated from a background thread whose ApartmentState == ApartmentState.STA? I’ve been able to received events from the COM object in a WinForm app when the thread sits in a loop sleeping and invoking System.Windows.Forms.Application.DoEvents(), i.e. pumping the message queue.

The thread that accesses the COM object is responsible for responding to requests by other objects to access the COM object, done through a queue + AutoResetEvent, and for handling events raised by the COM object in response to those requests.

Other posts/web sites have mentioned that STA threads require a message loop/pump. It seems like if the thread that accesses the COM object were able to call a method that could sleep + message pump + respond to requests to wake up, I’d be set. Is there such a beast/can such a thing be created? Is this the right kind of design?

Thanks,
Steve
AnswerRe: Windows service + COM STA Pin
kubben22-Aug-07 8:29
kubben22-Aug-07 8:29 
AnswerRe: Windows service + COM STA Pin
SteveL1223423-Aug-07 5:01
SteveL1223423-Aug-07 5:01 
QuestionStringBuilder Pin
elwoofy22-Aug-07 6:47
elwoofy22-Aug-07 6:47 
AnswerRe: StringBuilder Pin
Giorgi Dalakishvili22-Aug-07 7:00
mentorGiorgi Dalakishvili22-Aug-07 7:00 
AnswerRe: StringBuilder Pin
Scott Dorman22-Aug-07 7:23
professionalScott Dorman22-Aug-07 7:23 
GeneralRe: StringBuilder Pin
Giorgi Dalakishvili22-Aug-07 7:41
mentorGiorgi Dalakishvili22-Aug-07 7:41 
GeneralRe: StringBuilder Pin
Scott Dorman22-Aug-07 8:01
professionalScott Dorman22-Aug-07 8:01 
GeneralRe: StringBuilder Pin
PIEBALDconsult22-Aug-07 8:05
mvePIEBALDconsult22-Aug-07 8:05 
GeneralRe: StringBuilder Pin
Scott Dorman22-Aug-07 8:13
professionalScott Dorman22-Aug-07 8:13 
GeneralRe: StringBuilder Pin
PIEBALDconsult22-Aug-07 9:08
mvePIEBALDconsult22-Aug-07 9:08 
GeneralRe: StringBuilder Pin
Giorgi Dalakishvili22-Aug-07 9:23
mentorGiorgi Dalakishvili22-Aug-07 9:23 
GeneralRe: StringBuilder Pin
PIEBALDconsult22-Aug-07 10:00
mvePIEBALDconsult22-Aug-07 10:00 
GeneralRe: StringBuilder Pin
Luc Pattyn22-Aug-07 13:21
sitebuilderLuc Pattyn22-Aug-07 13:21 
GeneralRe: StringBuilder Pin
PIEBALDconsult22-Aug-07 14:43
mvePIEBALDconsult22-Aug-07 14:43 
GeneralRe: StringBuilder Pin
Luc Pattyn22-Aug-07 14:55
sitebuilderLuc Pattyn22-Aug-07 14:55 
GeneralRe: StringBuilder Pin
PIEBALDconsult22-Aug-07 17:57
mvePIEBALDconsult22-Aug-07 17:57 
QuestionRecording movement on a GUI of an application Pin
thedavejay22-Aug-07 6:27
thedavejay22-Aug-07 6:27 

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.