G
Guest
Hi all,
heres my code,
*******//////////////////////Starts
Here////////////////////////////////////*********
try
{
RegistryKey rKey =
Registry.LocalMachine.OpenSubKey("SOFTWARE\\AICM\\Position",true);
rKey.SetValue("SIZE","1");
rKey.Close();
MessageBox.Show("Done with 1st Key");
rKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\AICM\\TITLE",true);
rKey.SetValue("Title","Receiving from "+str_dname);
rKey.Close();
rKey = null;
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}
*******//////////////////////Ends
Here////////////////////////////////////*********
When i execute this code i get the error message,
"Object reference not set to an instgance of an object"
am not getting the first message box itself...........
what is this error and i would be happy if someone could answer....
with regards,
C.C.Chakkaradeep
heres my code,
*******//////////////////////Starts
Here////////////////////////////////////*********
try
{
RegistryKey rKey =
Registry.LocalMachine.OpenSubKey("SOFTWARE\\AICM\\Position",true);
rKey.SetValue("SIZE","1");
rKey.Close();
MessageBox.Show("Done with 1st Key");
rKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\AICM\\TITLE",true);
rKey.SetValue("Title","Receiving from "+str_dname);
rKey.Close();
rKey = null;
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}
*******//////////////////////Ends
Here////////////////////////////////////*********
When i execute this code i get the error message,
"Object reference not set to an instgance of an object"
am not getting the first message box itself...........
what is this error and i would be happy if someone could answer....
with regards,
C.C.Chakkaradeep