Click here to Skip to main content
15,898,789 members
Home / Discussions / C#
   

C#

 
AnswerRe: Proper usage of SqlCommand Pin
ToddHileHoffer1-Feb-06 5:17
ToddHileHoffer1-Feb-06 5:17 
GeneralRe: Proper usage of SqlCommand Pin
Colin Angus Mackay1-Feb-06 5:52
Colin Angus Mackay1-Feb-06 5:52 
GeneralRe: Proper usage of SqlCommand Pin
ToddHileHoffer1-Feb-06 6:33
ToddHileHoffer1-Feb-06 6:33 
QuestionHaving a problem with this byte array Pin
Tom Wright1-Feb-06 4:40
Tom Wright1-Feb-06 4:40 
AnswerRe: Having a problem with this byte array Pin
Guffa1-Feb-06 6:50
Guffa1-Feb-06 6:50 
GeneralRe: Having a problem with this byte array Pin
Tom Wright1-Feb-06 8:59
Tom Wright1-Feb-06 8:59 
GeneralRe: Having a problem with this byte array Pin
S. Senthil Kumar1-Feb-06 18:52
S. Senthil Kumar1-Feb-06 18:52 
GeneralRe: Having a problem with this byte array Pin
Tom Wright2-Feb-06 4:20
Tom Wright2-Feb-06 4:20 
Yeah I see that..... I changed my code to this...

<br />
           byte[] MyMsg = new byte[HeaderBegin.Length+myBytes.Length+HeaderEnd.Length];<br />
           <br />
           HeaderBegin.CopyTo(MyMsg, 0);<br />
           myBytes.CopyTo(MyMsg, 26);<br />
           HeaderEnd.CopyTo(MyMsg, MyMsg.Length+2);<br />


and I get an error saying that I do not have enough elements in my array. So how do I size my byte array to handle all of the different arrays that I need to copy into it?

Will bytesread give me a value that will resize my array correctly?

Thanks


Tom Wright
tawright915@yahoo.com
QuestionGUI Invokation problem Pin
rnvrnv1-Feb-06 4:38
rnvrnv1-Feb-06 4:38 
AnswerRe: GUI Invokation problem Pin
Tom Wright1-Feb-06 5:02
Tom Wright1-Feb-06 5:02 
GeneralRe: GUI Invokation problem Pin
rnvrnv1-Feb-06 22:11
rnvrnv1-Feb-06 22:11 
QuestionSecurity Error Pin
Drew McGhie1-Feb-06 4:16
Drew McGhie1-Feb-06 4:16 
QuestionStartup problem Pin
NewbieDude1-Feb-06 3:58
NewbieDude1-Feb-06 3:58 
Question[Message Deleted] Pin
cassie11-Feb-06 2:43
cassie11-Feb-06 2:43 
AnswerRe: why does my C# Code not work Pin
Dan Neely1-Feb-06 3:27
Dan Neely1-Feb-06 3:27 
GeneralRe: why does my C# Code not work Pin
cassie11-Feb-06 4:07
cassie11-Feb-06 4:07 
AnswerRe: why does my C# Code not work Pin
Guffa1-Feb-06 4:34
Guffa1-Feb-06 4:34 
GeneralRe: why does my C# Code not work Pin
cassie11-Feb-06 4:41
cassie11-Feb-06 4:41 
AnswerRe: why does my C# Code not work Pin
Guffa1-Feb-06 6:51
Guffa1-Feb-06 6:51 
GeneralRe: why does my C# Code not work Pin
cassie11-Feb-06 7:11
cassie11-Feb-06 7:11 
AnswerRe: why does my C# Code not work Pin
Michael P Butler1-Feb-06 4:50
Michael P Butler1-Feb-06 4:50 
GeneralRe: why does my C# Code not work Pin
cassie11-Feb-06 4:59
cassie11-Feb-06 4:59 
GeneralRe: why does my C# Code not work Pin
cassie11-Feb-06 7:13
cassie11-Feb-06 7:13 
Questionpublic variable Pin
fmardani1-Feb-06 2:15
fmardani1-Feb-06 2:15 
AnswerRe: public variable Pin
Colin Angus Mackay1-Feb-06 2:20
Colin Angus Mackay1-Feb-06 2:20 

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.