0

I have a classe with use a static RegistryKey class and I created another class herance of father class. But class son not is renderized.

The father class contain:

object value = Program.RegKey.GetValue("prgtfpto");

Error loading design son class: "To prevent possible data loss before loading the design ..."

"Object reference not set to an instance of an object..."

I try to do this:

object value = new object():
value = Program.RegKey.GetValue("prgtfpto");

But the error continued.

Sorry my english.

Soner Gönül
  • 91,172
  • 101
  • 184
  • 324
  • From the documentation for RegistryKey.GetValue: Retrieves the value associated with the specified name. Returns null if the name/value pair does not exist in the registry. – Derek W Jun 13 '15 at 15:01
  • What is `Program` ? Where are the `Parent` and `Child` classes ? We can't work with our eyes blinded and guess where is the problem. – Orel Eraki Jun 13 '15 at 15:02

0 Answers0