Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15237

VS 2019 Just a visual thing (names in Properties Window(Box))

$
0
0
Hi,

I have some Style-members as Integer()
And a private member myStyle as integer
Code:

    Public ExpandAll() As Integer = New Integer() {Expand, Expand, Expand, Expand}
    Public FloatAll() As Integer = New Integer() {Float, Float, Float, Float}
    Public LockAll() As Integer = New Integer() {Lock, Lock, Lock, Lock}
    Public RigidAl() As Integer = New Integer() {Rigid, Rigid, Rigid, Rigid}
    Public DLeft() As Integer = New Integer() {Expand, Rigid, Rigid, Rigid}
    Private myStyle() As Integer = DLeft

There is a Property to show in the PropertiesBox
Code:

  Public Property Style As Integer()
        Get
            Return myStyle
        End Get
        Set(value As Integer())
            myStyle = value
        End Set
    End Property

In the PropertiesBox my Property appears as:

Style_________Int32[]Array
[0]__________ 0
[1]__________ 3
[2]__________ 3
[3]__________ 3


I would like it to be shown as, for instance, the Padding Property.
So with meaningful names like: All, Left,Top, etc.Anybody knows if, and if so, how this can be done?

Viewing all articles
Browse latest Browse all 15237

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>