Soundmaster
New member
- Joined
- Mar 8, 2008
- Messages
- 2
- Programming Experience
- Beginner
Hello,
I'm new to vb.net and i have a problem.
I have created a form (form1) with 2 buttons
If i press button1 then it opens another form (Form2) With a button called Go
If i press Button2 then it opens also the form (Form2) with off course the same button called Go
I want to trigger a event on the button [Go] based on what is pressed in Form1 and witch button is selected
so i like to do this:
Action:
Form1>Button1>Form2>Button Go>Event x
and
Form1>Button1>Forum2>Button Go>Event y
So i have serveral events on the button [Go] and it triggers the events based om the previous form called on the button.
I think i have to do this with a Class and then inherits but i don't know how to do this. Can someone give me an example how to do this. Please Help.
Many thanks
A desperate "Beginner of vb.net"
I'm new to vb.net and i have a problem.
I have created a form (form1) with 2 buttons
If i press button1 then it opens another form (Form2) With a button called Go
If i press Button2 then it opens also the form (Form2) with off course the same button called Go
I want to trigger a event on the button [Go] based on what is pressed in Form1 and witch button is selected
so i like to do this:
Action:
Form1>Button1>Form2>Button Go>Event x
and
Form1>Button1>Forum2>Button Go>Event y
So i have serveral events on the button [Go] and it triggers the events based om the previous form called on the button.
I think i have to do this with a Class and then inherits but i don't know how to do this. Can someone give me an example how to do this. Please Help.
Many thanks
A desperate "Beginner of vb.net"