Click here to Skip to main content
14,218,489 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all,

I am upgrading my product from VB6 to and i am getting error while converting the shape control as it is not the part of .net..

I am using a structure for properties. i.e. i want the following properties :

Structure TagShape
Dim bDelFlag As Boolean
Dim sName As String
Dim iLeft As Short
Dim iTop As Short
Dim iWidth As Short
Dim iHeight As Short
Dim bVisible As Boolean
Dim hwnd As Integer
Dim iBorderWidth As Short
Dim iBorderStyle As Short
Dim sFillColor As String
Dim sBorderColor As String 'New
Dim iFillStyle As Short
Dim iShapeType As Short
Dim bTemp As Boolean
End Structure

I am using

Public WithEvents TP_Shape As List(Of PowerPacks.RectangleShape)but the conrols are not being added to the picture box.Can i use alternative to that???
Need urgent help

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

please use VB power pack as alternative to your shape
it is free tool from Microsoft

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100