Click here to Skip to main content
15,917,618 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Get current user's logon password Pin
Steven J Jowett29-May-07 0:10
Steven J Jowett29-May-07 0:10 
GeneralRe: Get current user's logon password Pin
Kiran Kumar B29-May-07 17:31
Kiran Kumar B29-May-07 17:31 
GeneralRe: Get current user's logon password Pin
Kiran Kumar B29-May-07 17:35
Kiran Kumar B29-May-07 17:35 
GeneralRe: Get current user's logon password Pin
Steven J Jowett29-May-07 22:10
Steven J Jowett29-May-07 22:10 
QuestionCreating VPN Pin
carsell28-May-07 23:20
carsell28-May-07 23:20 
QuestionFlexGrid in VB6 Pin
Kumaran21cen28-May-07 23:14
Kumaran21cen28-May-07 23:14 
AnswerRe: FlexGrid in VB6 Pin
Navneet Hegde28-May-07 23:45
Navneet Hegde28-May-07 23:45 
QuestionRestarting a socket Pin
Diego F.28-May-07 22:54
Diego F.28-May-07 22:54 
Hi all. I'm migrating a VB6 application that uses sockets. There is a button that restablishes the connection. In VB6 it is as simple as socket.close and socket.connect, but in vb.net it doesn't work.

I'm using that code to connect:

endpoint = New IPEndPoint(IPAddress.Parse(host), port)
Socket1 = Nothing
Socket1 = New Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp)
Socket1.Connect(endpoint)


The code that works in VB6 is that:

Socket1.Close
Socket1.RemoteHost = host
Socket1.RemotePort = port
Socket1.Connect

The exception I get is: No connection could be made because the target
machine actively refused it

What is wrong here?

Regards,

Diego F.

AnswerRe: Restarting a socket Pin
ne0h29-May-07 0:36
ne0h29-May-07 0:36 
GeneralRe: Restarting a socket Pin
Diego F.29-May-07 0:42
Diego F.29-May-07 0:42 
GeneralRe: Restarting a socket Pin
Kiran Kumar B29-May-07 17:44
Kiran Kumar B29-May-07 17:44 
GeneralRe: Restarting a socket Pin
Diego F.29-May-07 21:50
Diego F.29-May-07 21:50 
QuestionCrystal Report Takes too Much Time Pin
Rupesh Kumar Swami28-May-07 22:13
Rupesh Kumar Swami28-May-07 22:13 
AnswerRe: Crystal Report Takes too Much Time Pin
Steven J Jowett28-May-07 23:14
Steven J Jowett28-May-07 23:14 
GeneralRe: Crystal Report Takes too Much Time Pin
Rupesh Kumar Swami29-May-07 0:29
Rupesh Kumar Swami29-May-07 0:29 
QuestionImporting COM Components Pin
Zaegra28-May-07 21:18
Zaegra28-May-07 21:18 
AnswerRe: Importing COM Components Pin
CPallini29-May-07 2:04
mveCPallini29-May-07 2:04 
Questionconnection problem Pin
matjame28-May-07 21:11
matjame28-May-07 21:11 
AnswerRe: connection problem Pin
WhiteGirl2328-May-07 23:05
WhiteGirl2328-May-07 23:05 
GeneralRe: connection problem Pin
matjame28-May-07 23:15
matjame28-May-07 23:15 
AnswerRe: connection problem Pin
Navneet Hegde29-May-07 0:47
Navneet Hegde29-May-07 0:47 
GeneralRe: connection problem Pin
matjame29-May-07 0:53
matjame29-May-07 0:53 
GeneralRe: connection problem Pin
Navneet Hegde29-May-07 1:03
Navneet Hegde29-May-07 1:03 
AnswerRe: connection problem Pin
ne0h29-May-07 0:47
ne0h29-May-07 0:47 
QuestionUsing Crystal Report 9 application and .Net Crystal Report application at same machine Pin
Ali 11028-May-07 21:01
Ali 11028-May-07 21:01 

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.