winsock and internet connection error
winsock and internet connection error
winsock and internet connection error
winsock and internet connection error
winsock and internet connection error
winsock and internet connection error winsock and internet connection error winsock and internet connection error winsock and internet connection error winsock and internet connection error winsock and internet connection error winsock and internet connection error winsock and internet connection error
winsock and internet connection error winsock and internet connection error
winsock and internet connection error
Go Back  Xtreme Visual Basic Talk > > > winsock and internet connection error


Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2016, 02:13 PM
jajiyiko jajiyiko is online now
Newcomer
 
Join Date: Jul 2006
Posts: 2
Default winsock and internet connection error


Hi!

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?
Reply With Quote
Reply

Tags
project, private, byval, windowname, wid, declare, close, winsock, closewindow, user32, lib, string, function, internet, connection, findwindowvbnullstring, lpwindowname, timer1_timer, error, again, changed, code, closing, findwindowa, server


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
winsock and internet connection error
winsock and internet connection error
winsock and internet connection error winsock and internet connection error
winsock and internet connection error
winsock and internet connection error
winsock and internet connection error winsock and internet connection error winsock and internet connection error winsock and internet connection error winsock and internet connection error winsock and internet connection error winsock and internet connection error
winsock and internet connection error
winsock and internet connection error
 
winsock and internet connection error
winsock and internet connection error
 
-->