dennismagno / metroframework-modern-ui

My humble attempt to bring the new Modern UI alias Metro UI of Windows 8 to .NET Windows Forms applications.
http://dennismagno.github.io/metroframework-modern-ui
Other
861 stars 1.08k forks source link

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

Open aamkaachaar opened 1 year ago

aamkaachaar commented 1 year ago

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