⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 遗传算法,毕业设计.让我们一起共同学习探讨吧!
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   4800
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9420
   LinkTopic       =   "Form1"
   ScaleHeight     =   4800
   ScaleWidth      =   9420
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text3 
      Height          =   975
      Left            =   960
      TabIndex        =   6
      Text            =   "Text3"
      Top             =   1680
      Width           =   1335
   End
   Begin VB.TextBox Text1 
      Height          =   1215
      Left            =   2880
      TabIndex        =   5
      Text            =   "Text1"
      Top             =   1440
      Width           =   4215
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   600
      Top             =   600
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Caption         =   "推出"
      Height          =   495
      Left            =   8160
      TabIndex        =   4
      Top             =   2880
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "保存"
      Height          =   495
      Left            =   8160
      TabIndex        =   3
      Top             =   2160
      Width           =   1095
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   3720
      TabIndex        =   2
      Top             =   3840
      Width           =   3135
   End
   Begin VB.Label Label2 
      Caption         =   "文件名和路径:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF00FF&
      Height          =   375
      Left            =   1200
      TabIndex        =   1
      Top             =   3840
      Width           =   2415
   End
   Begin VB.Label Label1 
      Caption         =   "保存文本文件"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF00FF&
      Height          =   375
      Left            =   3480
      TabIndex        =   0
      Top             =   360
      Width           =   2055
   End
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()
CommonDialog1.ShowSave
'SavePicture Picture1.Image, "c:\aaa.bmp"
Open CommonDialog1.FileName For Output As #1
Print #1, "参数", Text1.Text, Text3.Text
'Print #1, Text3.Text
Close #1
Text2.Text = CommonDialog1.FileName
End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Form_Load()
CommonDialog1.Filter = "文本文件(.txt)|.txt|图象(.jpg)|.jpg|所有文件(*.*)|.bmp"
CommonDialog1.FileName = "text.txt"
CommonDialog1.InitDir = "d:\vfp\word"
CommonDialog1.DialogTitle = "保存文件"
CommonDialog1.Flags = &H10& Or H2&
CommonDialog1.FilterIndex = 1
CommonDialog1.CancelError = False
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -