473,788 Members | 2,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

stop the painting of a form

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
SetStyle(Contro lStyles.DoubleB uffer, True)
SetStyle(Contro lStyles.AllPain tingInWmPaint, True)

However this seems to make no difference. When the form loads it originall
appears in the old grey colour of classic windows and then quickly changes to
the new blue of
Office 2000 styles. This causes a lot of flickering, any ideas to reduce or
possible remove this so that the form appears fully formed. The form is an
inherited form so this may be another issue.
Regards
Robert
Jul 21 '06 #1
2 2891
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
SetStyle(Contro lStyles.DoubleB uffer, True)
SetStyle(Contro lStyles.AllPain tingInWmPaint, True)

However this seems to make no difference. When the form loads it originall
appears in the old grey colour of classic windows and then quickly changes to
the new blue of
Office 2000 styles. This causes a lot of flickering, any ideas to reduce or
possible remove this so that the form appears fully formed. The form is an
inherited form so this may be another issue.
If the problem is confined to the form load event, then do Me.Hide at the
top and Me.Show at the bottom of the load event handler. This works for me
in all cases where the first draw of a form is clunky.
Jul 21 '06 #2
Hello AMercer,

YIKES.
Try using LockWindowUpdat e() at the beginning and end of the paint cycle.

-Boo
>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
SetStyle(Contr olStyles.Double Buffer, True)
SetStyle(Contr olStyles.AllPai ntingInWmPaint, True)
However this seems to make no difference. When the form loads it
originall appears in the old grey colour of classic windows and then
quickly changes to the new blue of Office 2000 styles. This causes a
lot of flickering, any ideas to reduce or possible remove this so
that the form appears fully formed. The form is an inherited form so
this may be another issue.
If the problem is confined to the form load event, then do Me.Hide at
the top and Me.Show at the bottom of the load event handler. This
works for me in all cases where the first draw of a form is clunky.

Jul 21 '06 #3

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

Similar topics

5
15130
by: Alien | last post by:
I have a hex editor-type class that extends UserControl and paints its data to a PictureBox. Basically the problem is that repainting it takes usually between 60 and 80ms, which may seem pretty fast but is not good enough when you have to repaint very frequently. For example, when you scroll the control or select blocks of text quickly. I have it paint its graphics to an offscreen Graphics instance, which I then transfer to the...
4
3178
by: Dafü | last post by:
Hello! I have an application that paint graphics in VB.NET. Each graphic is painted after a long calculation process. My problem is when another windows pass over my graphics or I resize the window all graphs disapear. How can I maintain the graphics?
7
8140
by: adh | last post by:
How do you temporarly stop the screen painting in VB.NET (alla "echo off" in vb6)? I have a modal form that when closing keeps partial showing. Thanks ADH
0
907
by: J Rico | last post by:
Hi, I'm having a problem with some code we're writting. Our customer doesn't like windows forms style painting, so their designer has created a skin and we have added it. There are many ways in doing this, so it hasn't been a great problem. The problem is when those forms, which are ChildForms in an MDI, get minimized. I have no idea in how repainting the minimized form. I've tried many things, and cannot paint by myself the minimized...
3
4166
by: Jon Vaughan | last post by:
I have a form that im using to draw buttons onto, a click on the buttons will cause the text on the buttons to change and some buttons will be hidden , so im looking to stop the redraw on the form until I have finished making these changes, to reduce the flicker. Can someone tell me how to do it ? Thanks
0
1008
by: Halimaji Nijazi | last post by:
Hi everybody On my form I have a procedure, which moves some textboxes and buttons... then it makes some validations... after this it moves the objects again. So far so good... But now I have the problem, that the form flickes every time I move an object. Overriding onpaint, onbackgroundpaint and refresh won't help, because after moving the object the last time i have to call mybase.refresh and release
2
1618
by: Halimaji Nijazi | last post by:
Hi everybody On my form I have a procedure, which moves some textboxes and buttons... then it makes some validations... after this it moves the objects again. So far so good... But now I have the problem, that the form flickes every time I move an object. Overriding onpaint, onbackgroundpaint and refresh won't help, because after moving the object the last time i have to call mybase.refresh and release
4
1871
by: Marina Levit | last post by:
I am trying to do some processing on a background thread while keeping the UI painting. However, this is a generic server side call routine - and it needs to block until the server side call completes. So the idea is, a server side call begins, it gets spun off on another thread to keep the UI painting - but, the code flow cannot return to the caller until the server side call completes, because the caller expects the data. The only way...
5
4248
by: lazyvlad | last post by:
Hi, I'm writing here because this issue is becoming more annoying with each day it passes. So I have a form, a dataset with a few table adapters (3 to be precise) and a datagridview.The datagridview has a lot of columns as checkboxes (30 columns are checkboxes per row). The problem is in the form drawing and painting, when first shown the form paints itself very slow and im running this on a relatively powerful computer (Pentium 2.4GHz with...
0
9656
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10118
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8995
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7519
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5403
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.