H
HKSHK
Hello all,
I have this problem:
I have 2 forms. Form1 contains a checkbox, which I want to uncheck
from Form2.
I set the checkbox to be "public static" and when I try to change a
property (e.g. Form1.checkBox1.Text="Sample") I get this error:
An unhandled exception of type 'System.NullReferenceException'
occurred in WindowsApplication2.exe
Additional information: Object reference not set to an instance of an
object.
If I set the checkbox to "public" only, it is not accessible from
Form2.
What do I have do change?
Thanks in advance.
Kind Regards,
HKSHK
I have this problem:
I have 2 forms. Form1 contains a checkbox, which I want to uncheck
from Form2.
I set the checkbox to be "public static" and when I try to change a
property (e.g. Form1.checkBox1.Text="Sample") I get this error:
An unhandled exception of type 'System.NullReferenceException'
occurred in WindowsApplication2.exe
Additional information: Object reference not set to an instance of an
object.
If I set the checkbox to "public" only, it is not accessible from
Form2.
What do I have do change?
Thanks in advance.
Kind Regards,
HKSHK