473,471 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Flicker Problem

Hi all,

I'm designing a C# app (VS.NET 2003) with an interface similar in design to
Outlook. I get a lot of 'flicker' when I resize the main form. Anyone have
any quick tips on how to reduce flicker when resizing a form?

Thanks in advance,
Michael C.
Nov 16 '05 #1
5 4543
Currently the form is designed with 2 panels, one containing a treeview, the
other a label.

thanks again,
'visual' mike c.

"Michael C" <mi******@nospam.org> wrote in message
news:JP**********************@news4.srv.hcvlny.cv. net...
Hi all,

I'm designing a C# app (VS.NET 2003) with an interface similar in design to Outlook. I get a lot of 'flicker' when I resize the main form. Anyone have any quick tips on how to reduce flicker when resizing a form?

Thanks in advance,
Michael C.

Nov 16 '05 #2
I think this might help you a bit...

SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true);
// Write it down after InitializeComponent() in

// your form's constructor

Regards,

--
Angel J. Hernández M.
MCSD

"Michael C" <mi******@nospam.org> escribió en el mensaje
news:54**********************@news4.srv.hcvlny.cv. net...
Currently the form is designed with 2 panels, one containing a treeview, the other a label.

thanks again,
'visual' mike c.

"Michael C" <mi******@nospam.org> wrote in message
news:JP**********************@news4.srv.hcvlny.cv. net...
Hi all,

I'm designing a C# app (VS.NET 2003) with an interface similar in design

to
Outlook. I get a lot of 'flicker' when I resize the main form. Anyone

have
any quick tips on how to reduce flicker when resizing a form?

Thanks in advance,
Michael C.


Nov 16 '05 #3
Thanks for the help Angel, but it's still flickering somewhat. I used your
SetStyle statement and also tried some variations like double buffering, but
the two panels I have in the form are are still showing big black areas
around the edges after I re-size the form, but before they are re-drawn.
Any other ideas? I think the panels are causing the problem, but I don't
know how to get around that...

Thanks,
Michael C.

"Angel J. Hernández" <an**********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I think this might help you a bit...

SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true);
// Write it down after InitializeComponent() in

// your form's constructor

Regards,

--
Angel J. Hernández M.
MCSD

"Michael C" <mi******@nospam.org> escribió en el mensaje
news:54**********************@news4.srv.hcvlny.cv. net...
Currently the form is designed with 2 panels, one containing a treeview,

the
other a label.

thanks again,
'visual' mike c.

"Michael C" <mi******@nospam.org> wrote in message
news:JP**********************@news4.srv.hcvlny.cv. net...
Hi all,

I'm designing a C# app (VS.NET 2003) with an interface similar in
design to
Outlook. I get a lot of 'flicker' when I resize the main form.
Anyone have
any quick tips on how to reduce flicker when resizing a form?

Thanks in advance,
Michael C.



Nov 16 '05 #4
I found this
http://www.thecodeproject.com/cs/mis...paintevent.asp even
though is not about a panel but a Treeview & Listview. Those controls like
ur panel are containers. Hope this might help you

Regards

"Michael C" <mi******@nospam.org> escribió en el mensaje
news:HD****************@news4.srv.hcvlny.cv.net...
Thanks for the help Angel, but it's still flickering somewhat. I used your SetStyle statement and also tried some variations like double buffering, but the two panels I have in the form are are still showing big black areas
around the edges after I re-size the form, but before they are re-drawn.
Any other ideas? I think the panels are causing the problem, but I don't
know how to get around that...

Thanks,
Michael C.

"Angel J. Hernández" <an**********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I think this might help you a bit...

SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true);
// Write it down after InitializeComponent() in

// your form's constructor

Regards,

--
Angel J. Hernández M.
MCSD

"Michael C" <mi******@nospam.org> escribió en el mensaje
news:54**********************@news4.srv.hcvlny.cv. net...
Currently the form is designed with 2 panels, one containing a
treeview, the
other a label.

thanks again,
'visual' mike c.

"Michael C" <mi******@nospam.org> wrote in message
news:JP**********************@news4.srv.hcvlny.cv. net...
> Hi all,
>
> I'm designing a C# app (VS.NET 2003) with an interface similar in

design to
> Outlook. I get a lot of 'flicker' when I resize the main form. Anyone have
> any quick tips on how to reduce flicker when resizing a form?
>
> Thanks in advance,
> Michael C.
>
>



Nov 16 '05 #5
I tried it without the Panels also... argh it's not working :( The panels
actually have a paint event... I'll keep looking.

Thanks,
Michael C.

"Angel J. Hernández" <an**********@hotmail.com> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
I found this
http://www.thecodeproject.com/cs/mis...paintevent.asp even
though is not about a panel but a Treeview & Listview. Those controls like
ur panel are containers. Hope this might help you

Regards

"Michael C" <mi******@nospam.org> escribió en el mensaje
news:HD****************@news4.srv.hcvlny.cv.net...
Thanks for the help Angel, but it's still flickering somewhat. I used

your
SetStyle statement and also tried some variations like double buffering,

but
the two panels I have in the form are are still showing big black areas
around the edges after I re-size the form, but before they are re-drawn.
Any other ideas? I think the panels are causing the problem, but I don't
know how to get around that...

Thanks,
Michael C.

"Angel J. Hernández" <an**********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I think this might help you a bit...

SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque,

true); // Write it down after InitializeComponent() in

// your form's constructor

Regards,

--
Angel J. Hernández M.
MCSD

"Michael C" <mi******@nospam.org> escribió en el mensaje
news:54**********************@news4.srv.hcvlny.cv. net...
> Currently the form is designed with 2 panels, one containing a treeview, the
> other a label.
>
> thanks again,
> 'visual' mike c.
>
> "Michael C" <mi******@nospam.org> wrote in message
> news:JP**********************@news4.srv.hcvlny.cv. net...
> > Hi all,
> >
> > I'm designing a C# app (VS.NET 2003) with an interface similar in

design
> to
> > Outlook. I get a lot of 'flicker' when I resize the main form.

Anyone
> have
> > any quick tips on how to reduce flicker when resizing a form?
> >
> > Thanks in advance,
> > Michael C.
> >
> >
>
>



Nov 16 '05 #6

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

Similar topics

1
by: Michael | last post by:
Here is my problem: I have a MDI application and when I load my child forms I get alot of flicker. I have tried to implement double buffering : Public Sub New() MyBase.New() 'This call is...
4
by: Marek Mänd | last post by:
This seems an IE issue only: 4253 bytes testcase: http://www.hot.ee/idaliiga/testcases/ieselect/bnlinkingselectinmsie.htm Can one have 1) a mouseover/mouseout element on TBODY 2) change in...
5
by: Ian Stiles | last post by:
I have tried everything under the sun to get rid of horrible flashing and flickering that occurs on a CSharp form when the form hosts a TreeView or WebBrowser control and then you resize the form....
20
by: Charles Law | last post by:
This is actually a follow on from yesterday's post about masking mouse clicks in a user control. The solution I have implemented - from Herfried - places a transparent window over the entire...
3
by: Per Dunberg | last post by:
Hi all, I have to develop a "skinned" application and I have a problem with the graphics. When a form is loaded and displayed there's aways a flicker where all the controls are located on the...
3
by: seamlyne | last post by:
The first method I ever used for multiple state buttons was to create a graphic for each button for each state: AboutUs_on, AbooutUs_over, AboutUs_out, etc. That works great when there are just a...
17
by: pigeonrandle | last post by:
Hi, I have seen loads of different ways to do this, but the all seem to yield the same result - text that doesn't flicker when it's moving too slowly! Does anyone know 'the best way' to make text...
1
by: Wayne | last post by:
I've noticed some screen flicker when using Access 2003 under Vista and I'm curious as to whether this is a bug or peculiar to my machine. In design view, if I make changes to a form and then...
4
by: Frank Rizzo | last post by:
Hello, I inherited a large Winforms project that is suffering from excessive flicker when switching between portions of the application. I've noticed that most parts of the application (user...
0
by: Rainer Queck | last post by:
Hello NG, I had/have a bad flicker Problem with my Application. On starting some applications, while my app was running, the whole Display started to flicker. Even the desktop Icons! Looking...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
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...
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
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.