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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ram Sagar Mourya14 reputationPosted Feb 3, 2014, 10:56 PM EST
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");