Re: Why would a VB6 Form refuse to appear in a 'WINDOWLIST' MENU DISPLAY???

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi, me again. I should say that there has been a *slight* advancement
since I wrote my original note a few hours ago.

I used to have the following line in frmMyCrazyForm's 'Load' event:

Me.WindowState = vbMaximized

....when that line was located in frmMyCrazyForm's Load event, it never
worked; the result was frmMyCrazyForm only occupied about 3/4 of the
screen and could be moved about the screen by 'grabbing' the upper
blue window caption bar and dragging the window arround. So I
commented out that line in frmMyCrazyForm's Load event. frmMyCrazyForm
loaded the same way without that line.

Now, imagine on another one of my Forms there is a button that when
clicked, causes frmMyCrazyForm to Load. I'll call this other form
frmLaunchPad.

I put the following lines in the procedure in ***frmLaunchPad*** which
causes frmMyCrazyForm to be loaded:

Load frmMyCrazyForm
frmMyCrazyForm.Windowstate = vbMaximized

....Well, when frmMyCrazyForm's Windowstate was dictated from
frmLaunchPad, frmMyCrazyForm finally appeared on screen Maximized! It
even appeared as item under the 'WindowList' menu! Hooray!

Now for the bad news: If I clicked the 'WindowList' to return to
frmLaunchPad, then used frmLaunchPad's WindowList menu item to switch
back to frmMyCrazyForm... frmMyCrazyForm instantly became the smaller,
'move-able' window that I had trouble with originally! Once
frmMyCrazyForm was back in this state, there was no getting it to
Maximize again (it didn't even have a Maximize button in the upper
right corner anymore; it didn't have any of those buttons that
normally appear in the upper right corner of a window!)

I'm afraid this new message from me may just confuse matters all the
more, but in case it doesn't, I still look forward to any/all feedback
someone would care to provide.

Thanks again.


On Sun, 14 May 2006 00:18:23 GMT, Alan Mailer
<clarityassoc@xxxxxxxxxxxxx> wrote:

In VB6, under what circumstances would a 'maximized' non-modal Form
refuse to show up when I click a 'WindowList' menu item?

I'm having a few issues with this particular form, primarily the one
I've asked about above. But something has clearly gone WRONG with
this particular Form.

This crazy form has been designated as an 'MDIChild', but (unlike
similarly designated forms in my app) this form will never open in a
Maximized WindowState unless I specifically tell it to do so in hard
code. When I do this though, the Form is never listed as one of the
Windows under any loaded form's "Windows" (WindowList) menu item. (For
what it's worth, all of my other loaded forms do successfully appear
listed in the Window 'List' menu items).

I have MANY forms in this particular VB6 app, and none of the others
behave this way. I don't even know where to START looking.

Does anyone have any idea what I've done wrong here?

Thanks in advance.
.


Quantcast