Click here to Skip to main content
15,912,400 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 
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 
and the receiving part code is

byte[] data = new byte[1024];
data=receivefile();
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);

ms.Flush();
fs.Close();
ms.Close();

i m getting "exception in this code"
pictureBox1.Image = new Bitmap("\\Program Files\\pic\\screen.Bmp");
}
catch(Exception ex)
{
MessageBox.Show("Failed to display" + ex.Message.ToString());
}

i getting "Exception" in the last line
it is not telling what is the exception its displaying just "Exception"

This code was posted by me...

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.