Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   Communications (http://www.xtremevbtalk.com/communications/)
-   -   winsock and internet connection error (http://www.xtremevbtalk.com/communications/328465-winsock-internet-connection-error.html)

jajiyiko 10-16-2016 02:13 PM

winsock and internet connection error

I use winsock and listen 514 udp port.

but if internet connection cut ,windows send "server name or address colud not be resolved" msgbox.

How can I close or blocking Windows messages?

Private Declare Function CloseWindow Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Private Sub Timer1_Timer()

wid = FindWindow(vbNullString, "windowname")
If wid <> 0 Then CloseWindow wid
end sub

I can close with this code . But windowname is project name. project is closing too. i changed project name ,again windowname is project name

can you help me?

All times are GMT -6. The time now is 06:03 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.