J JC via .NET 247 Apr 23, 2004 #1 Hi all, I want to execute a function in class 2 from class 1 by clicking a button . Both classes have forms created using design. Anyone can help??
Hi all, I want to execute a function in class 2 from class 1 by clicking a button . Both classes have forms created using design. Anyone can help??
H Herfried K. Wagner [MVP] Apr 23, 2004 #2 * JC via .NET 247 said: Hi all, I want to execute a function in class 2 from class 1 by clicking a button . Both classes have forms created using design. Anyone can help?? Click to expand... You need a reference to the instance to the other form. There is no general answer to this question, so be more specific to make it easier to find an appropriate solution.
* JC via .NET 247 said: Hi all, I want to execute a function in class 2 from class 1 by clicking a button . Both classes have forms created using design. Anyone can help?? Click to expand... You need a reference to the instance to the other form. There is no general answer to this question, so be more specific to make it easier to find an appropriate solution.
G Guest Apr 23, 2004 #3 u need to create an instance of class 2 in class 1 then call the instance.functionname on the button click event ok -----Original Message----- Hi all, I want to execute a function in class 2 from Click to expand... class 1 by clicking a button . Both classes have forms created using design. Anyone can help??
u need to create an instance of class 2 in class 1 then call the instance.functionname on the button click event ok -----Original Message----- Hi all, I want to execute a function in class 2 from Click to expand... class 1 by clicking a button . Both classes have forms created using design. Anyone can help??