Click here to Skip to main content
15,887,027 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: creation of forms Pin
taherjaorawala27-Feb-07 23:12
taherjaorawala27-Feb-07 23:12 
Questioncombo box Pin
taherjaorawala27-Feb-07 22:12
taherjaorawala27-Feb-07 22:12 
AnswerRe: combo box Pin
Tamimi - Code27-Feb-07 22:44
Tamimi - Code27-Feb-07 22:44 
GeneralRe: combo box Pin
taherjaorawala27-Feb-07 23:09
taherjaorawala27-Feb-07 23:09 
GeneralRe: combo box Pin
Tamimi - Code27-Feb-07 23:40
Tamimi - Code27-Feb-07 23:40 
GeneralRe: combo box Pin
TwoFaced28-Feb-07 8:09
TwoFaced28-Feb-07 8:09 
QuestionQuestions on Visual Studio 2005 Pin
eccw27-Feb-07 20:45
eccw27-Feb-07 20:45 
QuestionByte array problem Pin
loksiu0127-Feb-07 20:39
loksiu0127-Feb-07 20:39 
I am writing a reader driver by using visual basic.net. I want to flow a package in bytes to the reader. But it encounters some problems in sub programme sending package. Can anyone give me some suggestions??Thank you for your great help!!

Public Class RS232
Dim buffer As Byte()
Dim offset As Integer
Dim count As Integer
Dim returnValue As Integer
Dim value As Boolean
Dim target As Integer
Dim Data As Byte
Dim response As Byte()
Dim currentSerialPort As System.IO.Ports.SerialPort

Public Sub send_packet(ByVal cmd As Byte, ByRef b As Byte())


Dim crcresult As Byte


' 1. send preamble

buffer(0) = &HA55A ' wrong ******************************
' 2. send command
buffer(1) = cmd ' wrong *****************************
' 3. send data (optional)

buffer(2) = Data
' 4. calc crc
crcresult = calc_crc(b)
' 5. send crc
buffer(3) = crcresult
' may be wrong *****************************
currentSerialPort.Write(buffer, 0, 3)

End Sub
End class

AnswerRe: Byte array problem Pin
Guffa27-Feb-07 22:45
Guffa27-Feb-07 22:45 
GeneralRe: Byte array problem Pin
loksiu0128-Feb-07 4:51
loksiu0128-Feb-07 4:51 
AnswerRe: Byte array problem Pin
Guffa28-Feb-07 14:15
Guffa28-Feb-07 14:15 
QuestionVB.NET Midi Player/Editor Pin
RichardBerry27-Feb-07 20:35
RichardBerry27-Feb-07 20:35 
QuestionDateDiff for days and time Pin
steve_rm27-Feb-07 20:04
steve_rm27-Feb-07 20:04 
AnswerRe: DateDiff for days and time Pin
Sachin Gokhale27-Feb-07 20:21
Sachin Gokhale27-Feb-07 20:21 
QuestionRe: DateDiff for days and time Pin
steve_rm27-Feb-07 21:59
steve_rm27-Feb-07 21:59 
Questionconnection string Pin
balakpn27-Feb-07 19:19
balakpn27-Feb-07 19:19 
AnswerRe: connection string Pin
Tamimi - Code27-Feb-07 19:28
Tamimi - Code27-Feb-07 19:28 
AnswerRe: connection string Pin
samerh27-Feb-07 21:15
samerh27-Feb-07 21:15 
QuestionPrint Screen Function? Pin
Yep-ItsMe27-Feb-07 18:59
Yep-ItsMe27-Feb-07 18:59 
AnswerRe: Print Screen Function? Pin
Harini N K27-Feb-07 19:13
Harini N K27-Feb-07 19:13 
GeneralRe: Print Screen Function? Pin
Yep-ItsMe28-Feb-07 3:49
Yep-ItsMe28-Feb-07 3:49 
Questionwhy aint my else working!! Pin
harveyhanson27-Feb-07 16:26
harveyhanson27-Feb-07 16:26 
AnswerRe: why aint my else working!! Pin
Christian Graus27-Feb-07 17:00
protectorChristian Graus27-Feb-07 17:00 
AnswerRe: why aint my else working!! Pin
Guffa27-Feb-07 22:56
Guffa27-Feb-07 22:56 
QuestionCreate Share Folder in VB.NET Pin
alexfromto27-Feb-07 14:26
alexfromto27-Feb-07 14:26 

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.