Click here to Skip to main content
16,006,605 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please two things i need please Pin
Colin Angus Mackay8-May-05 10:59
Colin Angus Mackay8-May-05 10:59 
GeneralRe: Please two things i need please [OT] Pin
DavidNohejl8-May-05 11:04
DavidNohejl8-May-05 11:04 
GeneralRe: Please two things i need please [OT] Pin
Colin Angus Mackay8-May-05 11:13
Colin Angus Mackay8-May-05 11:13 
GeneralRe: Please two things i need please [OT] Pin
DavidNohejl8-May-05 11:22
DavidNohejl8-May-05 11:22 
Generalhelp in threading Pin
satishrg8-May-05 7:32
satishrg8-May-05 7:32 
Generaluse SQL DMO for SQL Server access, what for ORACLE Pin
oohungoo8-May-05 5:40
oohungoo8-May-05 5:40 
GeneralImage Capture in C# Services Pin
Member 19030068-May-05 4:26
Member 19030068-May-05 4:26 
GeneralRe: Image Capture in C# Services Pin
Dave Kreskowiak9-May-05 1:08
mveDave Kreskowiak9-May-05 1:08 
I'm assuming your talking about a Windows Service and not a Web Service...

Yes, your service must be tagged "Allow service to interact with desktop". Go into the services control panel, click on your service, get the Properties on it, click on the LogOn tab and make sure that little box is checked.

Services normally run under a seperate desktop, that you can't see, and doesn't really have a rendering surface. So anything you need to do Window- or graphics- wise will return null's for window handles, device contexts, ... which is what is happening in your case.



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Image Capture in C# Services Pin
Member 19030069-May-05 3:50
Member 19030069-May-05 3:50 
Questionhow to open document in respective office application from database? Pin
Member 18788068-May-05 4:10
Member 18788068-May-05 4:10 
Generalsame code in menus and button Pin
cishi_us8-May-05 2:19
cishi_us8-May-05 2:19 
Generaluse a function Pin
DavidNohejl8-May-05 4:16
DavidNohejl8-May-05 4:16 
GeneralRe: same code in menus and button Pin
WujekSamoZlo8-May-05 4:36
WujekSamoZlo8-May-05 4:36 
GeneralRe: same code in menus and button Pin
DavidNohejl8-May-05 5:41
DavidNohejl8-May-05 5:41 
Generalusb interfacing in c#.Net(framework 1.1) Pin
ahsan1418-May-05 1:45
ahsan1418-May-05 1:45 
Generalreading binary files Pin
Crazy Joe Devola8-May-05 1:11
Crazy Joe Devola8-May-05 1:11 
GeneralRe: reading binary files Pin
Polis Pilavas8-May-05 1:40
Polis Pilavas8-May-05 1:40 
GeneralRe: reading binary files Pin
Crazy Joe Devola8-May-05 2:04
Crazy Joe Devola8-May-05 2:04 
GeneralRe: reading binary files Pin
Polis Pilavas8-May-05 2:10
Polis Pilavas8-May-05 2:10 
GeneralRe: reading binary files Pin
Crazy Joe Devola10-May-05 14:33
Crazy Joe Devola10-May-05 14:33 
GeneralRe: reading binary files Pin
Dave Kreskowiak8-May-05 2:54
mveDave Kreskowiak8-May-05 2:54 
GeneralRe: reading binary files Pin
suceny14-Nov-09 22:37
suceny14-Nov-09 22:37 
GeneralRe: reading binary files Pin
Dave Kreskowiak15-Nov-09 10:51
mveDave Kreskowiak15-Nov-09 10:51 
QuestionInstaller and uninstaller? Pin
WujekSamoZlo8-May-05 0:24
WujekSamoZlo8-May-05 0:24 
AnswerRe: Installer and uninstaller? Pin
Colin Angus Mackay8-May-05 0:36
Colin Angus Mackay8-May-05 0:36 

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.