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 / April 2006

Tip: Looking for answers? Try searching our database.

Upgrade VS2003 to VS2005 so Winform is split into separate .Designer.cs file (partial class)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kai Bohli - 29 Mar 2006 11:37 GMT
Hi All !

I got a few heavy forms with a lot of controls. What is the easiest/fastest way to convert these to
"partial class" type (Separate Designer.cs file) ?

TIA

Best wishes
Best wishes
Kai Bohli
kaiboe@online.no
Norway
Martin Boltendal - 07 Apr 2006 14:15 GMT
Hi Kai,

The upgrade wizard for vs2005 doesn't convert your forms to the new coding
style (as you probably already found out).
The most simplest way is to create a new form and open only the code
windows.
Then look at the structure of the files and copy the code from the original
form-code-file to the new one respecting the structure.

This is how I did it. Ignore the errors and remove the original (exclude).
Rebuild and see if its correct.

Hope this is what you where looking for.

Greets,

Martin

> Hi All !
>
[quoted text clipped - 9 lines]
> kaiboe@online.no
> Norway

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.