473,473 Members | 4,208 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

stop showing the repainting of a form

Hello,
In my application I am trying to load up some forms, however the loading of the forms is causing a lot of flickering. Are there any commands that can stop showing the repainting of the forms and thus make for a smoother running application.

mdiClient.DkManager.LoadConfigFromFile("c:\alpine\ aims\QuoteHistoryconfig.xml")
mdiClient.ActiveForm.Controls.Add(mdiClient._fille r)
'Controls.SetChildIndex(_filler, 0)
mdiClient.DkManager.InnerControl = mdiClient._filler
mdiClient.DkManager.InsideFill = True
mdiClient.DkManager.OuterControl = _statusBar

Thanx in advance
Geri
Nov 20 '05 #1
2 2059
Hi Hobley,

You may introduce a Splash Screen ... and keep it visible till all the
resources have been loaded after which you may show the main form.

Thank You,
rawCoder

"Geraldine Hobley" <Ge*************@discussions.microsoft.com> wrote in
message news:7D**********************************@microsof t.com...
Hello,
In my application I am trying to load up some forms, however the loading of the forms is causing a lot of flickering. Are there any commands
that can stop showing the repainting of the forms and thus make for a
smoother running application.
mdiClient.DkManager.LoadConfigFromFile("c:\alpine\ aims\QuoteHistoryconfig.xm
l") mdiClient.ActiveForm.Controls.Add(mdiClient._fille r)
'Controls.SetChildIndex(_filler, 0)
mdiClient.DkManager.InnerControl = mdiClient._filler
mdiClient.DkManager.InsideFill = True
mdiClient.DkManager.OuterControl = _statusBar

Thanx in advance
Geri

Nov 20 '05 #2
ISK
you could try this:
call SuspendLayout() on the form or control that you are loading and once you are
done loading everything thats on that form or control you can call ResumeLayout().
i haven't tried this but these methods are more or less out there for that purpose
only.

hope this helps..

"Geraldine Hobley" wrote:
Thanx for the help rawcoder,
However this does not quite answer the question, because the loading of the forms does not occur just at the start of the application but when you click on certain nodes of a treeview, so I can't keep loading splash screens all the time.

Anyhow what I need is some type of Echo off Echo On command that you used to get with vb6 or VBA , is there an equivalent in vb.net.

Thanx

Geri

"rawCoder" wrote:
Hi Hobley,

You may introduce a Splash Screen ... and keep it visible till all the
resources have been loaded after which you may show the main form.

Thank You,
rawCoder

"Geraldine Hobley" <Ge*************@discussions.microsoft.com> wrote in
message news:7D**********************************@microsof t.com...
Hello,
In my application I am trying to load up some forms, however the

loading of the forms is causing a lot of flickering. Are there any commands
that can stop showing the repainting of the forms and thus make for a
smoother running application.

mdiClient.DkManager.LoadConfigFromFile("c:\alpine\ aims\QuoteHistoryconfig.xm
l")
mdiClient.ActiveForm.Controls.Add(mdiClient._fille r)
'Controls.SetChildIndex(_filler, 0)
mdiClient.DkManager.InnerControl = mdiClient._filler
mdiClient.DkManager.InsideFill = True
mdiClient.DkManager.OuterControl = _statusBar

Thanx in advance
Geri


Nov 20 '05 #3

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

Similar topics

2
by: Hal Vaughan | last post by:
I have a "wizard" type program with a series of panels that are placed in a JPanel. When the "Next >" button is pressed, I put in a new panel (in other words, the ActionListener for "Next >"...
0
by: Phil | last post by:
I have a .net/C# com object that creates a thread and a window to output results obtained in the thread (the thread is reading a com port). Everything seems to be working correctly (I don't get any...
3
by: John Galt | last post by:
I am trying to stop the Delete confirm message from showing up on a delete of all records in a table. The code (THAT IS NOT WORKING) is: Me.BeforeDelConfirm = "Form_BeforeDelConfirm"...
2
by: Phil | last post by:
I have a .net/C# com object that creates a thread and a window to output results obtained in the thread (the thread is reading a com port). Everything seems to be working correctly (I don't get any...
8
by: Matt Theule | last post by:
While stepping through an ASP.NET project, I found that data was being inserted into my database even though I was not stepping through the code that inserted the data. I have a single page with...
6
by: rs | last post by:
I wonder, performance wise, if it is better to have one form and repaint the components on that form or to have mutiple forms and show and dispose them? Thanks
5
by: Jesse Aufiero | last post by:
Hello all, I have many buttons on a form and at the bottom of the form is a grid that behaves as though it is 'retractable' - at various times during the life of the app, the grid becomes taller...
2
by: Robert Smith | last post by:
Hello, I have a problem with a form loading a repainting. Because the form uses an office 2000 styles, when it paints it causes a lot of flickering. The standard advice is to set the following...
2
by: vunet.us | last post by:
Please, explain an interesting phenomenon, if you can. I have an array of references to an HTML element: <div id='container'> <div id='someId1'></div> <div id='someId2'></div> </div> ........
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.