Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2010 > Visual Basic 2010 General Discussion
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Visual Basic 2010 General Discussion For any discussions about Visual Basic 2010 topics which aren't related to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2010 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 25th, 2011, 08:40 PM
Registered User
 
Join Date: Mar 2011
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Question Moving up from VB5 to VB 2010

I've been programming in VB5 for several years and have decided it's time to move up to VB 2010. The environment looks tantalizingly familiar but totally foriegn at the same time. I'm a little daunted. Two questions to start:

1) In VB5 you can build a form in one project and reuse it in another by copying two files (FORM.frm and FORM.frx). How do you do this in VB 2010, there doesn't seem to even be an option to "Add Existing Form"? Also once you add a form, how do you remove it?

2) In VB5 you can Dim objects as Database, RecordSet, and QueryDef and using an SQL string create a QueryDef that will load a Recordset from a Database and in code manipulate the resulting Recordset. How can I do basically the same thing in VB 2010?
Reply With Quote
  #2 (permalink)  
Old March 26th, 2011, 08:35 AM
Authorized User
Points: 319, Level: 6
Points: 319, Level: 6 Points: 319, Level: 6 Points: 319, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2010
Location: MIssouri
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Default Huge Step.

There are 3 files that VB2010 uses for each form. The easiest and safest wat to move them is to open a project that you want to move a form into, or open a new project. ON the right pane you will see the solution explorer, if not press ctrl + alt + L. in the solution explorer right click the solution name, then click add. Then select existing Item. navigate to the folder where the form was saved.
To delete Right click the Form name you want to delete in the solution explorer, then select delete.


Now Data Access is a whole nother Ball Game... Not nearly as easy as form moving.... VB5 only used DAO. NOt to worry. Data can be move into other data formats... Later. There are 3 Main Data Access Protocols used with VB2010 . All of them a bit more involved than DAO.

I hate to suggest a diferent publisher than Wrox, because I love this P2P site!! but I had really good luck with MAstering Visual Basic 2010 Sybex Publishing... http://www.sybex.com/go/masteringvb2010. It was very much worth the price.

Check my Profile if you want more direct help.

Last edited by GeneBuchite; March 26th, 2011 at 08:41 AM.. Reason: Proofing
Reply With Quote
The Following User Says Thank You to GeneBuchite For This Useful Post:
VB2010Newbie (March 26th, 2011)
  #3 (permalink)  
Old March 26th, 2011, 08:49 AM
Registered User
 
Join Date: Mar 2011
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default Huge Help

Thanks, this is a big help. You said there were three files, could you tell me which files they are. My brother and I collaborate on projects, each developing a different form for the project - he lives in Nebraska and I live in Texas so we need to email the form files back and forth.

OK - now help me out with this forum (first time here as well). I saw somewhere when I was registering that if you appreciated someone's post you should click a "Thank You" response - I appreciate your help, so how do I do that?

Also, you said to "Check your profile?" What's that and how do I do it?
Reply With Quote
  #4 (permalink)  
Old March 26th, 2011, 12:09 PM
Authorized User
Points: 319, Level: 6
Points: 319, Level: 6 Points: 319, Level: 6 Points: 319, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2010
Location: MIssouri
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Default Reply

If your form is named " Form1" Then 3 Files Will Be... Form1.VB, Form1.Designer.vb, And Form1.resx. After Transfering the file you will need to Add the Form like I discussed earlier.

There is a better way of doing what you are wanting to do using the team foundation server; altho it is way above what I have been able to learn so far.

To View my Profile just Click on my username "GeneBuchite" anywhere you see it in the Forum, under the "Last Post" Heading. IE VB 2010 Book Beginning Microsoft Visual Basic.

Last edited by GeneBuchite; March 26th, 2011 at 12:11 PM.. Reason: Update
Reply With Quote
The Following User Says Thank You to GeneBuchite For This Useful Post:
VB2010Newbie (March 26th, 2011)
  #5 (permalink)  
Old March 26th, 2011, 12:36 PM
Registered User
 
Join Date: Mar 2011
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Smile Appreciation

Thanks, that is exactly what I need at the moment. And I am sure there are a lot of things that I do that there are better ways to do them - maybe sometime in the future but I have a long learning curve with just what I have chewed off.

By the way - I checked out that book you suggested and have decided to get it. I found a pretty good deal on it at Amazon.com - just $37 vs $60 at the Sybex site.

I'm glad there are experienced guys like you willing to help out a newbie. I very much appreciate your help.
Reply With Quote
  #6 (permalink)  
Old June 17th, 2011, 09:33 AM
Authorized User
Points: 319, Level: 6
Points: 319, Level: 6 Points: 319, Level: 6 Points: 319, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2010
Location: MIssouri
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Default Egg on My Face...

It has been quite a while since posting about reference material. I hope the book I suggested has helped make the transaction between Vb5 And vb.net 4 relatively smooth. I owe a BIG appology to WROX for suggesting that you look at other books besides theirs. altho the suggested book did help me with the transition; the book "Professional Visual Basic 2010 and .net 4 " Goes into depth, teaching about the DataContext, from beginning to end. Datacontext makes use of LINQ in ways that are much faster to code than what is presented in the other book... Wish Barns & Noble had in on their shelf when I first looked for help with vb.net4!
Kudos to Wrox... again. Sorry to have strayed!
After 2 hours of studying books on the shelf at Barns & Noble, I came to the conclusion that "Professional Visual Basic 2010 and .net 4 " is The authority on Database programming with vb.net
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 07:03 AM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 07:02 AM
VB5.0 to VB .Net upgradation issue related to DAO setu VB How-To 1 October 10th, 2007 03:15 PM
Do VB5 and Access 2003 play together? zontar Beginning VB 6 1 March 8th, 2005 09:58 AM



All times are GMT -4. The time now is 10:33 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.