Share via

possible bug on this website

rahul kumar 605 Reputation points
2023-07-04T08:37:05.5966667+00:00
protected override void OnParentChanged(EventArgs e)     
   {         
   base.OnParentChanged(e);      
               if (this.Parent != null)     
       {           
     this.BackgroundColor = this.Parent.BackColor;     
       }     
   }


unable to paste the above code in new questions

Community Center | Not monitored

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.