home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Visual Basic new SourceCode and Projects / AlbumScreenSaver / IMAGES.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-08-24  |  6.0 KB  |  215 lines

  1. VERSION 5.00
  2. Begin VB.Form prop 
  3.    BorderStyle     =   4  'Fixed ToolWindow
  4.    ClientHeight    =   3735
  5.    ClientLeft      =   45
  6.    ClientTop       =   285
  7.    ClientWidth     =   7320
  8.    Icon            =   "images.frx":0000
  9.    LinkTopic       =   "Form2"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   3735
  13.    ScaleWidth      =   7320
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.Timer Timer1 
  17.       Enabled         =   0   'False
  18.       Interval        =   100
  19.       Left            =   3810
  20.       Top             =   1380
  21.    End
  22.    Begin VB.Frame Frame1 
  23.       Caption         =   "Properties"
  24.       Height          =   2535
  25.       Left            =   3900
  26.       TabIndex        =   4
  27.       Top             =   1020
  28.       Width           =   3285
  29.       Begin VB.CommandButton Command3 
  30.          Caption         =   "&Help"
  31.          Height          =   345
  32.          Left            =   2010
  33.          TabIndex        =   10
  34.          Top             =   930
  35.          Width           =   1125
  36.       End
  37.       Begin VB.CheckBox Check1 
  38.          Caption         =   "Preview"
  39.          Height          =   285
  40.          Left            =   330
  41.          TabIndex        =   9
  42.          Top             =   2190
  43.          Value           =   1  'Checked
  44.          Width           =   1275
  45.       End
  46.       Begin VB.TextBox Text1 
  47.          Height          =   285
  48.          Left            =   840
  49.          TabIndex        =   7
  50.          Text            =   "700"
  51.          Top             =   210
  52.          Width           =   915
  53.       End
  54.       Begin VB.CommandButton Command2 
  55.          Caption         =   "&Cancel"
  56.          Height          =   345
  57.          Left            =   2010
  58.          TabIndex        =   6
  59.          Top             =   1830
  60.          Width           =   1155
  61.       End
  62.       Begin VB.CommandButton Command1 
  63.          Caption         =   "&Accept"
  64.          Height          =   345
  65.          Left            =   2010
  66.          TabIndex        =   5
  67.          Top             =   1380
  68.          Width           =   1155
  69.       End
  70.       Begin VB.Image picture1 
  71.          Height          =   1515
  72.          Left            =   150
  73.          Stretch         =   -1  'True
  74.          Top             =   630
  75.          Width           =   1665
  76.       End
  77.       Begin VB.Label Label1 
  78.          AutoSize        =   -1  'True
  79.          BackStyle       =   0  'Transparent
  80.          Caption         =   "Interval"
  81.          Height          =   195
  82.          Left            =   120
  83.          TabIndex        =   8
  84.          Top             =   270
  85.          Width           =   525
  86.       End
  87.    End
  88.    Begin VB.ListBox List1 
  89.       Height          =   840
  90.       Left            =   150
  91.       TabIndex        =   3
  92.       Top             =   60
  93.       Width           =   7035
  94.    End
  95.    Begin VB.FileListBox File1 
  96.       Height          =   2625
  97.       Left            =   1830
  98.       Pattern         =   "*.bmp;*.dib;*.gif;*.jpg;*.wmf;*.emp;*.ico;*.cur"
  99.       TabIndex        =   2
  100.       Top             =   960
  101.       Width           =   1905
  102.    End
  103.    Begin VB.DriveListBox Drive1 
  104.       Height          =   315
  105.       Left            =   150
  106.       TabIndex        =   1
  107.       Top             =   3300
  108.       Width           =   1605
  109.    End
  110.    Begin VB.DirListBox Dir1 
  111.       Height          =   2340
  112.       Left            =   150
  113.       TabIndex        =   0
  114.       Top             =   930
  115.       Width           =   1605
  116.    End
  117. Attribute VB_Name = "prop"
  118. Attribute VB_GlobalNameSpace = False
  119. Attribute VB_Creatable = False
  120. Attribute VB_PredeclaredId = True
  121. Attribute VB_Exposed = False
  122. ' Hi Folks this application is written by
  123. ' Nagalla Anil Choudary
  124. ' Software Engineer
  125. ' s/o N.Ram Babu
  126. ' D.K.Pallem Bapatla-522 101
  127. ' A.P  , India
  128. ' u can use this application as a photo album also
  129. ' You can reproduce , customize this code in any manner
  130. ' If u satisfy or modify please leave your suggestions
  131. ' Happy programming
  132. Dim capt As String
  133. Dim icap As Integer
  134. Dim le As Integer
  135. Private Sub Command1_Click()
  136. Dim i As Integer
  137. i = 0
  138. Open App.Path + "\nac.ini" For Output As 1
  139. Print #1, Text1.Text
  140. Print #1, List1.ListCount
  141. While i < List1.ListCount + 1
  142.     Print #1, List1.List(i)
  143.     i = i + 1
  144. Close #1
  145. Unload Me
  146. End Sub
  147. Private Sub Command2_Click()
  148. Unload Me
  149. End Sub
  150. Private Sub Command3_Click()
  151. hlp.Show
  152. End Sub
  153. Private Sub Dir1_Change()
  154. File1.Path = Dir1.Path
  155. End Sub
  156. Private Sub Drive1_Change()
  157. Dir1.Path = Drive1.Drive
  158. End Sub
  159. Private Sub File1_Click()
  160. If Right(File1.Path, 1) Like "\" Then
  161.     temp = File1.Path + File1.FileName
  162.     temp = File1.Path + "\" + File1.FileName
  163. End If
  164. 'List1.AddItem temp
  165. If Check1.Value = 1 Then
  166.     picture1.Picture = LoadPicture(temp)
  167. End If
  168. End Sub
  169. Private Sub File1_DblClick()
  170. If Right(File1.Path, 1) Like "\" Then
  171.     temp = File1.Path + File1.FileName
  172.     temp = File1.Path + "\" + File1.FileName
  173. End If
  174. List1.AddItem temp
  175. If Check1.Value = 1 Then
  176.     picture1.Picture = LoadPicture(temp)
  177. End If
  178. End Sub
  179. Private Sub Form_Load()
  180. Timer1.Enabled = True
  181. On Error Resume Next
  182.  'SetWindowPos(Me.hwnd, -1, Me.CurrentX, Me.CurrentY, 495, 275, &H40)
  183. Dim temp As String
  184. Dim i, num As Integer
  185. Open App.Path + "\nac.ini" For Input As #1
  186. Line Input #1, temp
  187. Text1.Text = temp
  188. Line Input #1, temp
  189. num = Val(temp)
  190. i = 0
  191. 'Line Input #1, temp
  192. While i < num
  193.     Line Input #1, temp
  194.     List1.AddItem Trim(temp)
  195.     i = i + 1
  196. Close #1
  197. capt = "Designed by Nagalla Anil Choudary, BEC. Download this ShareWare s/w at www.angelfire.com/al/nacware/shareware/ScreenSavers.html"
  198. le = Len(capt)
  199. icap = 1
  200. End Sub
  201. Private Sub List1_DblClick()
  202. List1.RemoveItem (List1.ListIndex)
  203. End Sub
  204. Private Sub Timer1_Timer()
  205. '    Me.Show
  206.     If icap = le Then
  207.         icap = 1
  208.         Me.Caption = ""
  209.     End If
  210.         
  211.     Me.Caption = Me.Caption + Mid(capt, icap, 1)
  212.     icap = icap + 1
  213.     'MsgBox ("a")
  214. End Sub
  215.