Click here to Skip to main content
15,888,133 members
Home / Discussions / C#
   

C#

 
AnswerRe: can any body tell me how i can fix this error Pin
Manas Bhardwaj7-Jul-09 23:18
professionalManas Bhardwaj7-Jul-09 23:18 
QuestionCan anyone help me with displaying the correct value in Crystal Reports Pin
DotNetCoderJunior7-Jul-09 22:47
DotNetCoderJunior7-Jul-09 22:47 
QuestionInterop call fails with window scheduled task Pin
Hariharan.T7-Jul-09 22:44
Hariharan.T7-Jul-09 22:44 
AnswerRe: Interop call fails with window scheduled task Pin
Eddy Vluggen7-Jul-09 23:29
professionalEddy Vluggen7-Jul-09 23:29 
GeneralRe: Interop call fails with window scheduled task Pin
Hariharan.T8-Jul-09 0:23
Hariharan.T8-Jul-09 0:23 
Questionbyte array to image Pin
Vivek Vijayan7-Jul-09 21:19
Vivek Vijayan7-Jul-09 21:19 
AnswerRe: byte array to image Pin
SeMartens7-Jul-09 21:29
SeMartens7-Jul-09 21:29 
GeneralRe: byte array to image [modified] Pin
Vivek Vijayan8-Jul-09 0:16
Vivek Vijayan8-Jul-09 0:16 
i m giving the code code and i m getting just "Exception".i cant understand wht exception is it.sometimes i m getting outofmemory exception.the line that throws exception is
pictureBox1.Image = new Bitmap(File.Open("\\Program Files\\syswifi\\pic\\screen.Bmp",FileMode.Open,FileAccess.Read));



this line raises another exception too "the process cannot access the files \Program Files\\syswifi\\pic\\screen.jpg because it is used been used by another process"






System.IO.MemoryStream ms = new System.IO.MemoryStream(data);
try
{
FileStream fs = new FileStream("\\Program Files\\syswifi\\pic\\screen.Bmp", FileMode.Create);
ms.WriteTo(fs);
fs.Close();
ms.Flush();
ms.Close();
pictureBox1.Image = new Bitmap(File.Open("\\Program Files\\syswifi\\pic\\screen.Bmp",FileMode.Open,FileAccess.Read)) ;
}
catch(Exception ex)
{
MessageBox.Show("Failed to display" + ex.Message);
}

This code was posted by me...

modified on Wednesday, July 8, 2009 6:33 AM

GeneralRe: byte array to image Pin
SeMartens8-Jul-09 2:00
SeMartens8-Jul-09 2:00 
AnswerRe: byte array to image Pin
dan!sh 7-Jul-09 22:02
professional dan!sh 7-Jul-09 22:02 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 0:30
Vivek Vijayan8-Jul-09 0:30 
GeneralRe: byte array to image Pin
dan!sh 8-Jul-09 0:33
professional dan!sh 8-Jul-09 0:33 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 0:55
Vivek Vijayan8-Jul-09 0:55 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 1:12
Vivek Vijayan8-Jul-09 1:12 
GeneralRe: byte array to image Pin
dan!sh 8-Jul-09 2:42
professional dan!sh 8-Jul-09 2:42 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 2:26
Vivek Vijayan8-Jul-09 2:26 
AnswerRe: byte array to image Pin
harold aptroot8-Jul-09 1:37
harold aptroot8-Jul-09 1:37 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 2:25
Vivek Vijayan8-Jul-09 2:25 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 2:41
harold aptroot8-Jul-09 2:41 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 4:08
Vivek Vijayan8-Jul-09 4:08 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 4:20
harold aptroot8-Jul-09 4:20 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 4:27
Vivek Vijayan8-Jul-09 4:27 
GeneralRe: byte array to image Pin
harold aptroot8-Jul-09 4:32
harold aptroot8-Jul-09 4:32 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:01
Vivek Vijayan8-Jul-09 5:01 
GeneralRe: byte array to image Pin
Vivek Vijayan8-Jul-09 5:09
Vivek Vijayan8-Jul-09 5:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.