Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27066

VS 2012 How can I make a Panel in a UserControl as a Container during DesignTime?

$
0
0
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:

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

This code works but it adds the newly created controls to the UserControl itself not the Panel.

Help/Suggestions are highly appreciated.

Viewing all articles
Browse latest Browse all 27066

Trending Articles



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