Click here to Skip to main content
15,563,981 members
Home / Discussions / C#
   

C#

 
GeneralRe: where to put try catch block! Pin
Hussam Fattahi28-Mar-10 6:04
Hussam Fattahi28-Mar-10 6:04 
GeneralRe: where to put try catch block! Pin
Eddy Vluggen28-Mar-10 6:23
professionalEddy Vluggen28-Mar-10 6:23 
AnswerRe: where to put try catch block! Pin
Keith Barrow28-Mar-10 5:58
professionalKeith Barrow28-Mar-10 5:58 
GeneralRe: where to put try catch block! Pin
Hussam Fattahi28-Mar-10 6:07
Hussam Fattahi28-Mar-10 6:07 
GeneralRe: where to put try catch block! Pin
Kevin McFarlane28-Mar-10 6:46
Kevin McFarlane28-Mar-10 6:46 
AnswerRe: where to put try catch block! Pin
Abhinav S28-Mar-10 6:12
Abhinav S28-Mar-10 6:12 
AnswerRe: where to put try catch block! Pin
PIEBALDconsult28-Mar-10 20:16
professionalPIEBALDconsult28-Mar-10 20:16 
QuestionUnable to change registry values Pin
Aseem Sharma27-Mar-10 22:18
Aseem Sharma27-Mar-10 22:18 
Hi all,

I have two users on my system. On one user I could edit the Key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies

But on second user I could not do so. Just getting the error message
"Cannot create value: Error writing to the registry.".
When I tried to change permissions on above key, I get error message
"Unable to save permission changes on Policies.Access is denied.".
I am wondering why same user cannot change its own above registry key. Can somebody help me please how to do so via both "Registry Editor" and via a program in C#?

Second help I need is How to change above key of a different user (I mean changing above key of user A from user B's logged-in session) programmatically (preferably via C#).

I am trying this on XP right now but will need to run my program on XP, VISTA and Windows 7.

If somebody knows how to go about it, please help me in that.

Thanks in Advance
Best Regards
Aseem
modified on Sunday, March 28, 2010 5:34 AM

AnswerRe: Unable to change registry values Pin
Richard MacCutchan27-Mar-10 22:35
mveRichard MacCutchan27-Mar-10 22:35 
QuestionAbout Entity Framework Pin
mmdullah27-Mar-10 20:15
mmdullah27-Mar-10 20:15 
AnswerRe: About Entity Framework Pin
PSK_27-Mar-10 21:02
PSK_27-Mar-10 21:02 
AnswerRe: About Entity Framework Pin
Not Active28-Mar-10 2:44
mentorNot Active28-Mar-10 2:44 
QuestionMobile Phone Dialer Pin
mmdullah27-Mar-10 20:10
mmdullah27-Mar-10 20:10 
AnswerRe: Mobile Phone Dialer Pin
Mustafa Ismail Mustafa28-Mar-10 1:50
Mustafa Ismail Mustafa28-Mar-10 1:50 
AnswerRe: Mobile Phone Dialer Pin
Eddy Vluggen28-Mar-10 5:27
professionalEddy Vluggen28-Mar-10 5:27 
Questionreduce image size Pin
Jassim Rahma27-Mar-10 13:55
Jassim Rahma27-Mar-10 13:55 
AnswerRe: reduce image size Pin
Eslam Afifi27-Mar-10 14:37
Eslam Afifi27-Mar-10 14:37 
GeneralRe: reduce image size Pin
Jassim Rahma28-Mar-10 12:54
Jassim Rahma28-Mar-10 12:54 
AnswerRe: reduce image size Pin
Luc Pattyn27-Mar-10 16:46
sitebuilderLuc Pattyn27-Mar-10 16:46 
GeneralRe: reduce image size Pin
Mycroft Holmes28-Mar-10 14:08
professionalMycroft Holmes28-Mar-10 14:08 
AnswerRe: reduce image size Pin
Luc Pattyn28-Mar-10 14:13
sitebuilderLuc Pattyn28-Mar-10 14:13 
GeneralRe: reduce image size Pin
Mycroft Holmes28-Mar-10 15:17
professionalMycroft Holmes28-Mar-10 15:17 
GeneralRe: reduce image size Pin
Luc Pattyn28-Mar-10 15:27
sitebuilderLuc Pattyn28-Mar-10 15:27 
QuestionXMLDocument for all MDI children Pin
Jassim Rahma27-Mar-10 13:52
Jassim Rahma27-Mar-10 13:52 
AnswerRe: XMLDocument for all MDI children Pin
Eslam Afifi27-Mar-10 14:42
Eslam Afifi27-Mar-10 14:42 

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.