Solved

#Region missing in vb.net 2005

Posted on 2007-03-22
3
862 Views
Last Modified: 2010-07-27
With VB.net 2003 I used to be be able to copy a form just by selecting all the code and pasting it in a new project.  In vb.net 2005 The #Region " Windows Form Designer generated code " doesn't seem to exist in any new project I create.  This is the section where all the controls were defined.  This ability was great since you could just email some code to someone and they just could paste it in a new project and the form was completely designed with support code.
I don't want to have to manually design the form again.  Can this be turned back on in vb.net 2005?
0
Comment
Question by:Pber
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 7

Accepted Solution

by:
dctuck earned 350 total points
ID: 18771198
This is all placed in a seperate file now. You have to click on the "Show All Files" icon in the Solution Explorer (second from left), and then expand the form you want to display the code for. There will be a file named Form.Designer.vb, which contains that information...
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 18771232
Hi Pber;

In VB .Net 2005 they split that into two files. If you goto Solution Explorer window and click on the Show All Files button at the top of the window then click on the + sign next to the form you want to copy you will see some more files as sub nodes to the file.

For example if the form you are looking for is Form1.vb then as a sub node you will find a file called Form1.Designer.vb which holds all of the code that was in #Regions in VB .Net 2003.

Fernando
0
 
LVL 26

Author Comment

by:Pber
ID: 18772170
That definetely makes it tougher to transport, but thanks for the solution.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question