Link to home
Start Free TrialLog in
Avatar of SheldonC
SheldonCFlag for Saint Kitts and Nevis

asked on

VB .Net Form Instances

I am creating an application that would allow the user to save Employee records. The user can have multiple employee forms open at the same time. I have a save button at the bottom of the form but I also want to give the user the option of clicking a save button on the menu strip.

How do I code the save button to save for the form instance that has focus?
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SheldonC

ASKER

I am not quite sure what you are referring to as my mdi child type. I am pretty much a beginner so I am learning as I go. :)
If your MdiChildren are instances of Form2, then you'd replace YouMdiChildTypeHere with Form2.

Basically you need to place the NAME (type) of your MdiChildren in there.