how to execute a function from another class in vb.net

  • Thread starter Thread starter JC via .NET 247
  • Start date Start date
J

JC via .NET 247

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??
 
* 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??

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.
 
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
class 1 by clicking a button . Both classes have forms
created using design. Anyone can help??
 
Back
Top