Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / July 2006

Tip: Looking for answers? Try searching our database.

vs2005 DT Perfomance problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roman - 12 Jul 2006 07:18 GMT
   Vs2005 becomes definitely unworkable if the number of components on the
form is greater then 100. I wonder if Microsoft published this limitation.
Below is a simple class, which illustrates my words. Just add it to any
winforms app, drag drop vs2005worker from the Toolbox and Resize. You will
see increased number at the left top Conner of that component. It is a
number of controls. When this number is greater then 100 vs2005 slows down.

using System;

using System.Collections.Generic;

using System.Windows.Forms;

using System.Text;

using System.Drawing;

using System.Component.Design;

namespace WindowsApplication4 {

class vs2005worker : Control {

protected override void OnResize(EventArgs e) {

if(Site != null) {

IDesignerHost dh = (IDesignerHost)Site.GetService(typeof(IDesignerHost));

if(dh != null) {

vs2005worker worker = new vs2005worker();

worker.AllowDrop = false;

worker.Bounds = new Rectangle(1, 2, 3, 4);

worker.Parent = this;

dh.Container.Add(worker);

}

}

base.OnResize(e);

}

protected override void OnPaint(PaintEventArgs e) {

base.OnPaint(e);

e.Graphics.DrawString(Controls.Count.ToString(), DefaultFont, new
SolidBrush(Color.Black), new Point(0, 0));

}

}

}
Roman - 14 Jul 2006 14:37 GMT
Hi Linda Liu,

How is it going with the problem described? Is it by design or may be I
missed anything?

Signature

Thanks Roman
--

>    Vs2005 becomes definitely unworkable if the number of components on the
> form is greater then 100. I wonder if Microsoft published this limitation.
[quoted text clipped - 58 lines]
>
> }

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.