Click here to Skip to main content
15,914,225 members
Home / Discussions / C#
   

C#

 
Questionhow to run a method in biginning automaticaly Pin
S K Y3-Jul-09 16:32
S K Y3-Jul-09 16:32 
AnswerRe: how to run a method in biginning automaticaly Pin
EliottA3-Jul-09 17:00
EliottA3-Jul-09 17:00 
GeneralRe: how to run a method in biginning automaticaly Pin
S K Y3-Jul-09 17:15
S K Y3-Jul-09 17:15 
GeneralRe: how to run a method in biginning automaticaly Pin
EliottA3-Jul-09 17:54
EliottA3-Jul-09 17:54 
GeneralRe: how to run a method in biginning automaticaly Pin
dan!sh 3-Jul-09 18:18
professional dan!sh 3-Jul-09 18:18 
GeneralRe: how to run a method in biginning automaticaly Pin
dan!sh 3-Jul-09 18:15
professional dan!sh 3-Jul-09 18:15 
GeneralRe: how to run a method in biginning automaticaly Pin
Christian Graus4-Jul-09 0:26
protectorChristian Graus4-Jul-09 0:26 
GeneralRe: how to run a method in biginning automaticaly [modified] Pin
molesworth4-Jul-09 0:31
molesworth4-Jul-09 0:31 
GeneralRe: how to run a method in biginning automaticaly Pin
Christian Graus4-Jul-09 0:34
protectorChristian Graus4-Jul-09 0:34 
GeneralRe: how to run a method in biginning automaticaly Pin
0x3c04-Jul-09 0:44
0x3c04-Jul-09 0:44 
Questionhow to hide MaximizeBox ? Pin
Mtyb3-Jul-09 15:11
Mtyb3-Jul-09 15:11 
AnswerRe: how to hide MaximizeBox ? Pin
Luc Pattyn3-Jul-09 15:17
sitebuilderLuc Pattyn3-Jul-09 15:17 
GeneralRe: how to hide MaximizeBox ? Pin
Mtyb3-Jul-09 15:21
Mtyb3-Jul-09 15:21 
GeneralRe: how to hide MaximizeBox ? Pin
harold aptroot3-Jul-09 15:33
harold aptroot3-Jul-09 15:33 
Questionopen an image from database Pin
A_A3-Jul-09 12:44
A_A3-Jul-09 12:44 
AnswerRe: open an image from database Pin
Luc Pattyn3-Jul-09 12:53
sitebuilderLuc Pattyn3-Jul-09 12:53 
GeneralRe: open an image from database Pin
A_A4-Jul-09 2:24
A_A4-Jul-09 2:24 
hi, thank you for your reply..
i tryed the memorystream ,and i did not work ,it give me the same error !!
the intresting thing i found that the byte numbers it give the error after is 13!! i realy dont know why
i have tryed many images but the same error with the same number 13!!


any way you wanted me to check the input method, i do not find any thing in it , here it is

byte[] data = null;

            //Use FileInfo object to get file size.
            FileInfo fInfo = new FileInfo(sPath);
            long numBytes = fInfo.Length;
            MessageBox.Show(numBytes.ToString());//for checking remove when finsh

            //Open FileStream to read file
            FileStream fStream = new FileStream(sPath, FileMode.Open,FileAccess.Read);

            //Use BinaryReader to read file stream into byte array.
            BinaryReader br = new BinaryReader(fStream);

            data = br.ReadBytes((int)numBytes);


thank you verey much for your time and effort
GeneralRe: open an image from database Pin
Luc Pattyn4-Jul-09 7:18
sitebuilderLuc Pattyn4-Jul-09 7:18 
GeneralRe: open an image from database Pin
A_A4-Jul-09 11:47
A_A4-Jul-09 11:47 
GeneralRe: open an image from database Pin
Luc Pattyn4-Jul-09 11:57
sitebuilderLuc Pattyn4-Jul-09 11:57 
GeneralRe: open an image from database Pin
A_A7-Jul-09 0:53
A_A7-Jul-09 0:53 
QuestionEntity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
dfn3-Jul-09 11:36
dfn3-Jul-09 11:36 
AnswerRe: Entity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
Henry Minute3-Jul-09 12:12
Henry Minute3-Jul-09 12:12 
GeneralRe: Entity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
dfn6-Jul-09 9:21
dfn6-Jul-09 9:21 
GeneralRe: Entity Framework: EDM assigns primary key to view randomly (or so it seems) Pin
Henry Minute6-Jul-09 9:39
Henry Minute6-Jul-09 9:39 

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.