Home All Groups Group Topic Archive Search About
Author
12 Apr 2006 9:58 PM
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

Author
13 Apr 2006 12:23 PM
Herfried K. Wagner [MVP]
"Al" <a*@newsgroups.com> schrieb:
> 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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
13 Apr 2006 2:26 PM
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

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:uQHMQUvXGHA.508@TK2MSFTNGP02.phx.gbl...
> "Al" <a*@newsgroups.com> schrieb:
>> 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.
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>
Author
13 Apr 2006 1:02 PM
Yuk Tang
"Al" <a*@newsgroups.com> wrote in
news:#fXU$wnXGHA.3448@TK2MSFTNGP03.phx.gbl:
>
> 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 = ""


--
Cheers, ymt.
Author
13 Apr 2006 3:25 PM
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
Show quoteHide quote
"Yuk Tang" <sanewarnebashingexp***@bignet.com.au> wrote in message
news:Xns97A48F3D2B38Ajimlaker2yahoocom@130.133.1.4...
> "Al" <a*@newsgroups.com> wrote in
> news:#fXU$wnXGHA.3448@TK2MSFTNGP03.phx.gbl:
>>
>> 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 = ""
>
>
> --
> Cheers, ymt.