1

I had some UserControls in VB6. I want to convert to C#. What are the equivalent events in C#?

Private Sub UserControl_Initialize()
'...
End Sub

Private Sub UserControl_InitProperties()
'...
End Sub

Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
'...
End Sub

Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
'...
End Sub
R.J. Dunnill
  • 2,049
  • 3
  • 10
  • 21
Jonney
  • 91
  • 6
  • See this [Code Project article](http://www.codeproject.com/Articles/12282/Implementing-a-PropertyBag-in-C). also look at this [SO question](http://stackoverflow.com/questions/569707/converting-vb6-propertybag-in-net) it deals with vb.net but should still be applicable – Mark Hall Mar 25 '15 at 03:04
  • Thanks. I am new babie in C#. – Jonney Mar 25 '15 at 05:34
  • 1
    In Windows Forms, component properties are normally populated via the parent's InitializeComponent() method. – R.J. Dunnill Jul 31 '20 at 20:32

0 Answers0