home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmDialogs
- Caption = "Connection Dialog Boxes"
- ClientHeight = 1695
- ClientLeft = 2145
- ClientTop = 2280
- ClientWidth = 5505
- Height = 2100
- Left = 2085
- LinkTopic = "Form1"
- ScaleHeight = 1695
- ScaleWidth = 5505
- Top = 1935
- Width = 5625
- Begin VB.Frame Frame1
- Caption = "Select Resource"
- Height = 1335
- Left = 3240
- TabIndex = 2
- Top = 120
- Width = 1935
- Begin VB.OptionButton optPrinter
- Caption = "Printer Resource"
- Height = 375
- Left = 240
- TabIndex = 4
- Top = 840
- Width = 1575
- End
- Begin VB.OptionButton optDisk
- Caption = "Disk Resource"
- Height = 195
- Left = 240
- TabIndex = 3
- Top = 360
- Value = -1 'True
- Width = 1455
- End
- End
- Begin VB.CommandButton cmdDisconnectDialog
- Caption = "Open &Disconnect Dialog"
- Height = 495
- Left = 360
- TabIndex = 1
- Top = 960
- Width = 2535
- End
- Begin VB.CommandButton cmdConnectDialog
- Caption = "Open &Connect Dialog"
- Height = 495
- Left = 360
- TabIndex = 0
- Top = 240
- Width = 2535
- End
- Attribute VB_Name = "frmDialogs"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub cmdConnectDialog_Click()
- Dim Succeed As Long
- Dim Resource As Long
- If optDisk Then
- Resource = RESOURCETYPE_DISK
- Else
- Resource = RESOURCETYPE_PRINT
- End If
- Succeed = WNetConnectionDialog(hwnd, Resource)
- End Sub
- Private Sub cmdDisconnectDialog_Click()
- Dim Succeed As Long
- Dim Resource As Long
- If optDisk Then
- Resource = RESOURCETYPE_DISK
- Else
- Resource = RESOURCETYPE_PRINT
- End If
- Succeed = WNetDisconnectDialog(hwnd, Resource)
- End Sub
-