frmloadpic.frm
上传用户:plkplk66
上传日期:2007-06-06
资源大小:686k
文件大小:2k
源码类别:

其他行业

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Begin VB.Form frmloadpic 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "添加图片"
  5.    ClientHeight    =   3135
  6.    ClientLeft      =   5760
  7.    ClientTop       =   1410
  8.    ClientWidth     =   3915
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   3135
  13.    ScaleWidth      =   3915
  14.    Begin VB.CommandButton Command1 
  15.       Caption         =   "确定"
  16.       Height          =   435
  17.       Left            =   210
  18.       TabIndex        =   3
  19.       Top             =   2460
  20.       Width           =   1275
  21.    End
  22.    Begin VB.FileListBox File1 
  23.       Height          =   1530
  24.       Left            =   1680
  25.       TabIndex        =   2
  26.       Top             =   1365
  27.       Width           =   2010
  28.    End
  29.    Begin VB.DirListBox Dir1 
  30.       Height          =   1140
  31.       Left            =   1680
  32.       TabIndex        =   1
  33.       Top             =   105
  34.       Width           =   2010
  35.    End
  36.    Begin VB.DriveListBox Drive1 
  37.       Height          =   300
  38.       Left            =   210
  39.       TabIndex        =   0
  40.       Top             =   105
  41.       Width           =   1275
  42.    End
  43.    Begin VB.Image Image1 
  44.       BorderStyle     =   1  'Fixed Single
  45.       Height          =   1755
  46.       Left            =   210
  47.       Stretch         =   -1  'True
  48.       Top             =   525
  49.       Width           =   1305
  50.    End
  51. End
  52. Attribute VB_Name = "frmloadpic"
  53. Attribute VB_GlobalNameSpace = False
  54. Attribute VB_Creatable = False
  55. Attribute VB_PredeclaredId = True
  56. Attribute VB_Exposed = False
  57. Option Explicit
  58. Private Sub Command1_Click()
  59. If flag = 1 Then
  60. With frmstudent
  61.          .Image1.Picture = LoadPicture(FNAME)
  62.          .Enabled = True
  63.          .Label16.Visible = False
  64.          .SetFocus
  65. End With
  66. End If
  67. If flag = 0 Then
  68. With frmteacher
  69.          .Image1.Picture = LoadPicture(FNAME)
  70.          .Label7.Visible = False
  71.          .Enabled = True
  72.          .SetFocus
  73. End With
  74. End If
  75. Unload Me
  76. End Sub
  77. Private Sub Dir1_Change()
  78. File1.Path = Dir1.Path
  79. End Sub
  80. Private Sub Drive1_Change()
  81. Dir1.Path = Drive1.Drive
  82. End Sub
  83. Private Sub File1_Click()
  84. FNAME = File1.Path & "" & File1.FileName
  85. Image1.Picture = LoadPicture(FNAME)
  86. End Sub