i have an error in mdi background image coding?

Posted by Sudheep.grandhe under C# on 11/2/2011 | Points: 10 | Views : 1007 | Status : [Member] | Replies : 1
Hi,

i have an error in mdi background image coding?.please do the needful.I am pointing the error part.please find it.

Error:Value of 'null' is not valid for 'stream'.
public WelcomePage()
{
InitializeComponent();
foreach (Control c in this.Controls)
{
if (c is MdiClient)
{
c.BackgroundImage = Image.FromStream(this.GetType().Assembly.GetManifestResourceStream ("1320220637_background.png"));
}
}
}

Best,
Sudheep.



Responses

Posted by: NTurnbullJr on: 11/5/2011 [Member] Starter | Points: 25

Up
0
Down
I hope this helps you:
http://bytes.com/topic/net/answers/749908-getmanifestresourcestream-returning-null-embedded-resource


Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response