Click here to Skip to main content
11,921,753 members (67,885 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET convert
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
Posted 18-Jun-12 23:41pm

1 solution

Rate this: bad
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)

  Print Answers RSS
0 OriginalGriff 493
1 Dave Kreskowiak 220
2 phil.o 170
3 Sergey Alexandrovich Kryukov 157
4 KrunalRohit 134
0 OriginalGriff 7,036
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,286
3 George Jonsson 2,840
4 Suvendu Shekhar Giri 2,216

Advertise | Privacy | Mobile
Web02 | 2.8.151120.1 | Last Updated 6 Aug 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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