7 Replies - 2318 Views - Last Post: 04 July 2011 - 12:31 AM Rate Topic: -----

#1 lxdyglt  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 03-July 11

VB.net source without .sln and .vbproj file

Posted 03 July 2011 - 10:30 PM

I've received a VB.net source without the .sln and .vbproj file, How can I use this source in Visual Studio 2008.

I've tried to create an empty form and replace the "Form1.vb" with the "Form1.vb" from the source and put other files in as well but it doesn't work. The source was generated by Visual Studio 2005 I suppose.

Any help is appreciated.
Is This A Good Question/Topic? 0
  • +

Replies To: VB.net source without .sln and .vbproj file

#2 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1819
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: VB.net source without .sln and .vbproj file

Posted 03 July 2011 - 10:42 PM

I will suggest to do the following, if you have the .vb files ( I assume you have no .Design.vb and .resx as well) only:

Create a new application, create form required in your project, add them with controls required in each form, then open code part of every form and paste the appropriate code fom your original files
Was This Post Helpful? 0
  • +
  • -

#3 lxdyglt  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 03-July 11

Re: VB.net source without .sln and .vbproj file

Posted 03 July 2011 - 10:53 PM

I've tried but failed again, I think I fail to understand the words "add them with controls required in each form", would you explain in a bit more detail? Thanks a lot

PS: I have both 2 types of files which are .vb and .resx.
Was This Post Helpful? 0
  • +
  • -

#4 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1819
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: VB.net source without .sln and .vbproj file

Posted 03 July 2011 - 11:14 PM

What I meant is, you have to add all required controls like text boxes and labels with he same names as the original project. How will you know that? Looking at your code you will know what things have been used.
OK, if you answer the following two questions, we will know where to start:
- Do you have the .Design.vb file?
- What error message you get when you tried what I have told you to do?
Was This Post Helpful? 0
  • +
  • -

#5 lxdyglt  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 03-July 11

Re: VB.net source without .sln and .vbproj file

Posted 03 July 2011 - 11:27 PM

View Postsmohd, on 03 July 2011 - 11:14 PM, said:

- Do you have the .Design.vb file?

No, I don't have this file, I've got only 2 types of files which are .vb and .resx.


View Postsmohd, on 03 July 2011 - 11:14 PM, said:

- What error message you get when you tried what I have told you to do?

The error messages are something like "property AssemblyTitleAttribute can't be applied for multiple times" (many other similar ones) and "Private Sub InitializeComponent() has multiple definitions with the same signature" (many similar ones as well)
Was This Post Helpful? 0
  • +
  • -

#6 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1819
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: VB.net source without .sln and .vbproj file

Posted 03 July 2011 - 11:48 PM

Then do the following:
- Create a new project and add form as what was in the previous projects
- Open code part of every form and paste the codes from original form(dont copy files just lines of code, those errors means you have same definitions caused by having files twice)
-(you need to know what have controls have been there before since you have no .Design.vb files as I said). But if you dont errors will tell you what controls are not declared.....

Try that, and if error messages occurs post them, those will tell us what is missing :)
Was This Post Helpful? 1
  • +
  • -

#7 lxdyglt  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 03-July 11

Re: VB.net source without .sln and .vbproj file

Posted 04 July 2011 - 12:16 AM

View Postsmohd, on 03 July 2011 - 11:48 PM, said:

Then do the following:
- Create a new project and add form as what was in the previous projects
- Open code part of every form and paste the codes from original form(dont copy files just lines of code, those errors means you have same definitions caused by having files twice)
-(you need to know what have controls have been there before since you have no .Design.vb files as I said). But if you dont errors will tell you what controls are not declared.....

Try that, and if error messages occurs post them, those will tell us what is missing :)

Thanks alot, it magically worked :bigsmile:
Was This Post Helpful? 0
  • +
  • -

#8 smohd  Icon User is offline

  • Critical Section
  • member icon


Reputation: 1819
  • View blog
  • Posts: 4,627
  • Joined: 14-March 10

Re: VB.net source without .sln and .vbproj file

Posted 04 July 2011 - 12:31 AM

Glad we could help :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1