Click here to Skip to main content
15,890,186 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Tape Drive Help Pin
Henry Minute4-Jul-09 0:54
Henry Minute4-Jul-09 0:54 
GeneralRe: Tape Drive Help Pin
keiichicom7-Jul-09 12:08
keiichicom7-Jul-09 12:08 
QuestionClient Ip address Pin
ksss_maheshece3-Jul-09 2:00
ksss_maheshece3-Jul-09 2:00 
AnswerRe: Client Ip address Pin
DoctorMick3-Jul-09 2:23
DoctorMick3-Jul-09 2:23 
GeneralRe: Client Ip address Pin
ksss_maheshece3-Jul-09 2:52
ksss_maheshece3-Jul-09 2:52 
GeneralRe: Client Ip address Pin
Not Active3-Jul-09 3:42
mentorNot Active3-Jul-09 3:42 
GeneralRe: Client Ip address Pin
ksss_maheshece3-Jul-09 20:13
ksss_maheshece3-Jul-09 20:13 
Questiondetect LAN cable unplugged Pin
Member 43208313-Jul-09 1:46
Member 43208313-Jul-09 1:46 
Hi I'm trying to develop an application that can detect when a LAN cable is plugged in/unplugged(mind you only LAN cable,should not apply to a Wireless LAN being switched on/off). I did my research and am trying to do it through WMI. The code is as follows but doesn't seem to work. It seems as my event handler isn't handling the events caught by the event watcher.Help!

code:

Imports System.Management
Public Class Form1
Friend WithEvents mew As ManagementEventWatcher
Sub New()

Dim myMS As New ManagementScope("\\.\root\cimv2")
myMS.Connect()
If myMS.IsConnected Then
MsgBox("Connected")
mew = New ManagementEventWatcher("select * from __InstanceModificationEvent within 1 where targetinstance ISA ""Win32_NetworkAdapter""")
mew.Start()
End If

End Sub
Private Sub arrived(ByVal sender As Object, ByVal e As System.Management.EventArrivedEventArgs) Handles mew.EventArrived
Dim mbo, obj As ManagementBaseObject
mbo = CType(e.NewEvent, ManagementBaseObject)
obj = CType(mbo("TargetInstance"), ManagementBaseObject)
MsgBox(obj("Name") + ":" + obj("ConnectionStatus"))
MsgBox(e.Context.ToString)
End Sub
End Class
AnswerRe: detect LAN cable unplugged Pin
Vasudevan Deepak Kumar3-Jul-09 2:15
Vasudevan Deepak Kumar3-Jul-09 2:15 
GeneralRe: detect LAN cable unplugged Pin
Member 43208315-Jul-09 21:17
Member 43208315-Jul-09 21:17 
Questioncode help in c#.net for burning dvd using imapi Pin
mukulsharma11463-Jul-09 1:30
mukulsharma11463-Jul-09 1:30 
AnswerRe: code help in c#.net for burning dvd using imapi Pin
Tamer Oz3-Jul-09 1:47
Tamer Oz3-Jul-09 1:47 
QuestionStarting Processes Under Current Logged in User Pin
Tristan Rhodes3-Jul-09 0:59
Tristan Rhodes3-Jul-09 0:59 
QuestionDollar value Pin
ksss_maheshece2-Jul-09 23:49
ksss_maheshece2-Jul-09 23:49 
AnswerRe: Dollar value Pin
K03063-Jul-09 0:15
K03063-Jul-09 0:15 
GeneralRe: Dollar value Pin
ksss_maheshece3-Jul-09 0:31
ksss_maheshece3-Jul-09 0:31 
QuestionDatabinding to ToolstripcomboBox in ToolstripDropdown Pin
ShweBo2-Jul-09 18:24
ShweBo2-Jul-09 18:24 
AnswerRe: Databinding to ToolstripcomboBox in ToolstripDropdown Pin
Arindam Sinha3-Jul-09 20:41
Arindam Sinha3-Jul-09 20:41 
AnswerRe: Databinding to ToolstripcomboBox in ToolstripDropdown Pin
Infarkt4-Jul-09 11:54
Infarkt4-Jul-09 11:54 
AnswerRe: Databinding to ToolstripcomboBox in ToolstripDropdown Pin
ShweBo8-Jul-09 0:37
ShweBo8-Jul-09 0:37 
GeneralRe: Databinding to ToolstripcomboBox in ToolstripDropdown Pin
ShweBo8-Jul-09 0:40
ShweBo8-Jul-09 0:40 
QuestionHow to disable mouse capture Pin
PIEBALDconsult2-Jul-09 7:09
mvePIEBALDconsult2-Jul-09 7:09 
AnswerRe: How to disable mouse capture Pin
Henry Minute3-Jul-09 0:17
Henry Minute3-Jul-09 0:17 
GeneralRe: How to disable mouse capture Pin
PIEBALDconsult3-Jul-09 5:46
mvePIEBALDconsult3-Jul-09 5:46 
QuestionGetting the Installation root directory from inside an Installer Pin
Tristan Rhodes2-Jul-09 6:34
Tristan Rhodes2-Jul-09 6:34 

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.