473,396 Members | 1,996 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.

flicker when toggling btwn child forms

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
1 1395
This will sound crude <g> but would sending the Ctrl-Tab key codes work?

Randall Arnold

"Jesse Aufiero" wrote:
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

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...
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,...
20
by: Charles Law | last post by:
This is actually a follow on from yesterday's post about masking mouse clicks in a user control. The solution I have implemented - from Herfried - places a transparent window over the entire...
3
by: Per Dunberg | last post by:
Hi all, I have to develop a "skinned" application and I have a problem with the graphics. When a form is loaded and displayed there's aways a flicker where all the controls are located on the...
3
by: Jesse Aufiero | last post by:
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...
4
by: Sarika | last post by:
I migrated a VB6.0 application to VB.NET. This app has a drawing area, which is a panel. The user can drag and drop several objects on this drawing area and can also draw lines, boxes etc. The app...
1
by: Jon Turner | last post by:
I have a MDI app with a treeview that controls the displaying/activation of a MDI Child. Problem is that when activating/showing the MDI child, I get a flicker caused by the Repaint of the...
0
by: cherran | last post by:
Hi, I am using VB.NET 2003, I have a MDI Parent & Child forms. Some of my child forms has 10 Panels, 20 Labels and 20 Textboxes. While Loading First time my child form get flickered, i mean...
0
by: =?Utf-8?B?UmFiaWE=?= | last post by:
Hi, I have MDI with number of children in maximized state, when I activate one child, by using code Ex. child1.Activate() , the rest shown in the background for a while then I show the activated...
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:
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
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
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...

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.