Click here to Skip to main content
15,915,019 members
Home / Discussions / C#
   

C#

 
AnswerRe: wpf OR windows forms ??? Pin
Pete O'Hanlon16-Jan-13 4:26
mvePete O'Hanlon16-Jan-13 4:26 
AnswerRe: wpf OR windows forms ??? Pin
Dave Kreskowiak16-Jan-13 4:57
mveDave Kreskowiak16-Jan-13 4:57 
AnswerRe: wpf OR windows forms ??? Pin
Thomas Daniels16-Jan-13 5:26
mentorThomas Daniels16-Jan-13 5:26 
AnswerRe: wpf OR windows forms ??? Pin
Abhinav S16-Jan-13 7:19
Abhinav S16-Jan-13 7:19 
AnswerRe: wpf OR windows forms ??? Pin
Mohamad Shahmardan16-Jan-13 8:26
Mohamad Shahmardan16-Jan-13 8:26 
AnswerRe: wpf OR windows forms ??? Pin
PIEBALDconsult16-Jan-13 11:16
mvePIEBALDconsult16-Jan-13 11:16 
QuestionWMI causing Access is denied Pin
vanikanc16-Jan-13 3:36
vanikanc16-Jan-13 3:36 
AnswerRe: WMI causing Access is denied Pin
Dave Kreskowiak16-Jan-13 3:41
mveDave Kreskowiak16-Jan-13 3:41 
GeneralRe: WMI causing Access is denied Pin
vanikanc16-Jan-13 3:56
vanikanc16-Jan-13 3:56 
GeneralRe: WMI causing Access is denied Pin
vanikanc16-Jan-13 4:31
vanikanc16-Jan-13 4:31 
GeneralRe: WMI causing Access is denied Pin
Dave Kreskowiak16-Jan-13 4:55
mveDave Kreskowiak16-Jan-13 4:55 
GeneralRe: WMI causing Access is denied Pin
Dave Kreskowiak16-Jan-13 4:57
mveDave Kreskowiak16-Jan-13 4:57 
QuestionProblem getting data from a stored procedure (Oracle) Pin
GDavy16-Jan-13 3:11
GDavy16-Jan-13 3:11 
AnswerRe: Problem getting data from a stored procedure (Oracle) Pin
micke.andersson28-Jan-13 3:39
micke.andersson28-Jan-13 3:39 
QuestionC#, Windows 8 UAC, and registry edit Pin
clover4leaves16-Jan-13 2:46
clover4leaves16-Jan-13 2:46 
AnswerRe: C#, Windows 8 UAC, and registry edit Pin
jschell16-Jan-13 9:19
jschell16-Jan-13 9:19 
GeneralRe: C#, Windows 8 UAC, and registry edit Pin
clover4leaves16-Jan-13 14:00
clover4leaves16-Jan-13 14:00 
GeneralRe: C#, Windows 8 UAC, and registry edit Pin
Jonathan C Dickinson17-Jan-13 2:00
Jonathan C Dickinson17-Jan-13 2:00 
You might be trying to modify TrustedInstaller keys. TrustedInstaller is a special user that has power beyond that of Administrator(s). You will need to take ownership of the key in order to work around that (completely ruining the security on your user's machine). If you need to change keys owned by TrustedInstaller you are doing something very very wrong.

If you are not trying to modify TrustedInstaller-owned keys you probably need to indicate which permissions you want when you open the key:

using (var key = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Foo\\Bar", RegistryKeyPermissionCheck.ReadWriteSubTree))
{
}
// .. or ..
using (var key = Registry.LocalMachine.CreateSubKey("SOFTWARE\\Foo\\Bar", RegistryKeyPermissionCheck.ReadWriteSubTree))
{
}

He who asks a question is a fool for five minutes. He who does not ask a question remains a fool forever. [Chinese Proverb]

Jonathan C Dickinson (C# Software Engineer)

GeneralRe: C#, Windows 8 UAC, and registry edit Pin
clover4leaves17-Jan-13 4:09
clover4leaves17-Jan-13 4:09 
QuestionCombo box selection event Pin
Trishal15-Jan-13 19:59
Trishal15-Jan-13 19:59 
AnswerRe: Combo box selection event Pin
Abhinav S15-Jan-13 21:38
Abhinav S15-Jan-13 21:38 
AnswerRe: Combo box selection event Pin
Trishal15-Jan-13 22:37
Trishal15-Jan-13 22:37 
GeneralRe: Combo box selection event Pin
Richard MacCutchan15-Jan-13 22:50
mveRichard MacCutchan15-Jan-13 22:50 
GeneralRe: Combo box selection event Pin
Trishal15-Jan-13 23:22
Trishal15-Jan-13 23:22 
GeneralRe: Combo box selection event Pin
Richard MacCutchan15-Jan-13 23:35
mveRichard MacCutchan15-Jan-13 23:35 

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.