473,587 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1075
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="ctlPro gressBar.Design er.vb">
<DependentUpon> ctlProgressBar. vb</DependentUpon>
</Compile>
<Compile Include="ctlPro gressBar.vb">
<SubType>UserCo ntrol</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
3901
by: Rajiv Das | last post by:
VS 2003, XP SP2 ------------------------------------------------------------ DirectoryInfo temporary = new DirectoryInfo( Environment.GetFolderPath(Environment.SpecialFolder.InternetCache)); FileInfo files = temporary.GetFiles(); foreach(FileInfo fi in files) { Console.WriteLine(fi.FullName); }
8
1747
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 is identical except that the test site has a different IP and some path changes were made in web.config to match the different location. First site...
10
7822
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 'to.txt' I specify where to copy it - After I read content of 'to.txt' I create one more subfolder named by current date and thats where everything gets...
0
1230
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 folders. When I work on the new project Pr1 I would like to have all the source files of Pr2 ( * no DLL !! * ) available within Pr1, without copying...
8
2128
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 to use os.path.join to make a file or directory location prior to pickling something to it. But I have a question about it. In Windows I can make...
22
7420
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 project directory structure is a mess of files and directories What files should be in source control (All final builds willbe done on anothe...
1
1811
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 holds file paths for all of the most important files (for easy access and tracking) and a short description of what each file is. Now, sometimes a...
1
3876
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 a single folder called 'All Files' Do we spread them out and copy them to multiple folders like Folder 000 - Copy files from 0 to 1000 Folder 001...
3
2811
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 downloaded them. now it is just saying "No configuration file found and no installation code available. Exiting..." It is not even telling the...
0
7843
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7967
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6621
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5713
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.