home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmCreate
- BorderStyle = 3 'Fixed Dialog
- Caption = "Create/Remove Web"
- ClientHeight = 5100
- ClientLeft = 1845
- ClientTop = 2910
- ClientWidth = 5325
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 5100
- ScaleWidth = 5325
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton btnRemove
- Caption = "Remove Web"
- Enabled = 0 'False
- Height = 375
- Left = 1680
- TabIndex = 3
- Top = 3000
- Width = 1335
- End
- Begin VB.CommandButton btnCreate
- Caption = "Create Web"
- Height = 375
- Left = 240
- TabIndex = 2
- Top = 3000
- Width = 1335
- End
- Begin VB.TextBox txtServer
- Height = 285
- Left = 240
- TabIndex = 0
- Top = 1320
- Width = 4935
- End
- Begin VB.TextBox txtWeb
- Height = 285
- Left = 240
- TabIndex = 1
- Top = 2280
- Width = 4935
- End
- Begin VB.CheckBox optCanRemove
- Caption = "Enable Remove Web"
- Height = 255
- Left = 240
- TabIndex = 4
- Top = 3600
- Width = 2055
- End
- Begin VB.Label lblServer
- Caption = "Web Server:"
- Height = 195
- Left = 240
- TabIndex = 11
- Top = 1080
- Width = 1815
- End
- Begin VB.Label Label2
- Caption = "Web Name:"
- Height = 195
- Left = 240
- TabIndex = 10
- Top = 2040
- Width = 1815
- End
- Begin VB.Label lblServerHelp
- Caption = "(the TCP/IP host name or address of the web server machine)"
- Height = 255
- Left = 240
- TabIndex = 9
- Top = 1680
- Width = 4935
- End
- Begin VB.Label Label7
- Caption = "(the name of the FrontPage web, or nothing for the Root Web)"
- Height = 255
- Left = 240
- TabIndex = 8
- Top = 2640
- Width = 4935
- End
- Begin VB.Line Line2
- X1 = 240
- X2 = 5160
- Y1 = 4080
- Y2 = 4080
- End
- Begin VB.Label Label1
- Caption = $"create.frx":0000
- Height = 675
- Left = 240
- TabIndex = 7
- Top = 4320
- Width = 4935
- WordWrap = -1 'True
- End
- Begin VB.Label Label5
- Caption = "This form uses the following FrontPage Explorer methods:"
- Height = 255
- Left = 240
- TabIndex = 6
- Top = 120
- Width = 4815
- End
- Begin VB.Label Label6
- Alignment = 2 'Center
- Caption = "vtiCreateWeb, vtiRemoveWeb"
- Height = 255
- Left = 240
- TabIndex = 5
- Top = 480
- Width = 4815
- WordWrap = -1 'True
- End
- Begin VB.Line Line1
- X1 = 240
- X2 = 5160
- Y1 = 840
- Y2 = 840
- End
- Attribute VB_Name = "frmCreate"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub btnCreate_Click()
- MousePointer = 11
- Dim webber As Object
- Dim ret As Long
- Set webber = CreateObject("FrontPage.Explorer")
- ret = webber.vtiCreateWeb(txtServer, txtWeb)
- Set webber = Nothing
- MousePointer = 0
- End Sub
- Private Sub Command2_Click()
- End Sub
- Private Sub btnRemove_Click()
- MousePointer = 11
- Dim webber As Object
- Dim ret As Long
- Dim webURL As String
- Set webber = CreateObject("FrontPage.Explorer")
- webURL = webber.vtiGetWebURL
- If Len(webURL) > 0 Then
- ret = webber.vtiRemoveWeb("/" & txtWeb)
- If ret <> 1 Then
- MsgBox "Unable to remove the web '" & txtWeb & "'; it may not exist on the server."
- End If
- Else
- MsgBox "There must be an open web in the Explorer for vtiRemoveWeb to work."
- End If
- Set webber = Nothing
- MousePointer = 0
- End Sub
- Private Sub optCanRemove_Click()
- Dim yesno As Boolean
- yesno = optCanRemove.Value
- btnRemove.Enabled = yesno
- lblServer.Enabled = Not yesno
- lblServerHelp.Enabled = Not yesno
- txtServer.Enabled = Not yesno
- End Sub
-