473,396 Members | 2,076 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,396 software developers and data experts.

How to convert Windows Forms 1.1 to 2.0 to use partial classes?

Hi,

Can someone give me some pointers as to how to convert a WinForms 1.1 to 2.0
to use partial classes? Maybe a good article on the Net? I already converted
my application from 1.1 to 2.0, but the new forms are not using partial
classes.

Thanks.
Aug 7 '06 #1
5 4159
Why partial class is so important to you if your app is running?

chanmm

"Johndoe" <jo*****@johndoe.comwrote in message
news:up**************@TK2MSFTNGP04.phx.gbl...
Hi,

Can someone give me some pointers as to how to convert a WinForms 1.1 to
2.0 to use partial classes? Maybe a good article on the Net? I already
converted my application from 1.1 to 2.0, but the new forms are not using
partial classes.

Thanks.

Aug 7 '06 #2
You have to do it manually !

Advice : do it with Visual Studio's Editor, but not "In the project" (you'll
get problems !); instead open an "empty instance" of VS and open only the
*.cs file you need to split, then split them manually into *.cs and
*.Designer.cs .

When finished it should be ok to re-open your full project and compile it.

Steph.
"Johndoe" <jo*****@johndoe.comwrote in message
news:up**************@TK2MSFTNGP04.phx.gbl...
Hi,

Can someone give me some pointers as to how to convert a WinForms 1.1 to
2.0
to use partial classes? Maybe a good article on the Net? I already
converted
my application from 1.1 to 2.0, but the new forms are not using partial
classes.

Thanks.


Aug 7 '06 #3
Thanks Steph.
"TheSteph" <Th******@NoSpam.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
You have to do it manually !

Advice : do it with Visual Studio's Editor, but not "In the project"
(you'll
get problems !); instead open an "empty instance" of VS and open only the
*.cs file you need to split, then split them manually into *.cs and
*.Designer.cs .

When finished it should be ok to re-open your full project and compile it.

Steph.
"Johndoe" <jo*****@johndoe.comwrote in message
news:up**************@TK2MSFTNGP04.phx.gbl...
>Hi,

Can someone give me some pointers as to how to convert a WinForms 1.1 to
2.0
>to use partial classes? Maybe a good article on the Net? I already
converted
>my application from 1.1 to 2.0, but the new forms are not using partial
classes.

Thanks.



Aug 7 '06 #4
It's a hobby application. I want to keep it "up-to-date" so that it will be
hopefully easier when I have to port it to .NET 3.0 / WPF and futher
technologies later on.
"chanmm" <ch*****@hotmail.comwrote in message
news:e$**************@TK2MSFTNGP03.phx.gbl...
Why partial class is so important to you if your app is running?

chanmm

"Johndoe" <jo*****@johndoe.comwrote in message
news:up**************@TK2MSFTNGP04.phx.gbl...
>Hi,

Can someone give me some pointers as to how to convert a WinForms 1.1 to
2.0 to use partial classes? Maybe a good article on the Net? I already
converted my application from 1.1 to 2.0, but the new forms are not using
partial classes.

Thanks.


Aug 7 '06 #5
"TheSteph" <Th******@NoSpam.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
You have to do it manually !

Advice : do it with Visual Studio's Editor, but not "In the project"
(you'll
get problems !); instead open an "empty instance" of VS and open only the
*.cs file you need to split, then split them manually into *.cs and
*.Designer.cs .
I didn't have any problems doing it "in the project".

Aug 7 '06 #6

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

Similar topics

1
by: Stuart Ferguson | last post by:
I am currently in the process of workin on Software in C# that has been converted to VS2005 from VS2003. My question is thet when i create a Windows Form it gets created as a partial class with...
7
by: Alan Silver | last post by:
Hello, I have installed the 2.0 framework, and am looking at converting some of my 1.1 pages to use partial classes. I don't (yet) have VS2005, so I'm doing this by hand, but am having problems....
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
3
by: Peter Stojkovic | last post by:
In VS.2003 all information was in one file example: form1.vb Now in VS.2005 the source-code is splitted into two files. I have a lot of windows. Is there any possibility to automatically...
2
by: Galil | last post by:
I have a subroutine I need to convert from vb.net 2005 to visual C++ ( .net 2005) The function only allows specific characters to be typed into a textbox. the backspace and 0 -9. Private Sub...
0
by: Samuel R. Neff | last post by:
We're migrating our .NET 1.1 web application to .NET 3.5 and during conversion we clicked "Convert to Web Application" on the web project. The results from this conversion were inconsistent. 1. ...
3
by: Academia | last post by:
I have a vs2003 project (actually 44 of them) that I want to convert to VS2005 format. To fix a usercontrol file I created the Designer.vb file and moved the Inherited and Class ( change to...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
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...
0
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...

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.