My method is dumb and lacking human intuition.

Iketh

Active member
Joined
Nov 23, 2009
Messages
40
Programming Experience
Beginner
Hello! In design mode, I have 2 forms, Main and Profile. Both have many controls on them. When executed, the Profile form is duplicated 4 times and named Profile1 through 4. Among the controls on these forms are 3 buttons that copy the selections from the other 3 forms to the one that had the button pressed.

How do I accomplish this? I don't understand how to let the method know which form is getting it's buttons pushed so it knows what form to copy...
 
Last edited:
Use Events, raise them in the click event on the profile forms. The main form will have to subscribe to them via an addhandler statement when you create the profile forms. So when you click on a button this event, which can pass data, is sent to your routed sub on the main form for processing. Events in VB.Net HTH
 
Last edited:
Back
Top