Click here to Skip to main content
15,921,530 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: New class Pin
Christian Graus5-Jan-07 9:55
protectorChristian Graus5-Jan-07 9:55 
QuestionNeed a help to design a 3-tier architecture Pin
hmt20045-Jan-07 8:10
hmt20045-Jan-07 8:10 
AnswerRe: Need a help to design a 3-tier architecture Pin
Christian Graus5-Jan-07 9:58
protectorChristian Graus5-Jan-07 9:58 
QuestionHow to send text in status bar and blank Data Grid cell Pin
rehan_cop5-Jan-07 6:58
rehan_cop5-Jan-07 6:58 
AnswerRe: How to send text in status bar and blank Data Grid cell Pin
Thomas Stockwell6-Jan-07 8:34
professionalThomas Stockwell6-Jan-07 8:34 
QuestionInsert into MySql using vb.net Pin
jds12075-Jan-07 5:42
jds12075-Jan-07 5:42 
AnswerRe: Insert into MySql using vb.net Pin
Colin Angus Mackay5-Jan-07 5:46
Colin Angus Mackay5-Jan-07 5:46 
QuestionHelp to find an error!! Pin
tranceunte5-Jan-07 4:54
tranceunte5-Jan-07 4:54 
I'm trying to send commands to a remote host using sockets. I'm able to send the first message or command, but after that any message or command I send to the remote host won't run. Here's what I wrote, may be someone can help me. The commented lines are just some different approaches I've tried. The lines Call wskServer.Get and AddText are apparently running just once.
#Region "Data Arrival"
Private Sub wskServer_DataArrival(ByVal sender As Object, ByVal e As Winsock2005DLL.WinsockDataArrivalEventArgs) Handles wskServer.DataArrival
serialPort.Encoding = Encoding.ASCII
Dim message As String
Dim temp As String
Dim state As String
message = ""
message = e.TotalBytes
temp = message
'Do While wskServer.State <> WinsockStates.Closed

Call wskServer.Get(message)

AddText("----" & message & "----" & vbCrLf, txtoutput)

If serialPort.IsOpen Then
serialPort.Close()
End If

serialPort.Open()
If temp = "4" Then
state = "On"
serialPort.Write("o")
line = serialPort.ReadByte
End If
If line = 65 Then
wskServer.Send("Luz verde en IOLine 5 esta prendida")
End If

If temp = "5" Then
state = "Off"
serialPort.Write("f")
line = serialPort.ReadByte
End If
If line = 66 Then
wskServer.Send("Luz verde en IOLine 5 esta apagada")
End If



' If message.Contains("%") Then
' serialPort.Write("f")
' End If
' line = serialPort.ReadByte



'Loop
'line = ""
serialPort.Close()
End Sub

Thanks for any help!!!!!
Questionview installed softwares Pin
MjRazzaghi4-Jan-07 23:57
MjRazzaghi4-Jan-07 23:57 
AnswerRe: view installed softwares Pin
MatrixCoder5-Jan-07 3:42
MatrixCoder5-Jan-07 3:42 
Questiondatabase table problem implementation in vb.net Pin
amaneet4-Jan-07 23:14
amaneet4-Jan-07 23:14 
QuestionWrong Exception which called Microsft Exception Block Pin
vivek_cs4-Jan-07 21:32
vivek_cs4-Jan-07 21:32 
AnswerRe: Wrong Exception which called Microsft Exception Block Pin
Colin Angus Mackay4-Jan-07 22:28
Colin Angus Mackay4-Jan-07 22:28 
QuestionObtaining Random Numbers Pin
WestSideRailways4-Jan-07 20:52
WestSideRailways4-Jan-07 20:52 
AnswerRe: Obtaining Random Numbers Pin
Christian Graus4-Jan-07 21:25
protectorChristian Graus4-Jan-07 21:25 
GeneralRe: Obtaining Random Numbers Pin
CPallini4-Jan-07 21:47
mveCPallini4-Jan-07 21:47 
AnswerRe: Obtaining Random Numbers Pin
CPallini4-Jan-07 21:34
mveCPallini4-Jan-07 21:34 
GeneralRe: Obtaining Random Numbers [modified] Pin
WestSideRailways4-Jan-07 23:14
WestSideRailways4-Jan-07 23:14 
GeneralRe: Obtaining Random Numbers Pin
Christian Graus4-Jan-07 23:36
protectorChristian Graus4-Jan-07 23:36 
GeneralRe: Obtaining Random Numbers Pin
WestSideRailways4-Jan-07 23:53
WestSideRailways4-Jan-07 23:53 
GeneralRe: Obtaining Random Numbers Pin
Dave Kreskowiak5-Jan-07 2:53
mveDave Kreskowiak5-Jan-07 2:53 
GeneralRe: Obtaining Random Numbers Pin
WestSideRailways5-Jan-07 9:56
WestSideRailways5-Jan-07 9:56 
GeneralRe: Obtaining Random Numbers Pin
Christian Graus5-Jan-07 10:04
protectorChristian Graus5-Jan-07 10:04 
GeneralRe: Obtaining Random Numbers Pin
WestSideRailways5-Jan-07 16:01
WestSideRailways5-Jan-07 16:01 
GeneralRe: Obtaining Random Numbers Pin
Christian Graus5-Jan-07 19:13
protectorChristian Graus5-Jan-07 19:13 

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.