How to change the background color in Mdi parent form in c#
How to change the background color in Mdi parent form in c# in visual studio 2017?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
snehal suryavanshiRank #6,924 · 253 reputationPosted Jul 4, 2018, 9:42 PM EDT
Ravi Patel13 reputationPosted Jun 13, 2021, 4:46 AM EDT
Ali Khoshbakhtian34 reputationPosted Oct 11, 2021, 12:21 PM EDT
{
foreach (Control ctl in this.Controls)
{
try
{
System.Windows.Forms.Control Mdi = (MdiClient)ctl;
Mdi.BackColor = Color.FromA#0096ff;
}
catch (Exception a)
{
}
}
}