home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{60F3DD10-54A1-416D-835C-B8371C544B98}#4.0#0"; "WebX.ocx"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 3195
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 3195
- ScaleWidth = 4680
- StartUpPosition = 3 'Windows Default
- Begin WebXServer.WebX WebX1
- Height = 1080
- Left = 1620
- Top = 960
- Width = 1080
- _ExtentX = 1905
- _ExtentY = 1905
- End
- Begin VB.CommandButton Command1
- Caption = "Command1"
- Height = 495
- Left = 3420
- TabIndex = 0
- Top = 2640
- Width = 1215
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- ' Set up the Form
- Command1.Caption = "Start Server"
- Caption = "Server Stopped."
- End Sub
- Private Sub Command1_Click()
- With WebX1
- ' Check the States of W3Server and
- ' take appropriate action.
- If .ServerRunning = False Then
- .ServerPort = 8888
- .VirtualPath = App.Path & "\html"
- .StartServer
- Caption = "Server Running."
- Command1.Caption = "Stop Server"
- Else
- .StopServer
- Caption = "Server Stopped."
- Command1.Caption = "Start Server"
- End If
- End With
- End Sub
-