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

C#

 
QuestionSearching through ListBox Pin
pavya_Cool20-Sep-07 2:19
pavya_Cool20-Sep-07 2:19 
AnswerRe: Searching through ListBox Pin
Giorgi Dalakishvili20-Sep-07 2:26
mentorGiorgi Dalakishvili20-Sep-07 2:26 
AnswerRe: Searching through ListBox Pin
Luc Pattyn20-Sep-07 4:42
sitebuilderLuc Pattyn20-Sep-07 4:42 
QuestionSpell check addin for Messenger Live Pin
DesertRavenC20-Sep-07 2:06
DesertRavenC20-Sep-07 2:06 
AnswerRe: Spell check addin for Messenger Live Pin
Judah Gabriel Himango20-Sep-07 7:44
sponsorJudah Gabriel Himango20-Sep-07 7:44 
Questionc# DataGridView - Maintain Scroll Position Pin
ATCsharp20-Sep-07 1:54
ATCsharp20-Sep-07 1:54 
QuestionNeed code for converting from Excel to XML Pin
Sri_346420-Sep-07 1:39
Sri_346420-Sep-07 1:39 
AnswerRe: Need code for converting from Excel to XML Pin
Giorgi Dalakishvili20-Sep-07 1:47
mentorGiorgi Dalakishvili20-Sep-07 1:47 
GeneralRe: Need code for converting from Excel to XML Pin
Sri_346420-Sep-07 1:55
Sri_346420-Sep-07 1:55 
GeneralRe: Need code for converting from Excel to XML Pin
Giorgi Dalakishvili20-Sep-07 1:59
mentorGiorgi Dalakishvili20-Sep-07 1:59 
QuestionSend data(bytes/stream) to a printer Pin
gauthee20-Sep-07 0:59
gauthee20-Sep-07 0:59 
AnswerRe: Send data(bytes/stream) to a printer Pin
snorkie20-Sep-07 3:25
professionalsnorkie20-Sep-07 3:25 
AnswerRe: Send data(bytes/stream) to a printer Pin
Dave Kreskowiak20-Sep-07 7:08
mveDave Kreskowiak20-Sep-07 7:08 
QuestionReading Byte of Buffer Pin
DeepOceans20-Sep-07 0:56
DeepOceans20-Sep-07 0:56 
AnswerRe: Reading Byte of Buffer Pin
gauthee20-Sep-07 1:08
gauthee20-Sep-07 1:08 
QuestionRelated to Clicking a DataGridViewComboBoxColumn thrice to select an Item of DataGridView Pin
Rudra Rath20-Sep-07 0:21
Rudra Rath20-Sep-07 0:21 
Questionfile transfer problem !!! Pin
samforu20-Sep-07 0:18
samforu20-Sep-07 0:18 
QuestionProblem with WSE 3.0 and project in c# Pin
dift20-Sep-07 0:01
dift20-Sep-07 0:01 
Questionautonumber Pin
KppsK19-Sep-07 23:58
KppsK19-Sep-07 23:58 
AnswerRe: autonumber Pin
Colin Angus Mackay20-Sep-07 0:12
Colin Angus Mackay20-Sep-07 0:12 
AnswerRe: autonumber Pin
Kuldeep Antil20-Sep-07 0:17
Kuldeep Antil20-Sep-07 0:17 
AnswerRe: autonumber Pin
Pete O'Hanlon20-Sep-07 0:20
mvePete O'Hanlon20-Sep-07 0:20 
Questionbyte array conversion Pin
bttds19-Sep-07 23:38
bttds19-Sep-07 23:38 
From a windows application form I need to print a ticket from a special ticket printer. that ticket includes a 2D barcode which is a string of all the information about a customer. I need to encrypt it and get as a byte array so I use Cryptoservices and done that. to concatenate that data with other data I've done something like this

System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
string str = System.Text.Encoding.ASCII.GetString(b);

So printing part is working fine. But when I scan the barcode and try to get it back to byte array like this,
byte[] b = System.Text.Encoding.ASCII.GetBytes(data);

Then my array size gets smaller and when I try to decrypt it it throws an error saying that invalid length of string.

can anybody help me.


AnswerRe: byte array conversion Pin
Guffa20-Sep-07 2:38
Guffa20-Sep-07 2:38 
GeneralRe: byte array conversion Pin
bttds20-Sep-07 15:47
bttds20-Sep-07 15:47 

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.