instead of copy pasting the exact code.

why are you typing

private void CellView_Paint(object sender, System.Windows.Forms.PaintEventArgas e)

>>>Argas ?


Graphics grfx;
Graphics grfx = e.Graphics;

>>>declared twice ?

strm.Close
>>>strm.Close() ?


*************
I tested for at least compilation
private void buttonOpenIE_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
MemoryStream strm = new MemoryStream();
Image img;

Graphics grfx = e.Graphics;
byte []pByteArray;
pByteArray = new byte[10];
for(int i=0;i<10;i++)
pByteArray[i]= 10;
grfx = button1.CreateGraphics();
strm.Position = 0; strm.Write(pByteArray,0,pByteArray.Length);
Stream st = (Stream)strm;
img = Image.FromStream(st); grfx.DrawImage(img,0,0,20,20);
strm.Close();
}
************

atleast gets compiled.

strm doesn't have problem . the problem is somewhere else ?

thanx
Paresh