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

Forms don't redraw when moved...

I have a problem in one of my applications. The main
window is the MDI parent, and I may have as many as 3 or
4 forms open at a time within the main form. However,
regardless of how many forms are open, if I try to move
one of the forms, it won't redraw when I move it. It
looks similar to when your system is frozen/the processor
is maxed out and you try to move a window. However, when
I check system diagnostics, there are always lots of free
system resources. I've had this problem for the entire
time I've worked on this application (about 6 months) and
have not been able to figure out how to resolve it. Has
anyone else ever had this problem? Does anyone know how
it can be fixed?

Thanks!
Ben
Nov 20 '05 #1
3 1724
Never mind, I figured out how to fix it finally. I just
call the .Refresh method of the MDI parent when any
children are moved. Thanks anyways!

-----Original Message-----
I have a problem in one of my applications. The main
window is the MDI parent, and I may have as many as 3 or
4 forms open at a time within the main form. However,
regardless of how many forms are open, if I try to move
one of the forms, it won't redraw when I move it. It
looks similar to when your system is frozen/the processoris maxed out and you try to move a window. However, whenI check system diagnostics, there are always lots of freesystem resources. I've had this problem for the entire
time I've worked on this application (about 6 months) andhave not been able to figure out how to resolve it. Has
anyone else ever had this problem? Does anyone know how
it can be fixed?

Thanks!
Ben
.

Nov 20 '05 #2
Hi Ben,

You can also optimize the painting by invalidating the form if the form was
overlapped by the moving form.

i.e.
After move,
Check areas that was covered by the moving form before move.
Invalidate the areas.

HTH,

JOhn

Nov 20 '05 #3
Cor
Hi Ben,
Good newsgroup 6 months work and one message did give you the idea :-), the
one from yourself.
Success
Cor
Nov 20 '05 #4

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

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
0
by: PHH | last post by:
Help me, please, When I redraw a ListviewItem in Listview (redraw items with icon and text columms). I used SetStyle(ControlStyle.UserPaint, true) function. And I redraw finish and run...
0
by: WHITETIGER | last post by:
Help me, please, When I redraw a ListviewItem in Listview (redraw items with icon and text columms). I used SetStyle(ControlStyle.UserPaint, true) function. And I redraw finish and run...
0
by: oscar | last post by:
my program draws a form and when you click the start button another form is drawn with a progress bar as it runs through a function. my issue is that when you click on another progrem then try to...
0
by: Ben Coats | last post by:
Hello, I have written an application that may have many MDI Child forms open at the same time. I have found no problem on XP systems, but when the app is running on a Win2K system, when a user...
16
by: IcedCrow | last post by:
I've noticed that a lot of programs have began to use a "softer" windows form. By that I mean the caption bar has lighter, softer colors and the corners are more rounded How do you go about...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
7
by: raylopez99 | last post by:
I find that I am using bool variables a lot when I code in Forms. I know how to overload event handlers, and that's great for offloading code from the 'base' event handler and/or creating helper...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.