Solved

VB Express 2010 PowerPack problem

Posted on 2011-02-25
6
1,354 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

932 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

11 Experts available now in Live!

Get 1:1 Help Now