Click here to Skip to main content
15,904,652 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Regarding long data type .. Pin
jainiraj4-Sep-10 20:21
jainiraj4-Sep-10 20:21 
GeneralRe: Regarding long data type .. Pin
Dave Kreskowiak5-Sep-10 3:11
mveDave Kreskowiak5-Sep-10 3:11 
GeneralRe: Regarding long data type .. Pin
jainiraj6-Sep-10 0:33
jainiraj6-Sep-10 0:33 
AnswerRe: Regarding long data type .. Pin
Luc Pattyn6-Sep-10 3:19
sitebuilderLuc Pattyn6-Sep-10 3:19 
GeneralRe: Regarding long data type .. Pin
Dave Kreskowiak6-Sep-10 3:49
mveDave Kreskowiak6-Sep-10 3:49 
QuestionRead Table of Content from PDF using PDFBOX library Pin
Nilesh Araligidad3-Sep-10 3:57
Nilesh Araligidad3-Sep-10 3:57 
AnswerIgnore - Crosspost Pin
Dave Kreskowiak3-Sep-10 4:55
mveDave Kreskowiak3-Sep-10 4:55 
QuestionProblem in UDP socket connection. [modified] Pin
jainiraj3-Sep-10 1:39
jainiraj3-Sep-10 1:39 
I have found a code from the net, but its not working properly.
It is related to UDP socket creation.
Senario is like when we click on "send data" button a "hello" string should pass from client to server which are on the same machine.
Problem is when I click on "send data" button it gives an error-

code is-

Private Sub Form_Load()
' Set the control objects when the form loads.
Set wsClient = Me!axWinsockClient.Object
Set wsServer = Me!axWinsockServer.Object

' Set the protocol for client and server.
wsClient.Protocol = sckUDPProtocol
wsServer.Protocol = sckUDPProtocol

' Set the host and ports for client and server. Because client
' and server are the same computer in this example, set RemoteHost
' equal to LocalIP.
wsServer.RemoteHost = wsClient.LocalIP
wsServer.RemotePort = 1007
wsClient.Bind 1007
End Sub

Private Sub CmdSend_Click()
' Send a broadcast message from the server.
wsServer.SendData "Hello"
End Sub

Private Sub axWinsockClient_DataArrival(ByVal bytesTotal As Long)
Dim strServerMsg As String

' When a message arrives from the server, display it in a text
' box.
wsClient.GetData strServerMsg, vbString
Me!Text1.Value = strServerMsg
End Sub



Here axWinsockClient and axWinsockServer are the socket control or winsock on the same form. and "hello" string should be print in text box.
On debugging I found it is not calling axWinsockClient_DataArrival() method.

What may be the problem.
Thnks in adv..

modified on Friday, September 3, 2010 8:11 AM

AnswerRe: Problem in UDP socket connection. Pin
Dave Kreskowiak3-Sep-10 2:14
mveDave Kreskowiak3-Sep-10 2:14 
GeneralMessage Removed Pin
3-Sep-10 2:53
jainiraj3-Sep-10 2:53 
GeneralRe: Problem in UDP socket connection. Pin
LloydA1114-Sep-10 3:40
LloydA1114-Sep-10 3:40 
GeneralRe: Problem in UDP socket connection. Pin
Expert Coming4-Sep-10 22:29
Expert Coming4-Sep-10 22:29 
GeneralRe: Problem in UDP socket connection. Pin
LloydA1115-Sep-10 2:58
LloydA1115-Sep-10 2:58 
GeneralRe: Problem in UDP socket connection. Pin
Dave Kreskowiak5-Sep-10 3:07
mveDave Kreskowiak5-Sep-10 3:07 
GeneralRe: Problem in UDP socket connection. Pin
LloydA1115-Sep-10 3:08
LloydA1115-Sep-10 3:08 
GeneralMessage Removed Pin
27-Oct-10 8:33
flflshop27-Oct-10 8:33 
GeneralRe: Problem in UDP socket connection. Pin
LloydA11127-Oct-10 8:39
LloydA11127-Oct-10 8:39 
QuestionHow to tell the difference of Null value or true or false for Yes/No field in access database from vb.net Pin
Andraw Tang1-Sep-10 11:28
Andraw Tang1-Sep-10 11:28 
AnswerRe: How to tell the difference of Null value or true or false for Yes/No field in access database from vb.net Pin
Luc Pattyn1-Sep-10 12:54
sitebuilderLuc Pattyn1-Sep-10 12:54 
GeneralRe: How to tell the difference of Null value or true or false for Yes/No field in access database from vb.net Pin
Andraw Tang1-Sep-10 13:01
Andraw Tang1-Sep-10 13:01 
GeneralRe: How to tell the difference of Null value or true or false for Yes/No field in access database from vb.net Pin
Andraw Tang1-Sep-10 13:02
Andraw Tang1-Sep-10 13:02 
GeneralRe: How to tell the difference of Null value or true or false for Yes/No field in access database from vb.net Pin
Luc Pattyn1-Sep-10 13:40
sitebuilderLuc Pattyn1-Sep-10 13:40 
QuestionTrying to Understand .NET 4 Parallelization Pin
Dominick Marciano1-Sep-10 6:41
professionalDominick Marciano1-Sep-10 6:41 
AnswerRe: Trying to Understand .NET 4 Parallelization Pin
Dave Kreskowiak1-Sep-10 7:34
mveDave Kreskowiak1-Sep-10 7:34 
GeneralRe: Trying to Understand .NET 4 Parallelization Pin
Dominick Marciano1-Sep-10 8:07
professionalDominick Marciano1-Sep-10 8:07 

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.