home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{ED293738-DF14-11CF-B0B6-0000F63A6615}#1.0#0"; "Rasdial.ocx"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 2970
- ClientLeft = 240
- ClientTop = 720
- ClientWidth = 5100
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2970
- ScaleWidth = 5100
- StartUpPosition = 2 'CenterScreen
- Begin VB.TextBox Text1
- Enabled = 0 'False
- Height = 285
- Left = 840
- TabIndex = 4
- Top = 2160
- Width = 1815
- End
- Begin VB.CommandButton Command3
- Caption = "RasPhonebook"
- Height = 375
- Left = 2640
- TabIndex = 2
- Top = 720
- Width = 1575
- End
- Begin VB.CommandButton Command2
- Caption = "RasDisconnect"
- Height = 375
- Left = 2640
- TabIndex = 1
- Top = 1200
- Width = 1575
- End
- Begin VB.CommandButton Command1
- Caption = "RasDial"
- Height = 375
- Left = 960
- TabIndex = 0
- Top = 720
- Width = 1095
- End
- Begin RASDIALLib.RasDial RasDial1
- Left = 3600
- Top = 1920
- _Version = 65536
- _ExtentX = 847
- _ExtentY = 847
- _StockProps = 0
- End
- Begin VB.Label Label1
- Caption = "IP Address"
- Height = 255
- Left = 840
- TabIndex = 3
- Top = 1920
- Width = 1695
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- 'n% = RasDial1.RasConnect(Form1.hWnd, "CompuServe", False)
- 'n% = RasDial1.RasConnect(Form1.hWnd, "CompuServe", True)
- 'n% = RasDial1.RasConnect(Form1.hWnd, "CompuServePPP", True)
- n = RasDial1.RasConnect(Form1.hWnd, "", False)
- If n = True Then
- s = RasDial1.GetIPAddress()
- Text1.Text = s
- End If
- End Sub
- Private Sub Command2_Click()
- RasDial1.RasShutDown
- End Sub
- Private Sub Command3_Click()
- RasDial1.RasDialConfig (Form1.hWnd)
- End Sub
-