CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2003
    Location
    New Jersey
    Posts
    4

    Outlook and network disconnect

    HI
    I am using Outlook 2000 in my VB application on WIndows 2000. Is there any event which can tell me that I have lost connection? I have been testing pulling out my network cable . At the bottom of screen in the right corner I see a notification which says the connection s lost. Can I trap this message in VB?

  2. #2
    Join Date
    Dec 2002
    Location
    NC
    Posts
    125
    I am by no means a network guru but here are some options.

    You can ping a certain IP and dismiss replies but when there is no reply call your code.

    You can query the Registry and look for the "connected" state.

    You may also be able to do something with the winsocks control.

    These you will need a timer to fire at your discretion. I have used the first two on different projects and they worked OK

    Im sure other folks may have a better solution.

    good luck
    Last edited by dedub; November 12th, 2003 at 08:57 PM.
    R.L.T.W. A+, NET+, CCNA

    doin' my best

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured