Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 2nd, 2004, 03:12 AM
Authorized User
 
Join Date: Oct 2003
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default MDI Screen Flicker when childforms swapped

I have a harmless but quite ugly problem with a MDI application.

As I open multiple childforms into my MDI application, they are added as menuitems to my mainmenu control on the parent form. I can then select (bring to front) any of the childforms by using this menu system (as you can under the 'window' menu system in many applications). If the child forms are maximised when I do this, the forms 'flicker' on the screen as the selected form is brought to the front (the minimised version of the childform can just be made out during this flicker).

Does anyone know what causes this, or how to fix it?

 
Old June 10th, 2007, 08:34 PM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to kohinek
Default

easy solution :), but took me a lot of toime to find it and try all possible ways :)

private void OnToolStripItemClicked(object sender, EventArgs e)
{
    ToolStripButton clickedButton = (ToolStripButton)sender;

    ((Form)clickedButton.Tag).Visible = false;

    ((Form)clickedButton.Tag).Activate();

    ((Form)clickedButton.Tag).Visible = true;
}

((Form)clickedButton.Tag) is a MDIChild Form ....






Similar Threads
Thread Thread Starter Forum Replies Last Post
mdi form check to see if childforms are open RainX C# 2005 0 August 28th, 2007 12:55 PM
Screen Flicker SerranoG Access 1 May 16th, 2004 03:15 PM
DataList Web Control causes screen flicker Jan_Ma BOOK: ASP.NET Website Programming Problem-Design-Solution 0 June 30th, 2003 04:39 PM
DataList Control causes screen flicker Jan_Ma Classic ASP Components 0 June 30th, 2003 04:33 PM
SmartNavigation and Screen Flicker Jan_Ma ASP.NET 1.0 and 1.1 Basics 0 June 28th, 2003 08:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.