Hi My problem is that i want to declare a function which is define in class file with tree view control so that how i add reference and how to pass the parameter with the functions in class file.
thank you.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ram Sagar MouryaPosted Feb 4, 2014, 3:56 AM
public class MyClass
{
public void method_1(string parameter1)
{
//some code
}
}
create the object of the class where ever you want to access.
MyClass obj = new MyClass();
then call the class member as follows
obj.method_1("some value");