473,320 Members | 2,024 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,320 software developers and data experts.

MDI Form Strange Behaviour

VJ
I have a MDI application with Child windows... On one specfic child window
if I click a Toolbar (part of the child window), I launch a Window that will
be child of the MDI and it comes up maxmized.. After the window opens.. I
get a double Control box, 2 sets of MAX,MIN and Close button. Anybody see
this before.. I don't do any thing special... just .Show() and have set the
Maxmimized property set to true.

Thanks
VJ
Nov 21 '05 #1
3 1152
Hi VJ,

Very strange; never saw that. Is it possible that the child you are
creating is a child and grandchild at the same time, and thus the double
controls?

HTH,

Bernie Yaeger

"VJ" <vi********@yahoo.com> wrote in message
news:eO**************@TK2MSFTNGP10.phx.gbl...
I have a MDI application with Child windows... On one specfic child window
if I click a Toolbar (part of the child window), I launch a Window that will be child of the MDI and it comes up maxmized.. After the window opens.. I
get a double Control box, 2 sets of MAX,MIN and Close button. Anybody see
this before.. I don't do any thing special... just .Show() and have set the Maxmimized property set to true.

Thanks
VJ

Nov 21 '05 #2
VJ
Hi..

Yea you are right.. there is a additional instance of the First child. But I
don't see it in instance or as a object. It just happens only for the first
time button click, if I close all windows & repeat the process there are no
duplicate controls. But, if Shutdown the application and start again, it
happens for the first click

How do I solve it?

VJ
"VJ" <vi********@yahoo.com> wrote in message
news:eO**************@TK2MSFTNGP10.phx.gbl...
I have a MDI application with Child windows... On one specfic child window
if I click a Toolbar (part of the child window), I launch a Window that will be child of the MDI and it comes up maxmized.. After the window opens.. I
get a double Control box, 2 sets of MAX,MIN and Close button. Anybody see
this before.. I don't do any thing special... just .Show() and have set the Maxmimized property set to true.

Thanks
VJ

Nov 21 '05 #3
Hi VJ,

You might want to try setting the form to visible = false, opening it,
closing it, then setting it to true and reopening it. You could do this
with a global variable that begins false and is changed to true after the
first event. The each time to form opens it can refer to the global
variable, and the form would be visible = true - and open only once - if the
global variable is set to true.

HTH,

Bernie Yaeger

"VJ" <vi********@yahoo.com> wrote in message
news:eN****************@TK2MSFTNGP11.phx.gbl...
Hi..

Yea you are right.. there is a additional instance of the First child. But I don't see it in instance or as a object. It just happens only for the first time button click, if I close all windows & repeat the process there are no duplicate controls. But, if Shutdown the application and start again, it
happens for the first click

How do I solve it?

VJ
"VJ" <vi********@yahoo.com> wrote in message
news:eO**************@TK2MSFTNGP10.phx.gbl...
I have a MDI application with Child windows... On one specfic child window if I click a Toolbar (part of the child window), I launch a Window that

will
be child of the MDI and it comes up maxmized.. After the window opens.. I get a double Control box, 2 sets of MAX,MIN and Close button. Anybody see this before.. I don't do any thing special... just .Show() and have set

the
Maxmimized property set to true.

Thanks
VJ


Nov 21 '05 #4

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

Similar topics

2
by: Paul Drummond | last post by:
Hi all, I am developing software for Linux Redhat9 and I have noticed some very strange behaviour when throwing exceptions within a shared library. All our exceptions are derived from...
5
by: Steve Strik | last post by:
My Problem: I have created a database here at work that is exhibiting some very strange behaviour. Essentially the database is structured in a manner where one table is a master record table...
3
by: Sebastian C. | last post by:
Hello everybody Since I upgraded my Office XP Professional to SP3 I got strange behaviour. Pieces of code which works for 3 years now are suddenly stop to work properly. I have Office XP...
3
by: Cybertof | last post by:
Hello, I have a strange behavior. On a MyForm form, i have a button with this code ----> MessageBox.Show("hello"); When i start the project with this single form ----> Application.Run(new...
6
by: John Dann | last post by:
I have a main form and then a secondary form that allows entry of some settings. I want to show the secondary form modally (I guess using ..ShowDialog), but I'd like it shown against the background...
0
by: EMW | last post by:
I am busy with a program for my pocket pc. but since it is still compact famework, I'll post this here too, because I'm very much in need for some help with this: I have one form which is my...
2
by: Shawn H | last post by:
Hi guys, I'm experiencing this really strange issue with a HTML form, because no data gets posted. Basically, everything is written in ASP. Firstly, a user fills in an online (ASP) form, and...
2
sgeklor
by: sgeklor | last post by:
Hi guys, I have a panel on a form and at runtime I create some controls on the panel. Then, also during runtime I want to clear the panel of all of its controls. The basic way to do this is with...
8
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples....
6
by: Wayne | last post by:
I have a database that has been in use for a long period of time as an mde without giving any problems. I've just started making some changes to the main form which consists of a continuous form...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.