strclientaddress Visual Basic .NET development


strclientaddress Visual Basic .NET development

Author
Message
Unknown (Google)
View Quick Profile

Supreme Being
Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 6, Visits: 27
Hi there,

I just wanted to know how can i retreive the information to see who is connected to my VNC server? I want to get the ip address.

Example:

private sub xxx.control1_Connected (By Val strclientaddress as String)

text1.text = strclientaddress

end sub

In visual basic 6 sp6 i got it working, but in Visual Basic .NET 2010 Express i am not able to get it.

Any tips?

Thank you.
Yury Averkiev (s-code)
View Quick Profile

Supreme Being
Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)

Group: Administrators
Last Active: 3 days ago @ 6:45 PM
Posts: 1.9K, Visits: 3.5K
Hi,
it should work just fine in VB.NET. Could you tell me, what value the strclientaddress variable contains in case of a VB.NET application?

http://www.s-code.com/App_Themes/Default/images/blue_line.gif
Kindest Regards,
SmartCode Solutions Support
Unknown (Google)
View Quick Profile

Supreme Being
Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 6, Visits: 27
Hi there,

Thanks for your fast reply.

Well ... i am not just sure ... but i have the source code in VB 6 SP6 and it worked in the way i told you above ...

How can i write the same code for VB . NET?


I just want to see who is connected to my server :-) just dont know how to write it in VB.NEt language.

I guess it should be strclientaddress .... and then something ...


Thanks.
Yury Averkiev (s-code)
View Quick Profile

Supreme Being
Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)Supreme Being (193.8K reputation)

Group: Administrators
Last Active: 3 days ago @ 6:45 PM
Posts: 1.9K, Visits: 3.5K
Considering that VB6 and VB.NET are quite similar syntax wise, the code should look pretty much the same in VB.NET.

I wish I could provide you with an exact sample, but I don't know VB that well.

http://www.s-code.com/App_Themes/Default/images/blue_line.gif
Kindest Regards,
SmartCode Solutions Support
Unknown (Google)
View Quick Profile

Supreme Being
Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)Supreme Being (802 reputation)

Group: Forum Members
Last Active: 6 Years Ago
Posts: 6, Visits: 27
I fixed it using this code:

 Public strClientAddress As String

    Private Sub AxCSC_ServerXControl1_Connected(ByVal sender As System.Object, ByVal e As AxServerX._ISc_ServerXEvents_ConnectedEvent) Handles AxCSC_ServerXControl1.Connected
        RichTextBox1.Text = e.strClientAddress
    End Sub


Similar Topics


Reading This Topic