Title Bar is visible

A

Al

I'm loading Child forms into MDI form. I set ControlBox = False to all
children forms at design time. But during loading the blue title bar appears
for a portion of a second. This thing along with other delays (populating
controls with data, resizing, docking etc.) makes the form flicker. The
title bar of the child is most visible garbage on the screen. How to avoid
the title bar visibility totally?
I tried many things to avoid flickering - using SuspendLayout,
LockWindowUpdate API, DoubleBuffering. Nothing helped.

Al
 
H

Herfried K. Wagner [MVP]

Al said:
I'm loading Child forms into MDI form. I set ControlBox = False to all
children forms at design time. But during loading the blue title bar
appears for a portion of a second. This thing along with other delays
(populating controls with data, resizing, docking etc.) makes the form
flicker. The title bar of the child is most visible garbage on the screen.
How to avoid the title bar visibility totally?

I fear you attempt to use an MDI environment for a purpose it is not being
designed for. MDI children are intended to represent documents, and thus
they are typically displayed with a resizable border and a control box.
Maybe using a set of user controls ("Project" -> "Add user control...") on a
normal forms is an option.
 
Y

Yuk Tang

Al said:
I'm loading Child forms into MDI form. I set ControlBox = False to
all children forms at design time. But during loading the blue
title bar appears for a portion of a second. This thing along with
other delays (populating controls with data, resizing, docking
etc.) makes the form flicker. The title bar of the child is most
visible garbage on the screen. How to avoid the title bar
visibility totally? I tried many things to avoid flickering -
using SuspendLayout, LockWindowUpdate API, DoubleBuffering.
Nothing helped.

Form.Text = ""
 
V

vul

I have VB6 project working this way:
MDI form with ListBar (Outlook like control) is used as a container. When a
user clicks on one of the buttons on the ListBar, the corresponding Child
form without Title Bar is displayed within MDI totally covering the empty
area of MDI. When the user clicks on another button on the ListBar, the
current child is closed (validations, saving and other stuff is done before
closing) and another Child is displayed.
This application design works just fine for many years and users like it. No
problem with flickering or displaying title bars even for a portion of
second. So, when we decided to rewrite this app with VB2005, the same design
was selected for the new application.
And in general many things are working as good as in VB6 or even better. But
some existing in VB6 features give some problems. One of them I described in
my initial post.
If it's not a bug, then I do not understand why the title bar should appear
when I set it not to do that?
If you are interested you can see some screen shots of the old and new
application. If you think that I'm going wrong way with the design, maybe
you could suggest a better one. Here are the screen shots for an old and new
applications:
http://www.chapran.com/mystuff/CoordinatorScreens/OldProjectCoordinator.jpg
http://www.chapran.com/mystuff/CoordinatorScreens/NewProjectCoordinator.jpg
http://www.chapran.com/mystuff/CoordinatorScreens/OldPhoneBook.jpg
http://www.chapran.com/mystuff/CoordinatorScreens/NewPhoneBook.jpg

Thank you
Al
 
A

Al

Text was set to "". If not the title bar wouldn't disappear at all, but it
appears for a short period of time and then disappears.
Any other ideas?
Al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top