Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VisualBasic PowerPack

Status
Not open for further replies.

JScannell

Programmer
Jan 9, 2001
306
US
This one is a little hard to explain, but I will give it my best shot.

I have a vb.net desktop application developed. I am using VS 2010.
I have a reference set to Microsoft.VisualBasic.PowerPacks.vs
Some of my forms have a ShapeContainer with one or more LineShape objects. These items can be found in my xxx.Designer.vb file. When I run the application lines appear based on the contents of code like this that I found in the xxx.Designer.vb file:
'
'ShapeContainer1
'
Me.ShapeContainer1.Location = New System.Drawing.Point(0, 0)
Me.ShapeContainer1.Margin = New System.Windows.Forms.Padding(0)
Me.ShapeContainer1.Name = "ShapeContainer1"
Me.ShapeContainer1.Shapes.AddRange(New Microsoft.VisualBasic.PowerPacks.Shape() {Me.LineShape11, Me.LineShape10, Me.LineShape12, Me.LineShape9, Me.LineShape8, Me.LineShape7, Me.LineShape6, Me.LineShape5, Me.LineShape4, Me.LineShape3, Me.LineShape2, Me.LineShape1})
Me.ShapeContainer1.Size = New System.Drawing.Size(816, 760)
Me.ShapeContainer1.TabIndex = 35
Me.ShapeContainer1.TabStop = false
'
'LineShape11
'
Me.LineShape11.Name = "LineShape11"
Me.LineShape11.X1 = 742
Me.LineShape11.X2 = 786
Me.LineShape11.Y1 = 490
Me.LineShape11.Y2 = 490


For some reason, when I look at the design view of the forms that have these objects, I can't actually see the lines. I have to run the application to actually see them. I don't know why this is. It might be a holdover from when the application was originally developed over 20 years ago, but that's beside the point.

I need to be able to see the various LineShape objects in the design view so I can move some of them around as needed.

I initially thought it was because I didn't have "Visual Basic Powerpack" entry in my toolbox so I added it. I still don't see the ShapeControl nor its contents. I can find the ShapeControl1 in the Properties tab, but I can't edit any of the properties. I can only find them in the Designer.vb file.

Please see the attachment...

Thanks in advance,
Jerry

Jerry Scannell
 
 https://files.engineering.com/getfile.aspx?folder=036e1dfa-4b8d-4620-976d-9ef4f16bebe8&file=Shape_Control.pdf
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top