Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

Form won't unhide

I set a forms visible property to false while the MDI form resizes then set its visible property to true and it won't reappear.
How do I make it show.
0
gregbinns
Asked:
gregbinns
  • 4
  • 3
  • 2
  • +4
1 Solution
 
DanielBlaisCommented:
try

.show method

or .refresh
0
 
CatouchCommented:
try adding a doevents under the from.visible=true
or try form.show instead

Hope it helps
0
 
VincentLawlorCommented:
Use this instead

Form.Hide
and
Form.Show

Vin.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
rkot2000Commented:
you may try
form1.visible=true
form1.ZOrder 0
0
 
DennisBorgCommented:
Greg:

Are you sure that the form isn't simply outside the display area of the MDI Parent Form? You did mention that you are resizing the MDI Parent. When all is said and done, are you getting scrollbars on the MDI Parent Form?

The form may be visible, but just "off the screen". You may have to reposition your form. After resizing your MDI Parent, try setting the Left and Top properties of your child form to zero (0).

(I am assuming that the other forms are child windows of the MDI parent window)


-Dennis Borg
0
 
gregbinnsAuthor Commented:
Thank you for the suggestions but unfortunately none of them work.  
This is driving me nuts!!!!
0
 
DennisBorgCommented:
Greg:

Please show us the code which hides the form, resizes the MDI Parent, and reshows the form.

-Dennis Borg
0
 
glass_cookieCommented:
Hi!

REMOVE any line that does something like:

Me.Hide
FormWnatever.Hide

Unload Me
Unload FormWhatever

by commenting it out.

Then, slowly add those lines back one by one and see if after adding any back, your app still works well or not.

Upon adding back one of those lines, and your app comes up with that problem, chances are, that's the line that causes the error.

That's it!

glass cookie : )
0
 
gregbinnsAuthor Commented:
Hi
I have removed all code except frmF.visible=False & True or frmF.Hide & show and it still doesn't work.  The form will not reappear.
0
 
DennisBorgCommented:
Greg:

Are you sure that the form isn't simply outside the display area of the MDI Parent Form? You did mention
that you are resizing the MDI Parent. When all is said and done, are you getting scrollbars on the MDI
Parent Form?

The form may be visible, but just "off the screen". You may have to reposition your form. After resizing
your MDI Parent, try setting the Left and Top properties of your child form to zero (0).

(I am assuming that the other forms are child windows of the MDI parent window)


HAVE YOU CHECKED THE LEFT/TOP PROPERTIES, OR SET THEM BOTH TO ZERO (0)?


Please show us the code which hides the form, resizes the MDI Parent, and reshows the form.

-Dennis Borg  
0
 
glass_cookieCommented:
Hi!

Considering what DennisBorg has mentioned, to check if your form is really visible or not, add this code to the form in a timer with intrval set to 2000, enabled = true:

Msgbox "Form Visible Property = " + Me.Visible

That's it!

glass cookie : )
0
 
gregbinnsAuthor Commented:
Your answer enabled me to find the solution.
If a form border is set to none and maximized and you hide it, it will not reappear.
Thanks
0
 
DennisBorgCommented:
Greg:

>If a form border is set to none and maximized and you
>hide it, it will not reappear.


You might see if there is a SP (Service Pack) available for your version of VB.

I just tried this and the form reappeared just fine. I'm using VB6 SP4.

-Dennis Borg
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now