T
tshad
This makes not sense at all.
I created a textbox on my screen and set the name property to "Status".
If I double click on the textbox, it goes to the code page and shows:
private void Status_TextChanged(object sender, EventArgs e)
{
}
So obviously, it sees the object.
But in my code I have:
Status.Text += String.Format("Opening
{0}\n",Path.GetFileName(strFile));
And I get the following error:
An object reference is required for the nonstatic field, method, or property
'FileProcess.'FileProcess.Status'
How can that be????
In my FileProcess designer page I have:
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox Status;
private System.Windows.Forms.Label label1;
So obviously the object is there.
Thanks,
Tom
I created a textbox on my screen and set the name property to "Status".
If I double click on the textbox, it goes to the code page and shows:
private void Status_TextChanged(object sender, EventArgs e)
{
}
So obviously, it sees the object.
But in my code I have:
Status.Text += String.Format("Opening
{0}\n",Path.GetFileName(strFile));
And I get the following error:
An object reference is required for the nonstatic field, method, or property
'FileProcess.'FileProcess.Status'
How can that be????
In my FileProcess designer page I have:
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox Status;
private System.Windows.Forms.Label label1;
So obviously the object is there.
Thanks,
Tom