Visual Basic Development Bookmark and Share   
 Home > Visual Basic Power Packs > RectangleShape not working in 2010?
 

RectangleShape not working in 2010?

Hi,

I recently installed Visual Basic 2010 Express Edition Beta 2, it came with Visual Basic Power Pack which included the RectangleShape.

It appears I keep receiving an error after I build or try to save the project, and the form in designer mode is no longer accesssible, instead there's a massive error message which just covers the whole form it says something along the lines of:

System.NullReferenceException: Object reference not set to an instance of an object.

plus other stuff

This is exactly what I did, in case you decide to try it out yourself:
I created a form, with a FormBorderStyle 'None' and set a background image. I then put a RectangleShape, BackColour 'White', BackStyle 'Opaque', BorderColour 'Silver', CornerRadius '7'.

It works the first build, but then upon returning to the designer mode, I receive the error.

I also downloaded VB PowerPack 3.0

Any suggestions?

Regards
Alvin K.N. Tan  Wednesday, November 25, 2009 9:47 PM
Hi Alvin,

I can't reproduce the behavior - it works for me without error. If you try this with a new project are you still getting the error?

Also, don't use Power Packs 3.0, use the versions of the controls that are included in VB 2010.
Steve Hoag Microsoft aka the V-Bee
shoagMSFT  Monday, November 30, 2009 10:14 PM

You can use google to search for other answers

Custom Search

More Threads

• Selecting a list box item by more characters
• VB6 Graphics
• runtime error 339
• Using DataRepeater, place custom user control in template
• Help, I need XIRR Function in my VB project.
• Do I need to install visual basic powerpack 3.0 on client pc's
• Printform questions
• PrintForm v2.0
• This should be a simple fix.
• DataRepeater and databound ComboBox - forcing lookup for every row