Solved

VB Express 2010 PowerPack problem

Posted on 2011-02-25
6
1,350 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now