Skip to content

Problem With Placing A MetroLabel in Child Form in MetroTabControl(ModernUI) #133

@aamkaachaar

Description

@aamkaachaar

Hi,
I am Using a metrotile to load a childform in current tabpage index of a Dashboard form ... Things Goes well as far as i dont use any label into my ChildForm but if i place a Label into my child Form the childform loads with current content of metrotabpage. i dont know if it is bug or i m doing some mistake ..
code used by me on Metrotile Click :
ChildForm1 cf1 = new ChildForm1();
cf1.TopLevel = false;
int pos = metroTabControl1.SelectedIndex;
TabPage tp = metroTabControl1.TabPages[pos];
tp.Controls.Add(cf1);
cf1.WindowState = FormWindowState.Maximized;
cf1.Dock = DockStyle.Fill;
cf1.Show();
same for ChildForm2
both childform shadowtype is set to none in properties
i am attaching Images of Problem Faced

image1
image2
Image3
image4

Problem Arise only with placing MetroLabel in childForm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions