Saving and opening forms in Visual Basic 6

Tags:
VB 6.0
Visual Basic
Visual Basic 6.0
Visual Basic developers
how to save/open a form in vb6 using a command button?

Answer Wiki

Thanks. We'll let you know when a new response is added.

To open a form, you would use the Show method:

<pre>Private Sub Command1_Click()
Form2.Show
End Sub</pre>

To hide (without unloading) a form:

<pre>Private Sub Command2_Click()
Form2.Hide
End Sub</pre>

To unload a form:

<pre>Unload Form2</pre>

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Shailu7
    teach me vb step in step procedure.
    20 pointsBadges:
    report
  • Shailu7
    my id shailu.sha18@gmail.com
    20 pointsBadges:
    report
  • Subhendu Sen
    @Shailu7, please create a new question and let it show for other members under Ask a Question tag. and also read the Tips for the same.
    27,370 pointsBadges:
    report
  • AmITgradugatestudentbefore
    I always traying to save the recored on Access data base, connecting with VB 6 interface vai Adodc, but only the save commaned doesn't work, who can help?
    10 pointsBadges:
    report
  • Koohiisan
    @AmITgradug Please create a new topic to deal with your question, and we'd be glad to help! :)
    5,020 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following