Print Page | Close Window

Tabbed MDI bug?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1717
Printed Date: 15 June 2024 at 4:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tabbed MDI bug?
Posted By: TobiasWeltner
Subject: Tabbed MDI bug?
Date Posted: 28 January 2005 at 5:45am

I created a visual studio like tabbed MDI app and discovered some strange behavior that might be a bug:

when I open a couple of MDI childs and then close some of them again, the VB forms collection still contains some "ghost" windows for each of them. This way, those strange windows grow and grow because they only seem to be discarded when the app closes.

Is that something I need to handle in code, or is it really the controls responsibility?

To reproduce do the following:

Create child MDI windows and assign a tag to each form, i.e. childform.tag=1.

Then close some of them again.

Then look for windows with the assigned tag:

for each form in forms

if form.tag=1 then c=c+1

next

debug.print c

In my case, c constantly grows. Can you reproduce this?

 

 




Replies:
Posted By: TobiasWeltner
Date Posted: 28 January 2005 at 5:48am
must be something with my app... just checked with your visual studio example. This does not show the strange behavior. Never mind, I'll dig into it further...


Posted By: TobiasWeltner
Date Posted: 28 January 2005 at 5:56am

Hmm:

I used a tabcontrol and assigned some forms to the tabs.

I wasn't aware that I was responsible to actually UNLOAD those forms when unloading the form that holds the tabcontrol.

Shouldn't that be done by the tabcontrol itself? At least this was the reason for the strangely lingering ghost windows. They were abandoned forms that used to be displayed on the tabs.

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net