473,396 Members | 1,892 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,396 software developers and data experts.

MDI Application - some weird stuff

I have an MDI parent application with several forms inside it.
As the user switches between forms, I am forcing a maximize to keep it
filling up the parent window.

When the user has one particular form displayed, sometimes the screen really
gets messed up.
It gets into this weird mode where the child form is still maximized inside
the parent, but it only takes up half the window! The bottom half is gray,
and only the top half shows the form content.

All the user has to do to make this happen is minimize and then restore the
MDI parent window.

Has anybody seen this before? Is there an event for when someone restores
the application from minimized?

Thanks for your help!
Nov 20 '05 #1
4 1284
* "BradC" <br********@yahoo.com> scripsit:
Has anybody seen this before? Is there an event for when someone restores
the application from minimized?


You can check that in the form's 'Resize' event handler.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
The problem I posted 1/15/2004 7:43 AM entitled, "App Loses Focus Using Hide Method" sounds very close to the problem you are having. I wish someone would give me a response because it could possibly help you too - keep an eye on it. I did run 1 test where I set the main form back from maximized to its initial size before the hide method was executed and I noticed that part of the other app was on the desktop and part was overlaying some of my main form. The part on the destop continued to execute as the part on my main form remained static - now that's WEIRD STUFF.

Good Luck,
Steve Blumenstein
Nov 20 '05 #3
* "BradC" <br********@yahoo.com> scripsit:
Let's see if this is the same problem. I took some screenshots, Before and
After.

The WEIRDEST thing is that once you encounter this problem, if you manually
resize the main form even a tiny bit, it snaps back to normal.


Really this colors *shocked*?!

Maybe it's a problem with the graphics driver. Does this behavior occur
on other machines too?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Yep. Occurs on development machines, workstations, and metaframe deployment.

I did determine that doing a
me.height -= 1
me.height += 1

will fix the problem and clear the gray, but only if it is not maximized,
and I've also discovered that putting the above code in the RESIZE event is
a horrible, horrible idea. :-)

Any other ideas? Its only this one form, too. Other child forms don't cause
this problem.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uD**************@TK2MSFTNGP11.phx.gbl...
* "BradC" <br********@yahoo.com> scripsit:
Let's see if this is the same problem. I took some screenshots, Before and After.

The WEIRDEST thing is that once you encounter this problem, if you manually resize the main form even a tiny bit, it snaps back to normal.


Really this colors *shocked*?!

Maybe it's a problem with the graphics driver. Does this behavior occur
on other machines too?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #5

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

Similar topics

3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
3
by: smjmitchell | last post by:
Hi, I am writing an application in VB6.0 that will have the option to select the language. For instance when Spanish is selected all the text on the program interface will display in Spanish. ...
2
by: Michael Zhang | last post by:
My project uses Python-2.3.4 + Tkinter + PIL-1.1.4 to retrieve images from server and display those images. I created a thread (also a separate toplevel window) for displaying images and another...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
4
by: M?rten O | last post by:
Hello! I have a problem with managed C++ and the Application class I want to use Application::CommonAppDataPath but the only answer I get is "D:\Documents and Settings\All Users\Application...
5
by: Pupeno | last post by:
Hello, I am experiencing a weird behavior that is driving me crazy. I have module called Sensors containing, among other things: class Manager: def getStatus(self): print "getStatus(self=%s)"...
2
by: jphelan | last post by:
Ever since I successfully applied some techniques for increasing the speed of my 17 meg. Application; it has only made me hunger for more. First, let me list what I have done so far: 1. Split...
0
by: SugarDaddy | last post by:
I managed to get the UAC process pretty much understood. I create the uac.manifest file, the .rc file and generate the .RES file for my applications. I use the project properties to specify the...
7
by: Mesan | last post by:
This is baffling me - I'm coming here in a desperate plea that someone smarter than myself (which isn't hard) might be able to explain what's going on. I've got a native C++ console app that has...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.