Open the Internet Connection dialog

Open the Internet Connection dialog

The dialog you see when you start an Internet connection is implemented in the RNAUI.DLL file, and the specific function is called RnaDial. To open this dialog from your application you can call this function through the rundll32.exe application (located in Windows directory) specifying the name of the connection you want to start. Here’s a routine that opens the dialog of the connection whose name is passed in input:

Sub OpenConnectionDialog(sName As String)    Shell "rundll32.exe rnaui.dll,RnaDial " & sName, 1End Sub


Share the Post: