Hi everyone,
I am working on a UserControl that has a Label for Title and a Panel that should hold other controls. My question is how can I make the this UC as a container during Design Time to be able to add the required controls to the Panel? I searched the web and found the following:
This code works but it adds the newly created controls to the UserControl itself not the Panel.
Help/Suggestions are highly appreciated.
I am working on a UserControl that has a Label for Title and a Panel that should hold other controls. My question is how can I make the this UC as a container during Design Time to be able to add the required controls to the Panel? I searched the web and found the following:
Code:
Imports System.ComponentModel
Imports System.ComponentModel.Design
<Designer("System.Windows.Forms.Design.ParentControlDesigner,System.Design", GetType(IDesigner))>
Public Class UserControl1
Inherits System.Windows.Forms.UserControl
...
...
End Class
Help/Suggestions are highly appreciated.