Click here to Skip to main content
15,886,362 members

Comments by nitin_ion (Top 4 by date)

nitin_ion 27-Apr-11 3:30am View    
what you are saying is correct but this also does it.
ResXResourceReader r = new ResXResourceReader("C:\\Users\\njain\\Documents\\Visual Studio 2008\\Projects\\WindowsFormsApplication1\\WindowsFormsApplication1\\Resource1.resx");
foreach (DictionaryEntry d in r)
{
pictureBox1.Image =(Image) d.Value;
}

//Close the resxReader
r.Close();
nitin_ion 27-Apr-11 1:44am View    
Yes image is bitmap and it does show it in image editors. If you have a sample code can you send me.
My purpose for this is to update resource files only instead of updating the exe everytime.
nitin_ion 27-Apr-11 1:11am View    
I tried it also but when i refer it

pictureBox1.Image = Resource1.excel;

it gives error

"Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "WindowsFormsApplication1.Resource1.resources" was correctly embedded or linked into assembly"

My resource file is content [build action] and public [access modifier]
nitin_ion 20-Dec-10 14:37pm View    
code is added