Multiple Active Connections doesn't hangup

Apr 2, 2009 at 3:50 AM
Great library

One problem though, how do I hang up multiple active connections?
For example when the modem switches off then on, and I have to RasDial again, it now says it has 2 active connections, and when I loop through the active connections to hang up.
I have to use the Phone Book entry object RasEntry as it has the hangup function.

Do you guys have a Hangup Function on the active connections?

Thanks

I tried this ...

 

 

Dim

conn() As RasConnection = Ras.ActiveConnections

 

 

For Each ras As RasConnection In conn

 

 

Dim enTry As RasEntry = rasEntries(ras.Name)

 

enTry.Hangup()

MessageBox.Show(ras.Name &

" Hangup")

 

 

Next

 

 

 

 

Apr 3, 2009 at 2:58 AM
sorry my mistake you do have a function call ...

Dim

conn() As RasConnection = Ras.ActiveConnections

 

 

For Each cn As RasConnection In conn

 

Ras.Hangup(cn)

MessageBox.Show(

"Hangup")

 

 

Next