Click here to Skip to main content
15,790,917 members
Home / Discussions / C#
   

C#

 
AnswerRe: how can I show the file path instead of ref Pin
wwwxyz11-Mar-09 6:13
wwwxyz11-Mar-09 6:13 
GeneralRe: how can I show the file path instead of ref Pin
#realJSOP11-Mar-09 6:28
mve#realJSOP11-Mar-09 6:28 
GeneralRe: how can I show the file path instead of ref Pin
Nagy Vilmos11-Mar-09 6:30
professionalNagy Vilmos11-Mar-09 6:30 
Questioncheck if in safe mode Pin
aviadqwerty11-Mar-09 2:26
aviadqwerty11-Mar-09 2:26 
GeneralRe: check if in safe mode Pin
Luc Pattyn11-Mar-09 2:44
sitebuilderLuc Pattyn11-Mar-09 2:44 
QuestionChange desktop wallpaper via windows service (vista) Pin
maxald11-Mar-09 1:57
maxald11-Mar-09 1:57 
AnswerWrong Place For This Question Pin
Nagy Vilmos11-Mar-09 2:16
professionalNagy Vilmos11-Mar-09 2:16 
GeneralRe: Wrong Place For This Question Pin
maxald11-Mar-09 4:10
maxald11-Mar-09 4:10 
Well then maybe I can change my question a bit? Regardless of the article, how do I change the background image within a windows service? I have search the web for hours now and all code are variations of the code as shown in the article (pretty much c# to me and this is a c# forum, right?)...

[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern Int32 SystemParametersInfo(UInt32 uiAction, UInt32 uiParam, String pvParam, UInt32 fWinIni);
private static UInt32 SPI_SETDESKWALLPAPER = 20;
private static UInt32 SPIF_UPDATEINIFILE = 0x1;

/.../

SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, @"C:\...\test.bmp", SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE);


Works perfectly in win forms in vista but not in my service of some reason.
GeneralRe: Wrong Place For This Question Pin
Nagy Vilmos11-Mar-09 4:21
professionalNagy Vilmos11-Mar-09 4:21 
GeneralRe: Wrong Place For This Question Pin
Dave Kreskowiak11-Mar-09 5:22
mveDave Kreskowiak11-Mar-09 5:22 
GeneralRe: Wrong Place For This Question Pin
maxald12-Mar-09 5:32
maxald12-Mar-09 5:32 
GeneralRe: Wrong Place For This Question Pin
Dave Kreskowiak12-Mar-09 13:20
mveDave Kreskowiak12-Mar-09 13:20 
GeneralRe: Wrong Place For This Question Pin
maxald12-Mar-09 22:05
maxald12-Mar-09 22:05 
GeneralRe: Wrong Place For This Question Pin
Dave Kreskowiak13-Mar-09 2:06
mveDave Kreskowiak13-Mar-09 2:06 
Questionerror importing a dll file Pin
raviya11-Mar-09 1:02
raviya11-Mar-09 1:02 
AnswerRe: error importing a dll file Pin
Expert Coming11-Mar-09 1:04
Expert Coming11-Mar-09 1:04 
GeneralRe: error importing a dll file Pin
raviya11-Mar-09 1:10
raviya11-Mar-09 1:10 
GeneralRe: error importing a dll file Pin
Xmen Real 11-Mar-09 1:15
professional Xmen Real 11-Mar-09 1:15 
GeneralRe: error importing a dll file Pin
Expert Coming11-Mar-09 1:16
Expert Coming11-Mar-09 1:16 
GeneralRe: error importing a dll file Pin
FalkoD11-Mar-09 1:17
FalkoD11-Mar-09 1:17 
QuestionLPR failed on Edited PRN file Pin
balu1234511-Mar-09 0:56
balu1234511-Mar-09 0:56 
AnswerRe: LPR failed on Edited PRN file Pin
Ashfield11-Mar-09 4:09
Ashfield11-Mar-09 4:09 
GeneralRe: LPR failed on Edited PRN file Pin
balu1234511-Mar-09 4:40
balu1234511-Mar-09 4:40 
GeneralRe: LPR failed on Edited PRN file Pin
Ashfield11-Mar-09 10:28
Ashfield11-Mar-09 10:28 
QuestionDataGridView and DataSet Pin
half-life11-Mar-09 0:16
half-life11-Mar-09 0:16 

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.