Setup.frm
资源名称:ssaver.zip [点击查看]
上传用户:wje666666
上传日期:2007-03-31
资源大小:8k
文件大小:2k
源码类别:
屏幕保护
开发平台:
Visual Basic
- VERSION 4.00
- Begin VB.Form frmSetup
- Caption = "Settings"
- ClientHeight = 1530
- ClientLeft = 1680
- ClientTop = 2100
- ClientWidth = 6690
- Height = 1935
- Left = 1620
- LinkTopic = "Form1"
- ScaleHeight = 1530
- ScaleWidth = 6690
- Top = 1755
- Width = 6810
- Begin VB.CommandButton cmdOK
- Caption = "&OK"
- Height = 375
- Left = 3840
- TabIndex = 2
- Top = 960
- Width = 1215
- End
- Begin VB.CommandButton cmdCancel
- Caption = "&Cancel"
- Height = 375
- Left = 5280
- TabIndex = 3
- Top = 960
- Width = 1215
- End
- Begin VB.TextBox txtMessage
- Height = 375
- Left = 120
- TabIndex = 1
- Top = 360
- Width = 6375
- End
- Begin VB.Label Label1
- Caption = "Enter message:"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 1215
- End
- End
- Attribute VB_Name = "frmSetup"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdCancel_Click()
- Unload Me
- End Sub
- Private Sub cmdOK_Click()
- 'saves message to file
- Open "ssaver.msg" For Output As #1
- Print #1, txtMessage.Text
- Close #1
- Unload Me
- End Sub
- Private Sub Form_Load()
- Dim message As String
- 'if file doesn't exsist continues operations
- On Error Resume Next
- 'opens file to read in current message
- Open "ssaver.msg" For Input As #1
- Line Input #1, message$
- Close #1
- 'displays current message in text box
- txtMessage = message$
- 'centers form
- Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2
- End Sub