restore minimized form?

G

Guest

I'm using VB 6.
I have a main form and a second form that is minimized and then accessed
repeatedly by clicking on the taskbar and then being minimized.
I have a checkbox on my main form that's supposed to allow the minimized
form to be restored to the screen after a certain command button is clicked.

I want to program an if statement in my main form in the command button's
code that checks if a checkbox on my main form is checked after a command
button on the main form is clicked, and then restores the minized second
form to the screen.

I made an if statement in the command button code:
if chk3ptm.value=true then schart.show
This worked if the second form had not yet been displayed and was being
displayed for the first time. But after the form had been minimized to the
taskbar, this code would not bring the second form back to the screen when
the command button on the main form with the code to show the second form was
clicked again.

How do I get the second form to display from the taskbar whenever the
command button on the main form with the .show method code in it is clicked?
 
D

Douglas J Steele

I'd suggest asking this in a newsgroup related to Visual Basic. This
newsgroup is for questions about Access, the database product that's part of
Office Professional.

While the VBA that Access uses is extremely similar to VB, there are
significant differences in the area of forms, so whatever answer you get
here may not be applicable for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top