General discussion

Locked

Perform Action In Form1 When Form2 Exits

By InletGroveHS ·
(Visual Basic .NET)

I think this should be fairly simple, but I don't know the right commands for it. What I want to do is have Form1 be the main program, when you click a button it opens Form2. The user then inputs information into Form2 and clicks a "Save" button.

When Form2 closes, I want Form1 to run some specific code. How do I do this?

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by john_wills In reply to Perform Action In Form1 W ...

Put the code in the Close event of Form2.

Collapse -

by InletGroveHS In reply to

But I need to run a sub to update some information on Form1.

Collapse -

by john_wills In reply to Perform Action In Form1 W ...

You can update the information on Form1 by referring to Form1 in another module, e.g. [Form1].itemonform1.source="Select..."

Collapse -

by InletGroveHS In reply to

Found a way to do it.... Thanks anyways...

Collapse -

by InletGroveHS In reply to Perform Action In Form1 W ...

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums