Click here to Skip to main content
15,886,919 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionMy First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
William Ralls4-Aug-09 7:01
William Ralls4-Aug-09 7:01 
AnswerRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
nlarson114-Aug-09 7:23
nlarson114-Aug-09 7:23 
AnswerRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
N a v a n e e t h4-Aug-09 7:43
N a v a n e e t h4-Aug-09 7:43 
GeneralRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
William Ralls4-Aug-09 9:00
William Ralls4-Aug-09 9:00 
GeneralRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
Luc Pattyn4-Aug-09 15:00
sitebuilderLuc Pattyn4-Aug-09 15:00 
AnswerDataGridView Pin
David Mujica4-Aug-09 8:04
David Mujica4-Aug-09 8:04 
AnswerRe: My First Post so be gentle ;) Problem stoppiong code from running in a closed form Pin
Christian Graus4-Aug-09 13:24
protectorChristian Graus4-Aug-09 13:24 
QuestionHow to check if TCP/IP connection is active with a device Pin
sohaib_a4-Aug-09 5:26
sohaib_a4-Aug-09 5:26 
Hey..

I really at my wits end on this.

I have a device that i connect to through TCP/IP using an api function call.


Because there could be cases where maybe the router/switch restarted or the network went down or something
and if this happens then the device should connect automatically again.

I need a to check the the connection status of the device,whether it is connected to application or not so then i can reconnect automatically.

I did something like this
Dim information As TcpConnectionInformation
                For Each information In IPGlobalProperties.GetIPGlobalProperties.GetActiveTcpConnections
                    If (information.RemoteEndPoint.Address.ToString = readerIp) Then
                        state = CInt(information.State)
                    End If
                Next


However this updates the state only after i manually disconnect the device.It the i pull the cable out and plug it back in it still show the same state.


Is there another way to this,to check where a connection is..(not like ping) but if there is an active connection between the device and pc.
AnswerRe: How to check if TCP/IP connection is active with a device Pin
N a v a n e e t h4-Aug-09 7:45
N a v a n e e t h4-Aug-09 7:45 
GeneralRe: How to check if TCP/IP connection is active with a device Pin
sohaib_a4-Aug-09 11:42
sohaib_a4-Aug-09 11:42 
QuestionHot to read uncommon picture format? Pin
Sonhospa4-Aug-09 0:22
Sonhospa4-Aug-09 0:22 
AnswerRe: Hot to read uncommon picture format? Pin
Luc Pattyn4-Aug-09 1:16
sitebuilderLuc Pattyn4-Aug-09 1:16 
GeneralRe: Hot to read uncommon picture format? Pin
Sonhospa4-Aug-09 6:26
Sonhospa4-Aug-09 6:26 
GeneralRe: Hot to read uncommon picture format? Pin
Luc Pattyn4-Aug-09 6:52
sitebuilderLuc Pattyn4-Aug-09 6:52 
GeneralRe: Hot to read uncommon picture format? Pin
Sonhospa4-Aug-09 8:32
Sonhospa4-Aug-09 8:32 
GeneralRe: Hot to read uncommon picture format? Pin
Luc Pattyn4-Aug-09 8:44
sitebuilderLuc Pattyn4-Aug-09 8:44 
GeneralRe: Hot to read uncommon picture format? Pin
Sonhospa4-Aug-09 9:47
Sonhospa4-Aug-09 9:47 
AnswerRe: Hot to read uncommon picture format? Pin
Steven J Jowett4-Aug-09 3:49
Steven J Jowett4-Aug-09 3:49 
GeneralRe: Hot to read uncommon picture format? Pin
Sonhospa4-Aug-09 6:31
Sonhospa4-Aug-09 6:31 
Questionconnecting gmail using IMAP in VB.NET? Pin
nevincm3-Aug-09 21:16
nevincm3-Aug-09 21:16 
AnswerRe: connecting gmail using IMAP in VB.NET? Pin
Mike Ellison4-Aug-09 3:17
Mike Ellison4-Aug-09 3:17 
QuestionBest practices for common routines Pin
supercat93-Aug-09 12:36
supercat93-Aug-09 12:36 
AnswerRe: Best practices for common routines Pin
Christian Graus3-Aug-09 13:39
protectorChristian Graus3-Aug-09 13:39 
AnswerRe: Best practices for common routines Pin
Mycroft Holmes3-Aug-09 13:56
professionalMycroft Holmes3-Aug-09 13:56 
GeneralRe: Best practices for common routines Pin
supercat94-Aug-09 5:46
supercat94-Aug-09 5:46 

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.