本文介绍了VB.net中的形状控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我将我的产品从VB6升级到Vb.net,并且在转换形状控件时遇到错误,因为它不是.net的一部分.
我正在为属性使用结构.即我想要以下属性:

结构TagShape
昏暗的bDelFlag为布尔值
昏暗的sName作为字符串
Dim iLeft As Short
昏暗的iTop简短
昏暗的iWidth变短
矮小的iHeight
Dim bVisible As Boolean
Dim hwnd As Integer
昏暗的iBorderWidth尽可能短
昏暗的iBorderStyle简短
昏暗的sFillColor作为字符串
昏暗的sBorderColor作为字符串''New
昏暗的iFillStyle简短
将Dim iShapeType设为短
昏暗bTemp为布尔值
端部结构


我正在使用

公共WithEvents TP_Shape作为列表(PowerPacks.RectangleShape的列表),但未将控件添加到图片框中.我可以使用替代方法吗??
需要紧急帮助

Hi all,

I am upgrading my product from VB6 to Vb.net 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

推荐答案


这篇关于VB.net中的形状控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 17:23