B
Bilo
Hi,
I have 3 classes
A , B ,C
A makes an object of B with
B b = new B();
B makes an object ob C with
C c= new C();
A and C are WindowsForms
in C i have a listbox with a MouseUp event. when something is selected and
mouse is up then
B must do his method method1() . I dont want to make the method1() static
because than nearly everything becomes static
but how can I make it in class C without making a new object of B?
I have 3 classes
A , B ,C
A makes an object of B with
B b = new B();
B makes an object ob C with
C c= new C();
A and C are WindowsForms
in C i have a listbox with a MouseUp event. when something is selected and
mouse is up then
B must do his method method1() . I dont want to make the method1() static
because than nearly everything becomes static
but how can I make it in class C without making a new object of B?