473,406 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Base Form wont go away

[VB WinForm]
Lets say we build a BaseForm with several controls (as an
abstract form). Then we inherit this Base Form as
the "foundation" for a New WorkingForm.

Next we make an MDI Form and call the WorkingForm from
the MDI menu -"WorkingForm.Show". We immediately get an
unusual condition. Although the WorkingForm loads OK - -
- at the menu bar level of the MDI, we have two icons
showing two forms active (one for the WorkingForm and one
for the BaseForm)instead of just one as we would expect.

Next we Close the WorkingForm, but only one of the two
icons goes away, indicating that the BaseForm is still
loaded.

Next if we Open a WorkingForm again we now have three
icons, indicating that we have the WorkingForm and two
BaseForms. (If you continue to open and close forms
eventualy you crash with no more room)

My question is how do you (what code) close the base form
or even better cause it to act more like an abstract form
and not in the first place.
Jul 21 '05 #1
5 1654
try to make sure that only workingform gets mdiparent property refer to mdi
window and not baseform.

Rajesh patel

"Bob Ranck" <ra***@aqsi.net> wrote in message
news:08****************************@phx.gbl...
[VB WinForm]
Lets say we build a BaseForm with several controls (as an
abstract form). Then we inherit this Base Form as
the "foundation" for a New WorkingForm.

Next we make an MDI Form and call the WorkingForm from
the MDI menu -"WorkingForm.Show". We immediately get an
unusual condition. Although the WorkingForm loads OK - -
- at the menu bar level of the MDI, we have two icons
showing two forms active (one for the WorkingForm and one
for the BaseForm)instead of just one as we would expect.

Next we Close the WorkingForm, but only one of the two
icons goes away, indicating that the BaseForm is still
loaded.

Next if we Open a WorkingForm again we now have three
icons, indicating that we have the WorkingForm and two
BaseForms. (If you continue to open and close forms
eventualy you crash with no more room)

My question is how do you (what code) close the base form
or even better cause it to act more like an abstract form
and not in the first place.

Jul 21 '05 #2
I guess I thought that this( -"WorkingForm.Show") was
just a reference to the working Form perhaps I'm missing
something here.

Bob Ranck
WorkingForm
-----Original Message-----
try to make sure that only workingform gets mdiparent property refer to mdiwindow and not baseform.

Rajesh patel

"Bob Ranck" <ra***@aqsi.net> wrote in message
news:08****************************@phx.gbl...
[VB WinForm]
Lets say we build a BaseForm with several controls (as an abstract form). Then we inherit this Base Form as
the "foundation" for a New WorkingForm.

Next we make an MDI Form and call the WorkingForm from
the MDI menu -"WorkingForm.Show". We immediately get an unusual condition. Although the WorkingForm loads OK - - - at the menu bar level of the MDI, we have two icons
showing two forms active (one for the WorkingForm and one for the BaseForm)instead of just one as we would expect.
Next we Close the WorkingForm, but only one of the two
icons goes away, indicating that the BaseForm is still
loaded.

Next if we Open a WorkingForm again we now have three
icons, indicating that we have the WorkingForm and two
BaseForms. (If you continue to open and close forms
eventualy you crash with no more room)

My question is how do you (what code) close the base form or even better cause it to act more like an abstract form and not in the first place.

.

Jul 21 '05 #3
"Bob Ranck" <ra***@aqsi.net> wrote in news:085501c3926c$05280d20
$a*******@phx.gbl:
Next we make an MDI Form and call the WorkingForm from
the MDI menu -"WorkingForm.Show". We immediately get an
unusual condition. Although the WorkingForm loads OK - -


Can you show us the code you use to call the WorkingForm? Can you post a
simple example that illustrates the problem you are seeing?

Chris
Jul 21 '05 #4
Chris,

I tried sending you a direct email but got it back
with a bad address.

Bob
-----Original Message-----
"Bob Ranck" <ra***@aqsi.net> wrote in news:085501c3926c$05280d20$a*******@phx.gbl:
Next we make an MDI Form and call the WorkingForm from
the MDI menu -"WorkingForm.Show". We immediately get an unusual condition. Although the WorkingForm loads OK - -
Can you show us the code you use to call the

WorkingForm? Can you post asimple example that illustrates the problem you are seeing?
Chris
.

Jul 21 '05 #5
"Bob Ranck" <an*******@discussions.microsoft.com> wrote in
news:2a*****************************@phx.gbl:
I tried sending you a direct email but got it back
with a bad address.


Be sure to remove the "lunchmeat" from my email address. It's there to
prevent spammers from getting my e-mail
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: vijay | last post by:
Hello I wanted to understand a contradictory design of C++ class A {public: virtual void f(){ cout<<" base f"<<endl; } }; class B:public A {
5
by: Martin Magnusson | last post by:
Hi! I have a class with a private member which is a pointer to an abstract class, which looks something like this: class Agent { public: void Step( Base* newB ); private:
0
by: Bob Ranck | last post by:
More on earlier thread "Base Form that wont go away" Response to Chris Dunaway dunawayc@lunchmeatsbcglobal.net Here is the code snippet that calls the working form in the MDI. I actually...
4
by: Dino M. Buljubasic | last post by:
I have a form that contains 24 user controls representing hours (something like MS Outlook daily calendar). I would like to be able to mouse-down-drag-mouse-up select a region of the form so that...
5
by: Bob Ranck | last post by:
Lets say we build a BaseForm with several controls (as an abstract form). Then we inherit this Base Form as the "foundation" for a New WorkingForm. Next we make an MDI Form and call the...
11
by: jyck91 | last post by:
// Base Conversion // Aim: This program is to convert an inputted number // from base M into base N. Display the converted // number in base N. #include <stdio.h> #include <stdlib.h>...
6
by: Me | last post by:
I need to be able to acces non-virtual members of sublcasses via a base class pointer...and without the need for an explicit type cast. I thought a pure virtual getPtr() that acts as a type cast...
3
by: gm04030276 | last post by:
Hey. I was trying to write a page yesterday where an admin can register a user. I wrote some javascript so that when the forename or surnames are off focus, a script is run to take the forename and...
2
by: parez | last post by:
how do i put an abstract property ( or something that lets me know that derived class has not implemented that particular property ) in base form in my win forms project? if i make the base form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.