Click here to Skip to main content
15,922,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: AutoSave change in databound comboBox Pin
Martin#14-Jun-07 21:37
Martin#14-Jun-07 21:37 
Questionspecial characters are coming in XML output Pin
saymajum14-Jun-07 17:14
saymajum14-Jun-07 17:14 
AnswerRe: special characters are coming in XML output Pin
Christian Graus14-Jun-07 17:31
protectorChristian Graus14-Jun-07 17:31 
GeneralRe: special characters are coming in XML output Pin
saymajum14-Jun-07 19:24
saymajum14-Jun-07 19:24 
QuestionA qustion on Dll Call Pin
Xiaoming Qian14-Jun-07 15:16
Xiaoming Qian14-Jun-07 15:16 
AnswerRe: A qustion on Dll Call Pin
Tarakeshwar Reddy14-Jun-07 17:03
professionalTarakeshwar Reddy14-Jun-07 17:03 
GeneralRe: A qustion on Dll Call Pin
Xiaoming Qian14-Jun-07 20:41
Xiaoming Qian14-Jun-07 20:41 
Questionhow to put a Button Image into an array? Pin
Khoramdin14-Jun-07 14:38
Khoramdin14-Jun-07 14:38 
Hello everyone,

I use the following code to place an image "temp.jpeg" into an array and then write the array into a remote database.

                int FileSize;<br />
                byte[] ImageArray;<br />
                FileStream fs;<br />
                int iBytesRead;<br />
<br />
                // 1.<br />
                OpenFileName = "temp.jpeg";<br />
                <br />
                // 2. By using FileStream object, fill the byte array. <br />
                fs = new FileStream(OpenFileName, FileMode.Open, FileAccess.Read, FileShare.Read);<br />
                FileSize = Convert.ToInt32(fs.Length);<br />
<br />
                // 3. Declare an array of that size.<br />
                ImageArray = new byte[FileSize];<br />
                iBytesRead = fs.Read(ImageArray, 0, FileSize);<br />
                fs.Close();


I was wonder what I should do if the image is not a file such as "temp.jpeg" and it is the image displayed in a Button?

Can someone be kind enough to help me out on this one?

Thank you very much and have a great day.

Khoramdin
AnswerRe: how to put a Button Image into an array? Pin
alexey N14-Jun-07 18:44
alexey N14-Jun-07 18:44 
QuestionConvert Large Icons into Small???? Pin
classNoob14-Jun-07 13:29
classNoob14-Jun-07 13:29 
QuestionUsing your own classes in methods. Pin
jblouir14-Jun-07 12:32
jblouir14-Jun-07 12:32 
AnswerRe: Using your own classes in methods. Pin
Guffa14-Jun-07 12:55
Guffa14-Jun-07 12:55 
GeneralRe: Using your own classes in methods. Pin
jblouir14-Jun-07 13:05
jblouir14-Jun-07 13:05 
GeneralRe: Using your own classes in methods. Pin
jblouir14-Jun-07 13:26
jblouir14-Jun-07 13:26 
GeneralWell... Pin
jblouir14-Jun-07 13:31
jblouir14-Jun-07 13:31 
GeneralRe: Well... Pin
jblouir14-Jun-07 13:37
jblouir14-Jun-07 13:37 
GeneralRe: Well... Pin
jblouir14-Jun-07 13:47
jblouir14-Jun-07 13:47 
GeneralRe: Well... Pin
Christian Graus14-Jun-07 13:52
protectorChristian Graus14-Jun-07 13:52 
AnswerRe: Using your own classes in methods. Pin
Guffa14-Jun-07 13:30
Guffa14-Jun-07 13:30 
GeneralRe: Using your own classes in methods. Pin
Rudolf Jan15-Jun-07 0:27
Rudolf Jan15-Jun-07 0:27 
Questionmulti list problem [modified] Pin
bolhassanim@bellsouth.net14-Jun-07 10:34
professionalbolhassanim@bellsouth.net14-Jun-07 10:34 
AnswerRe: multi list problem Pin
Christian Graus14-Jun-07 11:47
protectorChristian Graus14-Jun-07 11:47 
GeneralRe: multi list problem Pin
bolhassanim@bellsouth.net14-Jun-07 18:19
professionalbolhassanim@bellsouth.net14-Jun-07 18:19 
QuestionDelimiters - Is there a simple way Pin
haz1314-Jun-07 10:19
haz1314-Jun-07 10:19 
AnswerRe: Delimiters - Is there a simple way Pin
Paul Conrad14-Jun-07 10:31
professionalPaul Conrad14-Jun-07 10:31 

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.