473,386 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Optimize PaintEvent on WinForms?

Hi there

I have a rather annoying problem. In .NET 1.1 I could have 20 controls
(labels, textboxes etc) without any problem and the painting went
satisfying. Now in .NET 2.0 whenever I have more that about 5-10 controls on
one form, the painting is extremely slow. I use a lot of nesting with
usercontrols inside tabpages and so on, but why is it so slow compared to
1.1 and how can I make the painting faster?

I've searched the web for solutions, bu no luck... (I have read the
Microsoft article about the same subject, but that didn't help)

Sincerely Kenneth Siewers
Mar 21 '06 #1
3 2401
Same problem here. I've tried disabling controls, hiding, calling
interop to stop them from updating, etc... all to no avail.

I'd love to see a solution to this.

Kenneth Siewers Møller wrote:
Hi there

I have a rather annoying problem. In .NET 1.1 I could have 20 controls
(labels, textboxes etc) without any problem and the painting went
satisfying. Now in .NET 2.0 whenever I have more that about 5-10 controls on
one form, the painting is extremely slow. I use a lot of nesting with
usercontrols inside tabpages and so on, but why is it so slow compared to
1.1 and how can I make the painting faster?

I've searched the web for solutions, bu no luck... (I have read the
Microsoft article about the same subject, but that didn't help)

Sincerely Kenneth Siewers

Mar 21 '06 #2
It is really frustrating not to be able to create a fast and smooth running
application, just because the control painting is so slow. I thought at
first it had something to do with the new visual styles integrated in 2.0
and the transparent property available for backcolors. It seemed to make a
little difference changing containercontrols backcolor to some solid
instead, but still... come on!

I surely hope MS is aware of this issue and are working on it as we speak.

/Kenneth

"Frank Rizzo" <fr****@notn.com> skrev i en meddelelse
news:Oc**************@TK2MSFTNGP09.phx.gbl...
Same problem here. I've tried disabling controls, hiding, calling interop
to stop them from updating, etc... all to no avail.

I'd love to see a solution to this.

Kenneth Siewers Møller wrote:
Hi there

I have a rather annoying problem. In .NET 1.1 I could have 20 controls
(labels, textboxes etc) without any problem and the painting went
satisfying. Now in .NET 2.0 whenever I have more that about 5-10 controls
on one form, the painting is extremely slow. I use a lot of nesting with
usercontrols inside tabpages and so on, but why is it so slow compared to
1.1 and how can I make the painting faster?

I've searched the web for solutions, bu no luck... (I have read the
Microsoft article about the same subject, but that didn't help)

Sincerely Kenneth Siewers

Mar 21 '06 #3
Kenneth Siewers Møller wrote:
Hi there

I have a rather annoying problem. In .NET 1.1 I could have 20 controls
(labels, textboxes etc) without any problem and the painting went
satisfying. Now in .NET 2.0 whenever I have more that about 5-10 controls on
one form, the painting is extremely slow. I use a lot of nesting with
usercontrols inside tabpages and so on, but why is it so slow compared to
1.1 and how can I make the painting faster?

I've searched the web for solutions, bu no luck... (I have read the
Microsoft article about the same subject, but that didn't help)

Sincerely Kenneth Siewers


I've got exactly the same problem - again, would love to hear some
solutions for this. I too was under the impression it was transparency
and some anti-aliasing i'm using.
Mar 21 '06 #4

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

Similar topics

0
by: Andreas Falck | last post by:
Hi, I ran the code below on two different versions, 4.0.14 and 4.0.16 respectively, both running RH 7.3 on intel. In version mysql server version 4.0.14 the SELECT privelege suffices for...
0
by: Daniel | last post by:
Hi there, I recently came across an interesting option when right clicking on a project (Right click on the project -> properties -> Configuration Properties ->Build -> Optimize) There is an...
4
by: Elhanan | last post by:
hi.. all a client of ours is considering to move from a dos application to windows desktop application. the application is for traveling agency, the database is rather large. their current...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
1
by: Pieter | last post by:
Hi, In my application VB.NET 2005 application I placed a ReportViewer, and link it to a server-report: Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote...
4
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from...
0
by: netflex | last post by:
Working on a handed off C# project and pretty much my third time dipping into C#. In my solution file, I have a collection of .resx files in their own folder, several .cs files, and my winforms .cs...
5
by: brian.wilson4 | last post by:
Our group is currently comparing winforms vs webforms.....app is Corp LAN based - we have control of desktops.....Below is pros and cons list we have come up with - if anything strikes you as...
15
by: kenneth | last post by:
I was trying to use multiple thread to optimize my following code, but met some problems, anyone can help me? k are initialized. int computePot() { int i, j; for( i=0; i<500; i++ ) { for(...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.