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

form flicker problem

I have an MDI application with two maximized child forms. At any given time
only one of the child forms is in the foreground and visible. To alternate
between the two child forms, I can type Ctrl-Tab. This results in a
seamless toggling between the two forms - no flickering.

However, when I attempt to use my own code to toggle between the two forms
(the user clicks a menu Window>>Child1 or Window>>Child2 to fire this code),
I get a choppy transition. There is a flicker and the form that was in the
background can be seen in its 'restored' state before it is maximized and
brought fully to the foreground. I am using the BringToFront method of the
child forms to accomplish the toggling.

How can I write code that does not result in a flicker, but rather behaves
like typing Ctrl-Tab??

Thanks!
Nov 21 '05 #1
3 5090
Hi,

Enable double buffering for the form
http://msdn.microsoft.com/library/de...styletopic.asp

Ken
---------------------
"Jesse Aufiero" <ja******@moaboil.com> wrote in message
news:uC*************@TK2MSFTNGP09.phx.gbl...
I have an MDI application with two maximized child forms. At any given time
only one of the child forms is in the foreground and visible. To alternate
between the two child forms, I can type Ctrl-Tab. This results in a
seamless toggling between the two forms - no flickering.

However, when I attempt to use my own code to toggle between the two forms
(the user clicks a menu Window>>Child1 or Window>>Child2 to fire this code),
I get a choppy transition. There is a flicker and the form that was in the
background can be seen in its 'restored' state before it is maximized and
brought fully to the foreground. I am using the BringToFront method of the
child forms to accomplish the toggling.

How can I write code that does not result in a flicker, but rather behaves
like typing Ctrl-Tab??

Thanks!

Nov 21 '05 #2
Ken Tucker [MVP] wrote:
Hi,

Enable double buffering for the form
http://msdn.microsoft.com/library/de...styletopic.asp


Also :

http://www.bobpowell.net/doublebuffer.htm
--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Nov 21 '05 #3
looks good. thanks

"Mitchell Vincent" <mv******@newsgroup.nospam> wrote in message
news:O5**************@TK2MSFTNGP12.phx.gbl...
Ken Tucker [MVP] wrote:
Hi,

Enable double buffering for the form
http://msdn.microsoft.com/library/de...styletopic.asp


Also :

http://www.bobpowell.net/doublebuffer.htm
--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com

Nov 21 '05 #4

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

Similar topics

1
by: Michael | last post by:
Here is my problem: I have a MDI application and when I load my child forms I get alot of flicker. I have tried to implement double buffering : Public Sub New() MyBase.New() 'This call is...
0
by: Deborah V. Gardner | last post by:
I am using Access 2000 and have a form with an image background (the clouds that came with Office). I also have an OnChange event on the Item control. Me.txtLength = 55 - (Len(Me.Item.Text)) ...
1
by: Dave Veeneman | last post by:
I'm working on an application that uses a MDI interface. Each child form has a number of text boxes and labels. The interface follows the Outlook convention that only one child is open at a time,...
2
by: AS | last post by:
Hi, I have a windows form with a background image - set through the forms background image property. The form also has panels and icons on top of it. When this form is loading, there's a...
1
by: Vahid Dadashzadeh | last post by:
hi, i've got a big problem with painting 4 or more than 4 control such as panel on a form. i have 4 panel that their width and height is 3000px on form and also a hscrollbal control that when i...
8
by: nirdeshonline | last post by:
Hi, I have added a simple listbox in windows form under c# 2.0. It contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers. Please tell me...
1
by: Wayne | last post by:
I've noticed some screen flicker when using Access 2003 under Vista and I'm curious as to whether this is a bug or peculiar to my machine. In design view, if I make changes to a form and then...
0
by: pianobasher | last post by:
Hello I have a class that's derived from a normal windows Form. I call it BaseContainer. It has a Panel and a built-in method to add another BaseContainer derivative inside that panel. I hoped...
1
by: Mecena | last post by:
Hi all! I have a problem regarding form loading speed. I have forms with many controls and some time ago I've implemented a fader that uses a symbollic millisecond of fade time to buffer the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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:
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...

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.