Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9219703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:10:34+00:00 2026-06-18T03:10:34+00:00

I have 3 user controls and i am inserting them into a Tab control

  • 0

I have 3 user controls and i am inserting them into a Tab control in 3 different tabs. My issue here is that the button design and panel design is altered when i insert then user controls into the tab control. One example is the the butttons have sharp edges instead on round. What is causing this ?

this is my code for inserting the user controls into the tab control:

public void addUC(UserControl control, TabPage tab)
{
    control.Parent = tab;
    control.Anchor = (AnchorStyles.Bottom | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Left);
}

Designer.cs class:

 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.panel2);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.adresseListPanel);
            this.Controls.Add(this.landComboBox);
            this.Controls.Add(this.searchPanel);
            this.Name = "CustomerMainControl";
            this.Size = new System.Drawing.Size(1291, 568);
            this.Load += new System.EventHandler(this.CustomerMainControl_Load);
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.CustomerMainControl_KeyDown);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.adresseListPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.adresseDataGrid)).EndInit();
            this.searchPanel.ResumeLayout(false);
            this.searchPanel.PerformLayout();
            this.ResumeLayout(false);

can anyone help me with this ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:10:36+00:00Added an answer on June 18, 2026 at 3:10 am

    A relevant detail from your UI:

    enter image description here

    This is what a GUI looked like on old Windows versions, 2000 and before. Your app is running without Visual Styles enabled. Which will happen when your Main() method in Program.cs does not call Application.EnableVisualStyles(). The boilerplate code generated from the project template:

        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();          // <=== HERE!
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    

    Hard to guess how that happened without any hints. If you have no idea how your app starts then press F11 to debug the startup code of your app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two user controls, in one of them I have a textbox, i
I have got 5 user controls placed in some Control folder, at run time
I have several similar user controls which display listviews of respectively different data entities.
I use webforms/masterpage, with .NET. I Have many Web User Controls into my page.
I have a User Control Library that I am loading dynamically. From that lib
I have some user controls in ASP.NET that I am using as simply HTML,
I have a ASP.NET GridView that uses template columns and user controls to allow
Background I have a User Control (an .ascx file) which is being dynamically inserting
I have an ASP.Net web user control that contains a TextBox and a calendar
I have two User Controls already created now I want to use one as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.