I have a Form with some private properties
namespace TestApplication
{
public partial class ResultDialog : Form
{
String someText;
In a method, I have a method called SetupForm
label1.Text = someText;
I get an error message and it says
Error 1 An object reference is required for the non-static field,
method, or property
TestApplication.ResultDialog.someText’ X:\ResultDialog.cs 50 13 TestApplication
is the code in same file try out
Must sure that you are not setting value in static function