Regarding the scope when working with forms in .NET C#
From: GP (GP_at_discussions.microsoft.com)
Date: 06/17/04
- Next message: Mike Labosh: "Re: Visual Studio 2003 .. frustrations"
- Previous message: Sahil Malik: "Re: Visual Studio 2003 .. frustrations"
- Next in thread: John Saunders: "Re: Regarding the scope when working with forms in .NET C#"
- Reply: John Saunders: "Re: Regarding the scope when working with forms in .NET C#"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Jun 2004 15:27:02 -0700
I am having the scope problem,I have two forms form1 and form2.
Form1 has two textboxes and they is a procedure called
public void callme()
{
text1.Text="Check"
}
In form2 when I try to reference this callme ,it say it need to be static procedure.
but when it's static .I get a error text1.text is nonstatic member reference.
How can I call a procedure from form2 to form1 that has reference to the controls .
Can some please help me in this regards,
Thanks
GP
- Next message: Mike Labosh: "Re: Visual Studio 2003 .. frustrations"
- Previous message: Sahil Malik: "Re: Visual Studio 2003 .. frustrations"
- Next in thread: John Saunders: "Re: Regarding the scope when working with forms in .NET C#"
- Reply: John Saunders: "Re: Regarding the scope when working with forms in .NET C#"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|