Hi Abdullah_001,
The code in that thread is used to set the backcolor and background image of MDIClient. I don’t know why you choose to use that code to change the background image of the parent form or child form. Actually we only need to set the BackgroundImage property of the form by designer or by code at runtime.
If you want to find the reason why that code can only change the backcolor of your form, but not the image. Probably you failed to set the BackgroundImage of the MDIClient, Please also note that the author of that post used resoure to set the BackgroudImage.
Just change the orginal code a little. Add this kind of statements, and see whether it helps.
Image img = Bitmap.FromFile(“FileName� make sure FileName should be full path if you use absolutly path. Such as “c:\\aa.jpg�
ctl.BackgroundImage = img.
Please don’t hesitate to tell me if your problem still can’t be solved.
Best Regards,
Bruce Zhou