Create a windows hook to look for the WM_DEVICECHANGE message.
http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/
http://www.dotnet247.com/247reference/msgs/43/217435.aspx
Ken
--------------------
"David L Wright II" <dlwr...@radiks.net> wrote in message
news:eJUEcih...@TK2MSFTNGP09.phx.gbl...
Sorry posted the last to the wrong message. Try something like
this.
Private mstrParameter As String
Public Event PropertyChanged(ByVal e As EventArgs)
Public Property MyParameter() As String
Get
Return mstrParameter
End Get
Set(ByVal Value As String)
mstrParameter = Value
If Not Me.DesignMode Then RaiseEvent PropertyChanged(New
EventArgs)
End Set
End Property
Ken
--------------------
"Ken Tucker [MVP]" <vb...@bellsouth.net> wrote in message
news:OY4k2NmM...@tk2msftngp13.phx.gbl...
Your example was exactly what I was looking for and it's quite simple.
Thanks,
Dave
"Ken Tucker [MVP]" <vb...@bellsouth.net> wrote in message
news:eV3wgRmM...@TK2MSFTNGP12.phx.gbl...