Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: Installing a C# application programmatically … Pin
Xaverian27-Dec-06 8:21
Xaverian27-Dec-06 8:21 
GeneralRe: Installing a C# application programmatically Pin
Nader Elshehabi27-Dec-06 8:27
Nader Elshehabi27-Dec-06 8:27 
GeneralRe: Installing a C# application programmatically Pin
Xaverian27-Dec-06 8:42
Xaverian27-Dec-06 8:42 
GeneralRe: Installing a C# application programmatically Pin
Nader Elshehabi27-Dec-06 9:10
Nader Elshehabi27-Dec-06 9:10 
GeneralRe: Installing a C# application programmatically Pin
Xaverian27-Dec-06 9:39
Xaverian27-Dec-06 9:39 
GeneralRe: Installing a C# application programmatically Pin
Nader Elshehabi27-Dec-06 9:46
Nader Elshehabi27-Dec-06 9:46 
GeneralRe: Installing a C# application programmatically Pin
Xaverian27-Dec-06 11:53
Xaverian27-Dec-06 11:53 
GeneralRe: Installing a C# application programmatically Pin
Nader Elshehabi27-Dec-06 20:13
Nader Elshehabi27-Dec-06 20:13 
It's one simple mistake -you can post it in the subtle bugs forum BTWSmile | :) -. You've written
theRootKey.SetValue(valName, testValue, valKind);

... while it should have been
theDeskTopKey.SetValue(valName, testValue, valKind);

as the value is under the "HKEY_CURRENT_USER\Control Panel\Desktop" key not the "Current User" root key.
I hope it works.

PS.
the line
if (theDeskTopKey.GetValue(_screenSaverValue) == null)

tests only if the user doesn't have any screen saver chosen. If they have another screen saver chosen this value will not be null. Rather it will be the path to the other screen saver. You should always SetValue() even if it wasn't null.

RegardsRose | [Rose]

GeneralRe: Installing a C# application programmatically Pin
Xaverian28-Dec-06 3:57
Xaverian28-Dec-06 3:57 
QuestionExporting DataGrid to Excel Pin
pssuresh27-Dec-06 3:50
pssuresh27-Dec-06 3:50 
AnswerRe: Exporting DataGrid to Excel Pin
Nader Elshehabi27-Dec-06 6:47
Nader Elshehabi27-Dec-06 6:47 
AnswerRe: Exporting DataGrid to Excel Pin
ednrgc28-Dec-06 6:30
ednrgc28-Dec-06 6:30 
QuestionopenFileDialog problem Pin
CodeItWell27-Dec-06 3:32
CodeItWell27-Dec-06 3:32 
AnswerRe: openFileDialog problem Pin
Paul Lyons27-Dec-06 3:58
Paul Lyons27-Dec-06 3:58 
AnswerRe: openFileDialog problem Pin
gnadeem27-Dec-06 4:00
gnadeem27-Dec-06 4:00 
GeneralRe: openFileDialog problem Pin
Dave Kreskowiak27-Dec-06 5:09
mveDave Kreskowiak27-Dec-06 5:09 
GeneralRe: openFileDialog problem Pin
gnadeem27-Dec-06 11:20
gnadeem27-Dec-06 11:20 
GeneralRe: openFileDialog problem Pin
ednrgc28-Dec-06 6:31
ednrgc28-Dec-06 6:31 
QuestionHow to make use of an API Pin
rockyl27-Dec-06 2:33
rockyl27-Dec-06 2:33 
AnswerRe: How to make use of an API Pin
Niiiissssshhhhhuuuuu27-Dec-06 2:39
Niiiissssshhhhhuuuuu27-Dec-06 2:39 
GeneralRe: How to make use of an API Pin
rockyl27-Dec-06 4:23
rockyl27-Dec-06 4:23 
AnswerRe: How to make use of an API Pin
User 665827-Dec-06 2:40
User 665827-Dec-06 2:40 
GeneralRe: How to make use of an API Pin
rockyl27-Dec-06 4:22
rockyl27-Dec-06 4:22 
GeneralRe: How to make use of an API Pin
Eric Dahlvang27-Dec-06 5:35
Eric Dahlvang27-Dec-06 5:35 
GeneralRe: How to make use of an API Pin
Tyler4527-Dec-06 4:47
Tyler4527-Dec-06 4:47 

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.