473,396 Members | 1,827 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.

2005 vs. 2003

cj
In 2003 I had

Public Class Form1
Inherits System.Windows.Forms.Form

In 2005 I've seen it with and without the Inherits
System.Windows.Forms.Form. Is it supposed to be there? I'm wondering
if in my cutting and pasting I put it there in some of my 2005 programs
and it is not necessary.
Apr 26 '07 #1
5 1487
In 2003 I had
>
Public Class Form1
Inherits System.Windows.Forms.Form
In 2005 I've seen it with and without the Inherits
System.Windows.Forms.Form. Is it supposed to be there? I'm wondering
if in my cutting and pasting I put it there in some of my 2005
programs and it is not necessary.
In VS2005 we have a new feature called "Partial Classes". this feature allows
a class to be broken up amongst many files. In this case the generated code
for you form is in a file called Form1.designer.vb which is hidden by default.
Like the .res files

What you need to do to see this file is to hit the Show all files in the
solution explorer window, whilst your project is selected.
you will then be able to hit a + symbol next to your forms entry and this
file will appear.

--
Rory
Apr 26 '07 #2
cj
Thanks, when I looked at the files as you noted I also noticed the 2005
programs that show it were upgraded from 2003. The ones w/o are 2005
from scratch. I wish when it upgraded a 2003 program it didn't put the
windows form designer generated code section in form1.vb cause it keeps
wanting to expand it and when I do a find it search it. I've taken a
couple 2003 programs that were upgraded to 2005 and started them over in
2005 from scratch then cut code from subs and pasted them into 2005 but
a lot of menus etc names are a bit different and all that has to be
considered.
Rory Becker wrote:
>In 2003 I had

Public Class Form1
Inherits System.Windows.Forms.Form
In 2005 I've seen it with and without the Inherits
System.Windows.Forms.Form. Is it supposed to be there? I'm wondering
if in my cutting and pasting I put it there in some of my 2005
programs and it is not necessary.
In VS2005 we have a new feature called "Partial Classes". this feature
allows a class to be broken up amongst many files. In this case the
generated code for you form is in a file called Form1.designer.vb which
is hidden by default. Like the .res files

What you need to do to see this file is to hit the Show all files in the
solution explorer window, whilst your project is selected.
you will then be able to hit a + symbol next to your forms entry and
this file will appear.

--
Rory

Apr 26 '07 #3
Hi Cj,

VS05 introduces the definition of Partial class, and places the Windows
Forms Designer generated code in a seperate file, i.e. .Designer.vb.

When we upgrade a VS.NET 2003 project to VS05 project, the Windows Form
Designer generated code won't be separated into a .Designer.vb file.
Instead, all code remains the same as the VS.NET 2003 project.

In fact, I don't think it's necessary to change the structure of the
project, i.e. separate the Windows Forms Designer generated code into a
..Designer.vb file.
I've taken a couple 2003 programs that were upgraded to 2005 and started
them over in 2005 from scratch then cut code from subs and pasted them into
2005 but a lot of menus etc names are a bit different and all that has to
be considered.

Could you please tell me why you need to cut and paste the code from VS.NET
2003 project to VS05 project? Could you tell me what you mean by "a lot of
menus etc names are a bit different and all that has to be considered"?
Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 27 '07 #4
cj
Hi Linda,

I got the answer I needed for this question but I don't mind explaining
if you want to know.

I don't like the Windows Forms Designer Generated code being placed in
form1.vb in a 2005 program. If I upgrade it is put there. However I
can start a new project and cut and paste the code for each sub over to
the new program. Of course I have to create the form in designer again.
Menu's have changed from 2003 to 2005. The old main menu is gone and
the new menu stip so I need to make sure everything is named
appropriately in the 2005 program so the code I'm cutting from the 2003
program will work in it.

Overall I'm happy upgrading works and works very well but it has things
that irritate me like not converting the 2003 Windows Forms Designer
Generated code to the new 2005 way of doing things.
Linda Liu [MSFT] wrote:
Hi Cj,

VS05 introduces the definition of Partial class, and places the Windows
Forms Designer generated code in a seperate file, i.e. .Designer.vb.

When we upgrade a VS.NET 2003 project to VS05 project, the Windows Form
Designer generated code won't be separated into a .Designer.vb file.
Instead, all code remains the same as the VS.NET 2003 project.

In fact, I don't think it's necessary to change the structure of the
project, i.e. separate the Windows Forms Designer generated code into a
.Designer.vb file.
>I've taken a couple 2003 programs that were upgraded to 2005 and started
them over in 2005 from scratch then cut code from subs and pasted them into
2005 but a lot of menus etc names are a bit different and all that has to
be considered.

Could you please tell me why you need to cut and paste the code from VS.NET
2003 project to VS05 project? Could you tell me what you mean by "a lot of
menus etc names are a bit different and all that has to be considered"?
Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Apr 27 '07 #5
Hi Cj,

Thank you for your prompt response and detailed explanation.

I understand what you mean. Yes, Menu is replaced with MenuStrip in VS05,
but we could still use Menu in VS05 without any question.

As I have mentioned in my first reply, when a VS.NET 2003 project is
upgraded to a VS05 project, the code in the upgraded project will remain
the same as the VS.NET 2003 project.

I don't think it's a good idea to manually separate the Windows Forms
Designer generated code in the upgraded project into a .Designer.vb file. I
agree that you create a new VS05 project and copy the code in the VS.NET
2003 project into the new VS05 project. Of course, you need to create the
UI from scratch in the new VS05 project.

If you have any other question in the future, please don't hesitate to
contact us. It's always our pleasure to be of assistance!

Have a nice weekend!

Sincerely,
Linda Liu
Microsoft Online Community Support

Apr 28 '07 #6

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

Similar topics

7
by: tony | last post by:
Hi Any one know that can VS.net 2005 with vs.net 2003 worked together in one manchine? if it can working together, how can I set up it? Thanks Tony
5
by: Uncle Ben | last post by:
At a recent MSDN conference, one of the presenters vehemently said that VS.NET 2003 (because of its web project) is only good for _single_ developers. He said that if you're working in a team...
1
by: Larry Bertolini | last post by:
I was browsing Microsoft's SQL Server site, looking for some details about SQL Server 2005. Didn't find what I was looking for... I'm thinking about moving an existing SQL Server 2000 workload...
8
by: DraguVaso | last post by:
Hi, I had Visual Studio 2003 installed, and installed also visual Studio 2005 Beta 2. The problem is, when I am starting now (double click) a solution (*.sln-file), it always start it with...
7
by: Rene | last post by:
I am still waiting for my copy of VS 2005 that I ordered about 2 weeks ago. When I finally get VS 2005, I will want to continue to run my projects using 2003 and at the same time I want to make a...
3
by: Learner | last post by:
Hi there, I have one another question on VSS 2005 and VS 2003. We had few projects built in VS 2003 and we had all of those projects under the VSS 6.0 until now. But as part of our development...
10
by: kmich | last post by:
I am planning on learning C#. Would it be best to learn on a full version of 2003 Pro or 2005 Express. What would be the advantages/disadvantages? Thank you for your time.
4
by: John Kotuby | last post by:
Hello all, I have VStudio 2005 currently installed on my workstation. However, I am collaborating on a project with an outside consultant who is using VS 2003. Every so often he sends me new or...
9
by: wandii | last post by:
Hi, I have written couple of projects which include several crystal reports in VS.net 2003 (VB.Net) and company would like to move to VS 2005. What does it take to convert to Visual Studio.Net...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.