Click here to Skip to main content
15,908,455 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: RS232 Communication Pin
Bharat Jain4-Feb-09 18:24
Bharat Jain4-Feb-09 18:24 
GeneralRe: RS232 Communication Pin
Subjugate4-Feb-09 19:31
Subjugate4-Feb-09 19:31 
AnswerRe: RS232 Communication Pin
Bharat Jain4-Feb-09 23:08
Bharat Jain4-Feb-09 23:08 
GeneralRe: RS232 Communication Pin
Subjugate5-Feb-09 13:45
Subjugate5-Feb-09 13:45 
GeneralRe: RS232 Communication Pin
Bharat Jain15-Feb-09 18:19
Bharat Jain15-Feb-09 18:19 
GeneralRe: RS232 Communication Pin
Subjugate15-Feb-09 19:40
Subjugate15-Feb-09 19:40 
GeneralRe: RS232 Communication Pin
Bharat Jain18-Feb-09 22:42
Bharat Jain18-Feb-09 22:42 
GeneralRe: RS232 Communication [modified] Pin
Subjugate25-Feb-09 14:23
Subjugate25-Feb-09 14:23 
Thanks for the info i think the breakpoint issue should be related to the threading problem as well.. btw tis is my code.. i didnt use any thread but dun know y i encounter the problem..




Private Delegate Sub SerialPort1_DataReceivedDelegate(ByVal sender As System.Object)
Private Sub SerialPort1_DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles port.DataReceived
If port.BytesToRead > 0 Then
CheckForIllegalCrossThreadCalls = False
Dim bytetoread As Integer
bytetoread = port.BytesToRead
Dim byteArray(bytetoread) As Byte
Dim lineData As String
port.Read(byteArray, 0, bytetoread)
lineData = ConvertToString(byteArray)

TxtCommand.Text = lineData

End If
End Sub
Private Function ConvertToString(ByVal byteArray As Byte()) As String
Dim tempStringToReturn As String = ""
For Each bt As Byte In byteArray
tempStringToReturn = tempStringToReturn + Convert.ToChar(bt)

Next
Return tempStringToReturn
End Function

modified on Wednesday, February 25, 2009 10:46 PM

GeneralRe: RS232 Communication Pin
Bharat Jain13-Mar-09 2:59
Bharat Jain13-Mar-09 2:59 
QuestionDummie question: compiled language or not? Pin
Sonhospa3-Feb-09 9:32
Sonhospa3-Feb-09 9:32 
AnswerRe: Dummie question: compiled language or not? Pin
EliottA3-Feb-09 9:39
EliottA3-Feb-09 9:39 
GeneralRe: Dummie question: compiled language or not? Pin
Dave Kreskowiak3-Feb-09 9:54
mveDave Kreskowiak3-Feb-09 9:54 
GeneralRe: Dummie question: compiled language or not? Pin
Sonhospa3-Feb-09 10:09
Sonhospa3-Feb-09 10:09 
GeneralRe: Dummie question: compiled language or not? Pin
Heywood3-Feb-09 14:44
Heywood3-Feb-09 14:44 
GeneralRe: Dummie question: compiled language or not? Pin
Jon_Boy4-Feb-09 2:42
Jon_Boy4-Feb-09 2:42 
AnswerRe: Dummie question: compiled language or not? Pin
Wendelius3-Feb-09 9:40
mentorWendelius3-Feb-09 9:40 
GeneralRe: Dummie question: compiled language or not? Pin
Sonhospa3-Feb-09 9:58
Sonhospa3-Feb-09 9:58 
GeneralRe: Dummie question: compiled language or not? Pin
Wendelius3-Feb-09 10:12
mentorWendelius3-Feb-09 10:12 
GeneralRe: Dummie question: compiled language or not? Pin
Dave Kreskowiak3-Feb-09 15:05
mveDave Kreskowiak3-Feb-09 15:05 
GeneralRe: Dummie question: compiled language or not? Pin
Luc Pattyn3-Feb-09 14:23
sitebuilderLuc Pattyn3-Feb-09 14:23 
QuestionPDFCreator Problems with Excel Pin
Dominick Marciano3-Feb-09 6:19
professionalDominick Marciano3-Feb-09 6:19 
AnswerRe: PDFCreator Problems with Excel Pin
EliottA3-Feb-09 6:27
EliottA3-Feb-09 6:27 
GeneralRe: PDFCreator Problems with Excel Pin
Dominick Marciano3-Feb-09 6:39
professionalDominick Marciano3-Feb-09 6:39 
GeneralRe: PDFCreator Problems with Excel Pin
EliottA3-Feb-09 6:42
EliottA3-Feb-09 6:42 
GeneralRe: PDFCreator Problems with Excel Pin
Dominick Marciano3-Feb-09 7:14
professionalDominick Marciano3-Feb-09 7:14 

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.