Rookie question on hiding and showing forms

Rookie question on hiding and showing forms

sbrusco
Collaborator Collaborator
296 Views
5 Replies
Message 1 of 6

Rookie question on hiding and showing forms

sbrusco
Collaborator
Collaborator
Hi All,

I know this must be a rookie question but here goes.

I have two forms, form "Main" calls form "Setter" with
frmSetter.Show
but i don't want to hide form "Main", i want it to remain showing. Then when i'm done with form "Setter" i want to close it and return control to form "Main" but if i just use
Unload frmSetter
the Setter form is unloaded and disappears, the Main form is still visible but the vba environment reopens.

How do i close the Setter form and return control to the Main form?

Thanks in advance,
Sal

0 Likes
297 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
where do you start execution of your app? sounds like you are running from
the VBA environment.

Main.Show?

wrote in message news:5750745@discussion.autodesk.com...
Hi All,

I know this must be a rookie question but here goes.

I have two forms, form "Main" calls form "Setter" with
frmSetter.Show
but i don't want to hide form "Main", i want it to remain showing. Then when
i'm done with form "Setter" i want to close it and return control to form
"Main" but if i just use
Unload frmSetter
the Setter form is unloaded and disappears, the Main form is still visible
but the vba environment reopens.

How do i close the Setter form and return control to the Main form?

Thanks in advance,
Sal
0 Likes
Message 3 of 6

sbrusco
Collaborator
Collaborator
Hi Steve,

You are correct that i'm starting from the vba environment.

I actually had frmMain.Show but it errored on me i guess since i was trying to Show a form that was already shown.

Sal

0 Likes
Message 4 of 6

Anonymous
Not applicable
As Steve eluded to it shouldn't do that if you start it from a custom command or toolbar.

Regards - Nathan
0 Likes
Message 5 of 6

sbrusco
Collaborator
Collaborator
As i often say to my wife, i'm not that bright of a person that i can pick up on things you "elude" to, you need to spell it out for me.

Thanks for the clarification.

0 Likes
Message 6 of 6

Anonymous
Not applicable
not a problem, sorry for the confusion.

wrote in message news:5751925@discussion.autodesk.com...
As i often say to my wife, i'm not that bright of a person that i can pick
up on things you "elude" to, you need to spell it out for me.

Thanks for the clarification.
0 Likes