Re: Form Disappears
- From: Mike Williams <gagamomo@xxxxxxxxxxx>
- Date: Sat, 8 Dec 2007 08:56:43 -0800 (PST)
On 8 Dec, 14:08, "Michael" <mQiQcQhQaQe...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
And I've tried:
frmVolume.Show [etc]
And none of them have worked.....
Using frmVolume.Show should work fine because it will automatically
show frmVolume at the fronm of the ZOrder. However, if you want to
reinforce that setting you can use:
frmVolume.Show
frmVolume.ZOrder 0 ' bring to front
However, having said that, the Form does not show on my own machine
either using the properties you posted, but that's because you have
positioned it off the display (at least on my own machine, and
possibly also on yours). You've got its Left property set to 14745
(twips) which on standard machines running at 15 twips per pixel is
983 pixels (and its Top property is a similarly large value). However,
judging by the properties of your main Form (frmMenu) you are running
this code on a 800 x 600 pixel display (if, as I assume, you've got
the main Form of such a size that it fills the entire screen). The
reason you cannot see frmVolume is therefore simply because it is
positioned off the edge of the display. Try (as a test) setting both
its Left and Top properties to zero and you should be able to see it.
Then change them to whatever values you really want.
By the way, setting the size of your Forms in the IDE in the way that
you are doing is not a good idea if you want your code to work
properly on other machines that might be running at a different screen
size (1024 x 768 or 1280 x 960 or whatever). You really should be
setting the size in code at run time (perhaps in the Form's Load
event) so that it fills the entire display on whatever machine it
happens to be running on.
Mike
.
- Follow-Ups:
- Re: Form Disappears
- From: Michael
- Re: Form Disappears
- References:
- Form Disappears
- From: Michael
- Re: Form Disappears
- From: Mike Williams
- Re: Form Disappears
- From: Michael
- Form Disappears
- Prev by Date: Re: Form Disappears
- Next by Date: Re: Form Disappears
- Previous by thread: Re: Form Disappears
- Next by thread: Re: Form Disappears
- Index(es):
Relevant Pages
|