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

Moved .vb files into folders via VS, and now everything's a mess...

Hi Everyone,

To better organize my code I created to Folders in Visual Studio 2005,
one for Forms and one for Logic... then I moved the .vb files into
the appropriate folders. It worked great for all but two forms, which
now Visual Studio has unlinked the Designer.vb file, .resx file,
and .vb files. So now when I double-click on the .vb file for the
form, it's just blank.

How to I get VB to put these back together???

Thanks --

Alex
Aug 6 '08 #1
1 1068
On Wed, 6 Aug 2008 14:58:20 -0700 (PDT), Alex <sa*****@gmail.com>
wrote:
>Hi Everyone,

To better organize my code I created to Folders in Visual Studio 2005,
one for Forms and one for Logic... then I moved the .vb files into
the appropriate folders. It worked great for all but two forms, which
now Visual Studio has unlinked the Designer.vb file, .resx file,
and .vb files. So now when I double-click on the .vb file for the
form, it's just blank.

How to I get VB to put these back together???

Thanks --

Alex
With VS closed, make a copy of the .vbproj file, then edit the .vbproj
file in a text editor like Notepad.

With properly linked files you will see something like:

<Compile Include="ctlProgressBar.Designer.vb">
<DependentUpon>ctlProgressBar.vb</DependentUpon>
</Compile>
<Compile Include="ctlProgressBar.vb">
<SubType>UserControl</SubType>
</Compile>

One of two things has happened to you. Either the designer file is no
longer part of the project, or it has become unlinked. For files that
have become unlinked, you need to add the DependentUpon clause.
Aug 6 '08 #2

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

Similar topics

3
by: Rajiv Das | last post by:
VS 2003, XP SP2 ------------------------------------------------------------ DirectoryInfo temporary = new DirectoryInfo( Environment.GetFolderPath(Environment.SpecialFolder.InternetCache));...
8
by: lightcap | last post by:
Server Windows 2003. Created one web site, everything works fine. Copied the content to another folder and created another web site pointing to the copied contecnt for test purposes. Configuration...
10
by: Martin Ho | last post by:
I am running into one really big problem. I wrote a script in vb.net to make a copy of folders and subfolder to another destination: - in 'from.txt' I specify which folders to copy - in...
0
by: tommaso.gastaldi | last post by:
I have a solution with 1 project on which I am working on say Pr1 I have another solution with another project, say Pr2. Source file in the existing Pr2 are organized within several nested...
8
by: crystalattice | last post by:
I'm sure this has been addressed before but it's difficult to search through several thousand postings for exactly what I need, so I apologize if this a redundant question. I've figured out how...
22
by: MarkusR | last post by:
I am currently using StarTeam for my source control. (Will eventual switch to whatever the latest Visual Source Safe is going to be called). With debug, installers, deploy and everything the...
1
by: Bigrabid | last post by:
Howdy, I have an access database that I use to keep track of projects that my group is working on. There are a number of files associated with any one project, so I have as a parent to , which...
1
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
Using .NET 2.0 is it more efficient to copy files to a single folder versus spreading them across multiple folders. For instance if we have 100,000 files to be copied, Do we copy all of them to...
3
by: V S Rawat | last post by:
I have to work on a website (in php). I downloaded index.php and when I loaded it through my wamp localhost php installation, it gave some errors mentioning the file names, from includes\ so I...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.