Open Map Network Drive Dialog

shrishailnagathan used Ask the Experts™
On the desktop their will be Computer icon if you Right click on this icon the context menu will open in the context menu if you click on the menu item
MAP Network Drive... The Map Network Drive Dialog box will
be opened.

I want this dialog box to be opened from the Vb application, That is when i click on the buutton etc.
Will Some one Give the code for this.

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®


Pl paste the code as comment
Private Declare Function WNetConnectionDialog Lib "mpr.dll" _
        (ByVal hwnd As Long, ByVal dwType As Long) As Long

Private Sub Command1_Click()
   Call WNetConnectionDialog(Me.hwnd, 1)
End Sub
Author of the Year 2009

Hi shrishailnagathan,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept vinnyd79's comment(s) as an answer.

shrishailnagathan, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept THIS comment as an answer.
DanRollins -- EE database cleanup volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial