Solved

VB Express 2010 PowerPack problem

Posted on 2011-02-25
6
1,370 Views
Last Modified: 2012-05-11
I have a program I started in VB Express 2010.  Everything was working fine, I have the UI complete and much of the coding is done.  For reasons (not related to my program) beyond this post, I had to reinstall the OS (Win 7 x64) and reinstall VB Express 2010.  This was done as a new clean install (new drive).  My original program used a few features of the PowerPack (line and circle).  When I first attempted to load my program, I got an error that the ShapeContainer and LineShape were not defined.  I realized that I hadn't installed the PowerPack.  I quit my program (didn't save it) and proceeded to install the PowerPack tools.  However when I reload my program, it doesn't recognize that the PowerPack tools exist. If VB sees errors in the Form.vb(Design) code, it won't display the design.  I commented out the error lines (which is frowned upon), and my UI design is visible (without the lines and circles).   I can see the tools in the Tool Box, and in fact I can add a line to my existing UI.  However if I add a line, I get the same error (Microsoft.VisualBasic.PoserPacks.LineShape is not defined.  I have tried to remove the reinstall the PowerPack - doesn't help.  Anyone have any ideas about this?  I really need my lines and circles!
Thanks in advance
0
Comment
Question by:TopCatOnyx
  • 4
  • 2
6 Comments
 

Author Comment

by:TopCatOnyx
ID: 34985481
I also get a warning: "Type 'Microsoft.VisualBasic.PowerPacks.ShapeContainer' is not defined.      "
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 34987676
1) I haven't seen this problem before

2) It sounds like something has changed

3) This kind of problem usually takes a little digging to find a cause

4) For me, information is king.  

5) What version of the Power Pack are you working with?

6) What do your project references look like?
0
 

Author Comment

by:TopCatOnyx
ID: 34989485
Hi,
I downloaded version 3.0 of the Power Pack.
In the references there is a listing for "Microsoft.VisualBasic.PoserPacks.Vs" however there is a warning sign beside it.  the warning says "The referenced component 'Microsoft.VisualBasic.PoserPacks.Vs' could not be found.".  The properties show:
Copy Local: False
Embed Interop types: False
File Type: Assembly
Identity: Microsoft.VisualBasic.PoserPacks.Vs
Resolved: False
Specific Version: True
Strong Name: False
Version: 0.0.0.0

So it looks like it can't be found, but I went through the defined method of adding it into the project (right click in the Tools area, Choose Items etc.).
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:TopCatOnyx
ID: 34997472
I also found that if I start a new project and place a line and an oval on the form, everything works as advertised.  The problem is only with my existing program.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 34999565
Did you try to remove and add the reference back in the project references?
0
 

Author Closing Comment

by:TopCatOnyx
ID: 35000254
I thought that I had done that, but after doing it (maybe again!) and restarting the program, everything worked.  Thank you very much for your help.  EE is a great place to find answers.  Almost everyone with whom I have had contact has been very helpful.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

839 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