C#C
C#2y ago
Maycon

border style error c#

I am mirroring a user control within a panel like this:

        private Optionals.Discord discord;



        private void Discord()
        {
            discord= new Optionals.Discord();

            discord.Dock = DockStyle.Top;

            guna2Panel1.Controls.Add(discord);
        }



        public Form1()
        {
            InitializeComponent();
            Discord();
        }


It's working correctly, but my guna2panel1 has a border, and when I use this code to mirror the user control, the border disappears. Does anyone know of a solution?

c# winforms .net
Was this page helpful?