Click here to Skip to main content
15,848,252 members
Home / Discussions / C#
   

C#

 
GeneralRe: File Permission Pin
harold aptroot12-Sep-09 6:31
harold aptroot12-Sep-09 6:31 
GeneralRe: File Permission Pin
OriginalGriff12-Sep-09 6:41
mveOriginalGriff12-Sep-09 6:41 
GeneralRe: File Permission Pin
DarkSorrow3812-Sep-09 6:45
DarkSorrow3812-Sep-09 6:45 
GeneralRe: File Permission Pin
Luc Pattyn12-Sep-09 6:56
sitebuilderLuc Pattyn12-Sep-09 6:56 
QuestionLooking for calendar control like outlook 2007. Pin
hdv21212-Sep-09 4:25
hdv21212-Sep-09 4:25 
AnswerRe: Looking for calendar control like outlook 2007. Pin
Henry Minute12-Sep-09 6:25
Henry Minute12-Sep-09 6:25 
AnswerRe: Looking for calendar control like outlook 2007. Pin
April Fans22-Sep-09 17:12
April Fans22-Sep-09 17:12 
QuestionRegistry Editing Pin
DarkSorrow3812-Sep-09 3:54
DarkSorrow3812-Sep-09 3:54 
I am trying a program to add keys, however i am getting an exception saying
System.UnauthorizedAccessException : Cannot write to registry key
You can consider me beginner in registry editing issue.
using System;
using System.Security.Permissions ;
using Microsoft.Win32;

public class RegistryEditor
{
    public static void Main()
    {
        try
        {
            RegistryKey hkcu = Registry.CurrentUser;
            RegistryKey hkSoftware = hkcu.OpenSubKey("Software");
            RegistryKey hkMicrosoft = hkSoftware.OpenSubKey("Microsoft");
            RegistryKey hkIshaan = hkSoftware.CreateSubKey("Test1");
            hkIshaan.SetValue("Name", "Ishaan");
            hkIshaan.SetValue("Age", "20");
            hkIshaan.Close();
            hkSoftware.Close();
            hkcu.Close();
        }
        catch (Exception ex)
        {
            Console.Write(ex.ToString());
        }
    }
}


Banking establishment are more dangerous then standing armies.
AnswerRe: Registry Editing Pin
Henry Minute12-Sep-09 4:28
Henry Minute12-Sep-09 4:28 
GeneralRe: Registry Editing Pin
DarkSorrow3812-Sep-09 4:50
DarkSorrow3812-Sep-09 4:50 
GeneralRe: Registry Editing Pin
Henry Minute12-Sep-09 6:20
Henry Minute12-Sep-09 6:20 
QuestionDataGridView Binding.(Takes along time to load) Pin
Said Ali Jalali12-Sep-09 3:47
Said Ali Jalali12-Sep-09 3:47 
AnswerRe: DataGridView Binding.(Takes along time to load) Pin
Henry Minute12-Sep-09 4:35
Henry Minute12-Sep-09 4:35 
QuestionUpdateProgress Pin
4anusha412-Sep-09 2:02
4anusha412-Sep-09 2:02 
AnswerRe: UpdateProgress Pin
Henry Minute12-Sep-09 2:53
Henry Minute12-Sep-09 2:53 
Questioncheckedlistbox in c# Pin
billy dev12-Sep-09 1:35
billy dev12-Sep-09 1:35 
AnswerRe: checkedlistbox in c# Pin
Eddy Vluggen12-Sep-09 2:48
professionalEddy Vluggen12-Sep-09 2:48 
AnswerRe: checkedlistbox in c# Pin
Henry Minute12-Sep-09 2:50
Henry Minute12-Sep-09 2:50 
AnswerRe: checkedlistbox in c# Pin
Alan N12-Sep-09 4:55
Alan N12-Sep-09 4:55 
AnswerRe: checkedlistbox in c# Pin
April Fans22-Sep-09 17:14
April Fans22-Sep-09 17:14 
QuestionApplying Security for the Application Pin
vijaylumar12-Sep-09 1:32
vijaylumar12-Sep-09 1:32 
AnswerRe: Applying Security for the Application Pin
Eddy Vluggen12-Sep-09 2:51
professionalEddy Vluggen12-Sep-09 2:51 
QuestionDirection of increasing a LabelText ? Pin
Mohammad Dayyan12-Sep-09 1:10
Mohammad Dayyan12-Sep-09 1:10 
AnswerRe: Direction of increasing a LabelText ? Pin
Manas Bhardwaj12-Sep-09 1:16
professionalManas Bhardwaj12-Sep-09 1:16 
GeneralRe: Direction of increasing a LabelText ? Pin
Mohammad Dayyan12-Sep-09 1:42
Mohammad Dayyan12-Sep-09 1: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.