类型“游标”的值不能转换为枚举器

时间:2018-09-13 15:18:16

标签: vb.net

我将代码从Vb6迁移到Vb.Net,并且出现“无法将'Cursor'类型的值转换为枚举器”错误。代码在下面

Public Property MousePointer() As enmMousePointer
    Get
        MousePointer = MyBase.Cursor(this where error been thrown)
    End Get
    Set(ByVal Value As enmMousePointer)

        MyBase.Cursor = Value
        RaiseEvent MousePointerChange()
    End Set
End Property

下面的一个是enmMousePointer

Public Enum enmMousePointer

    Default_Renamed = 0
    Arrow = 1
    Cross = 2
    I_beam = 3
    Icon = 4
    Size = 5
    Size_NE_SW = 6
    Size_N_S = 7
End Enum

0 个答案:

没有答案