0

I'm using Visual Basic with Visual-Studio 2017. I have a class derived from panel with a property for an array of points.

Public Class PrinterView
    Inherits Panel
    Private _FeederStart(3) As Point
    Private _CenterPoint As Point

    <System.ComponentModel.Category("PrinterView")>
    Public Property FeederStart As Point()
        Get
            Return _FeederStart
        End Get
        Set(value As Point())
            Count += 1
            lb1.Text = Count.ToString
            _FeederStart = value
            SetAllLinePoints()
        End Set
    End Property

The property appears as expected in the designer, but when I change a point value in the designer property window, it seems the value is not updated in my panel control. Another property with a simple point works well and is immediately updated when I have change a value with the designer.

    <System.ComponentModel.Category("PrinterView")>
    Public Property CenterPoint As Point
        Get
            Return _CenterPoint
        End Get
        Set(value As Point)
            _CenterPoint = value
            SetAllLinePoints()
        End Set
    End Property
jokn
  • 44
  • 7
  • I figured it out. This post gives me the answer: https://stackoverflow.com/questions/38561197/cant-edit-point-or-listpoint-at-design-time – jokn Dec 03 '22 at 19:02

0 Answers0