منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب
[كود] طلب كود الانترنت - نسخة قابلة للطباعة

+- منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب (http://vb4arb.com/vb)
+-- قسم : قسم لغة الفيجوال بيسك VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=182)
+--- قسم : قسم اسئلة VB.NET (http://vb4arb.com/vb/forumdisplay.php?fid=183)
+--- الموضوع : [كود] طلب كود الانترنت (/showthread.php?tid=15615)

الصفحات: 1 2


RE: طلب كود الانترنت - mostfa1995 - 28-04-16

(28-04-16, 10:03 PM)amgad525 كتب : http://vb4arb.com/vb/thread-14676-post-70192.html#pid70192

PHP كود :
      If CheckInternetConnection() = True Then
            MessageBox
.Show("Your Computer is  Connected to internet""Connected"MessageBoxButtons.OKMessageBoxIcon.Information)
 
       Else
            MessageBox
.Show("Your Computer is not Connected to internet""Error"MessageBoxButtons.OKMessageBoxIcon.Error)
 
           Application.Exit()
 
       End If 

PHP كود :
Public Shared Function CheckInternetConnection() As Boolean
        Try
            Return My
.Computer.Network.Ping("www.google.com")
 
           Return True
        Catch
            Return False
        End 
Try
 
   End Function 

شغال تمام اشكرك على المجهود الرائع


RE: طلب كود الانترنت - amgad525 - 28-04-16

(09-02-16, 02:24 AM)Adrees كتب : السلام عليكم

اولا اكتب هذه الدالة 

PHP كود :
   Public Shared Function CheckInternetConnection() As Boolean
        Try
            Return My
.Computer.Network.Ping("www.google.com")
 
           Return True
        Catch
            Return False
        End 
Try
 
   End Function 

ثانيا في الحدث Form Load  ضع الكود التالي

PHP كود :
       If CheckInternetConnection() = True Then
            MessageBox
.Show("Your Computer is  Connected to internet""Connected"MessageBoxButtons.OKMessageBoxIcon.Information)
 
       Else
            MessageBox
.Show("Your Computer is not Connected to internet""Error"MessageBoxButtons.OKMessageBoxIcon.Error)
 
           Application.Exit()
 
       End If 
ان شاء الله يفيدك هذا الكود.



RE: طلب كود الانترنت - mostfa1995 - 28-04-16

(28-04-16, 10:03 PM)amgad525 كتب : http://vb4arb.com/vb/thread-14676-post-70192.html#pid70192

PHP كود :
      If CheckInternetConnection() = True Then
            MessageBox
.Show("Your Computer is  Connected to internet""Connected"MessageBoxButtons.OKMessageBoxIcon.Information)
 
       Else
            MessageBox
.Show("Your Computer is not Connected to internet""Error"MessageBoxButtons.OKMessageBoxIcon.Error)
 
           Application.Exit()
 
       End If 

PHP كود :
Public Shared Function CheckInternetConnection() As Boolean
        Try
            Return My
.Computer.Network.Ping("www.google.com")
 
           Return True
        Catch
            Return False
        End 
Try
 
   End Function 

شغال تمام اشكرك على المجهود الرائع


RE: طلب كود الانترنت - سعود - 28-04-16

(28-04-16, 10:43 PM)mostfa1995 كتب :
(28-04-16, 10:03 PM)amgad525 كتب : http://vb4arb.com/vb/thread-14676-post-70192.html#pid70192

PHP كود :
      If CheckInternetConnection() = True Then
            MessageBox
.Show("Your Computer is  Connected to internet""Connected"MessageBoxButtons.OKMessageBoxIcon.Information)
 
       Else
            MessageBox
.Show("Your Computer is not Connected to internet""Error"MessageBoxButtons.OKMessageBoxIcon.Error)
 
           Application.Exit()
 
       End If 

PHP كود :
Public Shared Function CheckInternetConnection() As Boolean
        Try
            Return My
.Computer.Network.Ping("www.google.com")
 
           Return True
        Catch
            Return False
        End 
Try
 
   End Function 

شغال تمام اشكرك على المجهود الرائع

امرك غريب 
يعني ايش الفرق بين الكود اللي اعطيتك والكود هذا؟؟
اتمنى تكون صريح ولو مرة


RE: طلب كود الانترنت - zinom - 29-04-16

الاخوه الكرام ما قصرو 

وده للتحقق من اتصال كارت الان فقط 



RE: طلب كود الانترنت - mostfa1995 - 29-04-16

(28-04-16, 10:47 PM)سعود كتب :
(28-04-16, 10:43 PM)mostfa1995 كتب :
(28-04-16, 10:03 PM)amgad525 كتب : http://vb4arb.com/vb/thread-14676-post-70192.html#pid70192

PHP كود :
      If CheckInternetConnection() = True Then
            MessageBox
.Show("Your Computer is  Connected to internet""Connected"MessageBoxButtons.OKMessageBoxIcon.Information)
 
       Else
            MessageBox
.Show("Your Computer is not Connected to internet""Error"MessageBoxButtons.OKMessageBoxIcon.Error)
 
           Application.Exit()
 
       End If 

PHP كود :
Public Shared Function CheckInternetConnection() As Boolean
        Try
            Return My
.Computer.Network.Ping("www.google.com")
 
           Return True
        Catch
            Return False
        End 
Try
 
   End Function 

شغال تمام اشكرك على المجهود الرائع

امرك غريب 
يعني ايش الفرق بين الكود اللي اعطيتك والكود هذا؟؟
اتمنى تكون صريح ولو مرة

انا مقولتش حاجة والله انا بشكر الراجل والله لا تزعل

لا احد يزعل منى وشكرااااااااا لكل الاعضاء الى شارك فى الموضوع


RE: طلب كود الانترنت - hassan - 29-04-16

الرجاء من الاخوه قبل طرح السوال البحث في المنتدى 

هاذا موضوع مشابه لي طلبك

هنا


شكرا