StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Bloated Designer.cs file
Bloated Designer.cs file
Post Reply
Like
0
Bloated Designer.cs file
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Aaron Young
Aaron Young
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
Hi guys,
This is a general observation rather than a specific SF problem.
I noticed by total accident that the designer.cs file for a relatively large form contained references to comboboxes that were no-longer displayed on the form and which I thought had long since been deleted. The form had 15 SF comboboxes but the designer file created, initialized and databound 27 comboboxes - the other 12 were never shown or used and were totally hidden. During early form development I have no doubt I added and removed the other 12 comboboxes but their references remained within the designer file for some reason. Since removing the 12 "ghost" comboboxes from the designer file, the form loads faster - dramatically so in the form designer which always stalled for 20 seconds on loading after clicking on the first field. The problem isn't only restricted to the combobox as there are numerous labels as well.
It appears Visual Studio is not very good at cleaning up the designer file. If you have a reasonably complex form which has undergone editing over a period of time, it would be worth checking the designer file if you are experiencing slow loading and stalling in the form designer.
I am off to try and find a utility which will scan the designer file and report on un-used objects.
Aaron
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Bloated Designer.cs file
Aaron Young
-
15 Years Ago
Thanks for pointing this out. I would never have thought to look for...
Russell Scott Brown
-
15 Years Ago
Just as a follow-up, the final count of "ghost" controls in this form...
Aaron Young
-
15 Years Ago
I have seen this once or twice, and we have some massive forms, but...
Trent L. Taylor
-
15 Years Ago
Ah that could explain it. I have a habit of keeping the designer open...
Aaron Young
-
15 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search