Click here to Skip to main content
15,905,967 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Adding Textboxes at Run Time Pin
Dave Kreskowiak10-Aug-07 6:47
mveDave Kreskowiak10-Aug-07 6:47 
QuestionMonth week Number and dates Pin
ejaz_pk10-Aug-07 5:19
ejaz_pk10-Aug-07 5:19 
AnswerRe: Month week Number and dates Pin
Guffa10-Aug-07 5:40
Guffa10-Aug-07 5:40 
AnswerRe: Month week Number and dates Pin
ejaz_pk10-Aug-07 6:32
ejaz_pk10-Aug-07 6:32 
AnswerRe: Month week Number and dates Pin
Guffa10-Aug-07 6:39
Guffa10-Aug-07 6:39 
QuestionBinary conversion for CRC-16 Pin
Cory Kimble10-Aug-07 4:55
Cory Kimble10-Aug-07 4:55 
AnswerRe: Binary conversion for CRC-16 Pin
Luc Pattyn10-Aug-07 5:28
sitebuilderLuc Pattyn10-Aug-07 5:28 
AnswerRe: Binary conversion for CRC-16 Pin
Guffa10-Aug-07 6:36
Guffa10-Aug-07 6:36 
You are thinking in hexadecimal, which is your problem. Hexadecimal is just a textual representation of numbers, but you don't want to send text.

14643 is<br />
0011100100110011 in binary 16 bits<br />
00111001 00110011 as two 8 bit values<br />
57 51 in decimal


A 16 bit value can be represented in little-endian or big-endian format. Intel system uses little-endian format, so you send the least significant byte first.

So, first you send the byte value 51, then the byte value 57.

You can use the BitConverter class to split the 16 bit value into two bytes:

Dim checksum As Int16 = 14643<br />
Dim bytes As Byte() = BitConverter.GetBytes(checksum)


You now have an array that contains two bytes, 51 and 57.

---
single minded; short sighted; long gone;

GeneralRe: Binary conversion for CRC-16 Pin
Cory Kimble10-Aug-07 7:13
Cory Kimble10-Aug-07 7:13 
GeneralRe: Binary conversion for CRC-16 Pin
Luc Pattyn10-Aug-07 7:41
sitebuilderLuc Pattyn10-Aug-07 7:41 
QuestionNested Listview In datagrid Pin
ejaz_pk10-Aug-07 3:11
ejaz_pk10-Aug-07 3:11 
AnswerRe: Nested Listview In datagrid Pin
leckey10-Aug-07 3:56
leckey10-Aug-07 3:56 
QuestionCreating references Pin
Ahmad Zaidi10-Aug-07 1:22
Ahmad Zaidi10-Aug-07 1:22 
AnswerRe: Creating references Pin
Dave Kreskowiak10-Aug-07 1:40
mveDave Kreskowiak10-Aug-07 1:40 
QuestionModify AVI file Pin
Rupesh Kumar Swami9-Aug-07 23:33
Rupesh Kumar Swami9-Aug-07 23:33 
AnswerRe: Modify AVI file Pin
'Drew10-Aug-07 11:53
'Drew10-Aug-07 11:53 
QuestionTransparent Mdi Pin
errorfunktion9-Aug-07 23:02
errorfunktion9-Aug-07 23:02 
AnswerRe: Transparent Mdi Pin
Tom Deketelaere10-Aug-07 0:04
professionalTom Deketelaere10-Aug-07 0:04 
GeneralRe: Transparent Mdi Pin
errorfunktion10-Aug-07 0:36
errorfunktion10-Aug-07 0:36 
GeneralRe: Transparent Mdi Pin
Tom Deketelaere10-Aug-07 1:35
professionalTom Deketelaere10-Aug-07 1:35 
GeneralRe: Transparent Mdi Pin
Dave Kreskowiak10-Aug-07 1:37
mveDave Kreskowiak10-Aug-07 1:37 
GeneralRe: Transparent Mdi Pin
errorfunktion10-Aug-07 2:34
errorfunktion10-Aug-07 2:34 
GeneralRe: Transparent Mdi Pin
Dave Kreskowiak10-Aug-07 3:17
mveDave Kreskowiak10-Aug-07 3:17 
GeneralRe: Transparent Mdi Pin
errorfunktion10-Aug-07 3:35
errorfunktion10-Aug-07 3:35 
QuestionTextbox not scrolling Pin
Mark069-Aug-07 22:42
Mark069-Aug-07 22:42 

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.