添付の画像をご覧ください。
なりたい
Public components As System.ComponentModel.lContainer
しかし、フォームのデザインを編集するたびに、常に元のコードに戻ります
Private components As System.ComponentModel.lContainer
添付の画像をご覧ください。
なりたい
Public components As System.ComponentModel.lContainer
しかし、フォームのデザインを編集するたびに、常に元のコードに戻ります
Private components As System.ComponentModel.lContainer
あなたのようなプライベートメンバーを返すパブリックプロパティをクラスに持つことができます。このコードはフォーム デザイナーによって生成されたものであり、おそらくこの動作を変更することはできません。できたとしても、これを行うことはお勧めしません。
Public Class MyForm
Public Property Container As System.ComponentModel.IContainer
Get
Return Me.components
End Get
End Property
End Class
乾杯