Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting BindingSource and Guid Pin
OriginalGriff22-Jun-12 19:50
mveOriginalGriff22-Jun-12 19:50 
AnswerRe: Converting BindingSource and Guid Pin
Midnight Ahri22-Jun-12 20:08
Midnight Ahri22-Jun-12 20:08 
GeneralRe: Converting BindingSource and Guid Pin
OriginalGriff22-Jun-12 20:24
mveOriginalGriff22-Jun-12 20:24 
QuestionListbox Pin
Dirk Higbee22-Jun-12 12:57
Dirk Higbee22-Jun-12 12:57 
AnswerRe: Listbox Pin
OriginalGriff22-Jun-12 19:52
mveOriginalGriff22-Jun-12 19:52 
GeneralRe: Listbox Pin
Dirk Higbee23-Jun-12 7:30
Dirk Higbee23-Jun-12 7:30 
QuestionHow to split byte[] to string & bytes Pin
caspidoron22-Jun-12 8:53
caspidoron22-Jun-12 8:53 
AnswerRe: How to split byte[] to string & bytes Pin
Ian Shlasko22-Jun-12 9:00
Ian Shlasko22-Jun-12 9:00 
If you know the exact length of each text field, this is pretty easy to do.
C#
using System.Text;
// ...
string name = Encoding.ASCII.GetString(byteArray, 0, nameFieldLength)
string message = Encoding.ASCII.GetString(byteArray, nameFieldLength, messageFieldLength)

Then getting the image itself depends on whether you're working in WinForms or WPF, but either one lets you load a bitmap image from a byte array.

If you're going to use variable-length fields, then you'll need some kind of delimiter to tell you which bytes to grab, and it gets slightly more complex.
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels)

AnswerRe: How to split byte[] to string & bytes Pin
Richard Andrew x6422-Jun-12 9:02
professionalRichard Andrew x6422-Jun-12 9:02 
QuestionC# work with database Pin
sc steinhayse22-Jun-12 7:33
sc steinhayse22-Jun-12 7:33 
AnswerRe: C# work with database Pin
Ravi Bhavnani23-Jun-12 4:00
professionalRavi Bhavnani23-Jun-12 4:00 
QuestionC# to update table Pin
sc steinhayse22-Jun-12 3:43
sc steinhayse22-Jun-12 3:43 
AnswerRe: C# to update table Pin
PIEBALDconsult22-Jun-12 5:09
mvePIEBALDconsult22-Jun-12 5:09 
GeneralRe: C# to update table Pin
OctavioNA22-Jun-12 7:19
OctavioNA22-Jun-12 7:19 
GeneralRe: C# to update table Pin
PIEBALDconsult22-Jun-12 18:24
mvePIEBALDconsult22-Jun-12 18:24 
AnswerRe: C# to update table Pin
kishhr22-Jun-12 6:33
kishhr22-Jun-12 6:33 
QuestionCreating a sales Page in C#, simplest method Pin
Johnmc07122-Jun-12 3:05
Johnmc07122-Jun-12 3:05 
AnswerRe: Creating a sales Page in C#, simplest method Pin
Wes Aday22-Jun-12 4:02
professionalWes Aday22-Jun-12 4:02 
QuestionLooking for a good rules-based expert system engine (like drools). Suggestions? Pin
vValkir22-Jun-12 1:26
vValkir22-Jun-12 1:26 
AnswerRe: Looking for a good rules-based expert system engine (like drools). Suggestions? Pin
Pete O'Hanlon22-Jun-12 4:02
mvePete O'Hanlon22-Jun-12 4:02 
GeneralRe: Looking for a good rules-based expert system engine (like drools). Suggestions? Pin
vValkir22-Jun-12 4:08
vValkir22-Jun-12 4:08 
QuestionHow to download file from another website whose name is given in the <script> tag Pin
akhilgaur198821-Jun-12 23:56
akhilgaur198821-Jun-12 23:56 
AnswerRe: How to download file from another website whose name is given in the tag Pin
Bernhard Hiller22-Jun-12 2:00
Bernhard Hiller22-Jun-12 2:00 
QuestionMerge Data using Itext sharp Pin
Member 915535921-Jun-12 22:00
Member 915535921-Jun-12 22:00 
AnswerRe: Merge Data using Itext sharp Pin
Richard MacCutchan21-Jun-12 22:44
mveRichard MacCutchan21-Jun-12 22:44 

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.