home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / vbocxtls / vbtools.exe / %MAINDIR% / VBTOOLSDEMO.frm (.txt) < prev   
Encoding:
Visual Basic Form  |  1999-02-16  |  9.3 KB  |  300 lines

  1. VERSION 5.00
  2. Object = "{D39AF585-C3A9-11D2-8AEE-EA9F9798D91B}#6.0#0"; "VBTOOLS.ocx"
  3. Begin VB.Form VBTOOLSDEMO 
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   8670
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   11070
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   8670
  11.    ScaleWidth      =   11070
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.CommandButton Command5 
  14.       Caption         =   "Command5"
  15.       Height          =   495
  16.       Left            =   5400
  17.       TabIndex        =   16
  18.       Top             =   7800
  19.       Width           =   2055
  20.    End
  21.    Begin VB.Frame Frame5 
  22.       Caption         =   "Frame5"
  23.       Height          =   5415
  24.       Left            =   5520
  25.       TabIndex        =   10
  26.       Top             =   120
  27.       Width           =   3135
  28.       Begin VBTOOLS.GButton GButton5 
  29.          Height          =   900
  30.          Left            =   720
  31.          TabIndex        =   15
  32.          Top             =   4560
  33.          Width           =   870
  34.          _ExtentX        =   1535
  35.          _ExtentY        =   1588
  36.          ShowOpenFile    =   -1  'True
  37.       End
  38.       Begin VBTOOLS.GButton GButton4 
  39.          Height          =   900
  40.          Left            =   840
  41.          TabIndex        =   14
  42.          Top             =   3480
  43.          Width           =   870
  44.          _ExtentX        =   1535
  45.          _ExtentY        =   1588
  46.          Showlogin       =   -1  'True
  47.       End
  48.       Begin VBTOOLS.GButton GButton3 
  49.          Height          =   900
  50.          Left            =   960
  51.          TabIndex        =   13
  52.          Top             =   2520
  53.          Width           =   870
  54.          _ExtentX        =   1535
  55.          _ExtentY        =   1588
  56.          ShowHelp        =   -1  'True
  57.       End
  58.       Begin VBTOOLS.GButton GButton2 
  59.          Height          =   900
  60.          Left            =   720
  61.          TabIndex        =   12
  62.          Top             =   1320
  63.          Width           =   870
  64.          _ExtentX        =   1535
  65.          _ExtentY        =   1588
  66.          ShowExit        =   -1  'True
  67.       End
  68.       Begin VBTOOLS.GButton GButton1 
  69.          Height          =   900
  70.          Left            =   720
  71.          TabIndex        =   11
  72.          Top             =   600
  73.          Width           =   870
  74.          _ExtentX        =   1535
  75.          _ExtentY        =   1588
  76.          ShowClickHere   =   -1  'True
  77.       End
  78.    End
  79.    Begin VB.Frame Frame4 
  80.       Caption         =   "Frame4"
  81.       Height          =   2055
  82.       Left            =   120
  83.       TabIndex        =   7
  84.       Top             =   5520
  85.       Width           =   4935
  86.       Begin VBTOOLS.Encryption Encryption1 
  87.          Left            =   120
  88.          Top             =   240
  89.          _ExtentX        =   900
  90.          _ExtentY        =   900
  91.       End
  92.       Begin VB.TextBox Text2 
  93.          Height          =   375
  94.          Left            =   720
  95.          TabIndex        =   9
  96.          Text            =   "Text2"
  97.          Top             =   360
  98.          Width           =   3855
  99.       End
  100.       Begin VB.CommandButton Command4 
  101.          Caption         =   "Command4"
  102.          Height          =   615
  103.          Left            =   2280
  104.          TabIndex        =   8
  105.          Top             =   1320
  106.          Width           =   2415
  107.       End
  108.    End
  109.    Begin VB.Frame Frame3 
  110.       Caption         =   "Frame3"
  111.       Height          =   2055
  112.       Left            =   120
  113.       TabIndex        =   5
  114.       Top             =   3360
  115.       Width           =   4935
  116.       Begin VBTOOLS.String String1 
  117.          Left            =   120
  118.          Top             =   360
  119.          _ExtentX        =   4048
  120.          _ExtentY        =   1614
  121.       End
  122.       Begin VB.CommandButton Command3 
  123.          Caption         =   "Command3"
  124.          Height          =   615
  125.          Left            =   2640
  126.          TabIndex        =   6
  127.          Top             =   360
  128.          Width           =   1935
  129.       End
  130.    End
  131.    Begin VB.Frame Frame2 
  132.       Caption         =   "Frame2"
  133.       Height          =   1575
  134.       Left            =   120
  135.       TabIndex        =   3
  136.       Top             =   1560
  137.       Width           =   4215
  138.       Begin VBTOOLS.WEB WEB1 
  139.          Left            =   480
  140.          Top             =   360
  141.          _ExtentX        =   5662
  142.          _ExtentY        =   900
  143.       End
  144.       Begin VB.CommandButton Command2 
  145.          Caption         =   "Command2"
  146.          Height          =   495
  147.          Left            =   840
  148.          TabIndex        =   4
  149.          Top             =   960
  150.          Width           =   2295
  151.       End
  152.    End
  153.    Begin VB.Frame Frame1 
  154.       Caption         =   "Frame1"
  155.       Height          =   1455
  156.       Left            =   0
  157.       TabIndex        =   0
  158.       Top             =   0
  159.       Width           =   4215
  160.       Begin VBTOOLS.Files Files1 
  161.          Left            =   120
  162.          Top             =   240
  163.          _ExtentX        =   926
  164.          _ExtentY        =   926
  165.       End
  166.       Begin VB.CommandButton Command1 
  167.          Caption         =   "Command1"
  168.          Height          =   375
  169.          Left            =   2280
  170.          TabIndex        =   2
  171.          Top             =   360
  172.          Width           =   1815
  173.       End
  174.       Begin VB.TextBox Text1 
  175.          Height          =   495
  176.          Left            =   120
  177.          TabIndex        =   1
  178.          Text            =   "Text1"
  179.          Top             =   840
  180.          Width           =   3855
  181.       End
  182.    End
  183. Attribute VB_Name = "VBTOOLSDEMO"
  184. Attribute VB_GlobalNameSpace = False
  185. Attribute VB_Creatable = False
  186. Attribute VB_PredeclaredId = True
  187. Attribute VB_Exposed = False
  188. Private Sub Command1_Click()
  189. '---------Fileinfo---------------
  190. 'Files1.EnterFileName = "C:\Update.txt"
  191. 'Call Files1.GetFileInfo
  192. 'MsgBox Files1.FileSizeBOX
  193. 'MsgBox Files1.CreationDateBox
  194. 'MsgBox Files1.LastModBox
  195. 'MsgBox Files1.LastAccessBox
  196. 'MsgBox Files1.FileArchive
  197. 'MsgBox Files1.FileHidden
  198. 'MsgBox Files1.FileReadOnly
  199. 'MsgBox Files1.FileNormale
  200. 'MsgBox Files1.FileCompress
  201. 'MsgBox Files1.FileTemp
  202. '------------------------------------------------
  203. '--------------ScanPath Event------------
  204. 'Files1.ScanPath "C:\update.txt"
  205. 'Text1.Text = Files1.EnterFileName
  206. 'Text1.Text = Files1.PathName
  207. '--------------ScanPath Event------------
  208. '----------DeleteFolder----------
  209. 'Files1.DeleteFolder = "c:\dick"
  210. '----------DeleteFolder----------
  211. '---------- Browse Folder --------------------
  212. 'Files1.BrowseTitle = "This is the Browse Title"
  213. 'Files1.BrowseCaption = "This is the Browse Caption"
  214. 'Files1.BrowseFolder = "YES"
  215. 'Text1.Text = Files1.BrowseFolder
  216. '---------- Browse Folder --------------------
  217. '---------------Gets DriveSerial---------
  218. 'Files1.DriveSerial = "d"
  219. 'Text1.Text = Files1.DriveSerial
  220. '----------------------------------------
  221. '------------------GetFileExt-----------
  222. 'Files1.GetFileExt = "C:\update.txt"
  223. 'Text1.Text = Files1.GetFileExt
  224. '---------------------------------------
  225. '----------WipeFileClean---------------
  226. 'Files1.WipeFileClean = "c:\test.htm"
  227. 'Text1.Text = Files1.WipeFileClean
  228. '---------Secure Delete of file-------
  229. '------------Delet to RecycleBin------
  230. 'Files1.RecycleBin = "C:\test.me"
  231. '------------------------------------
  232. '----does files exist------------
  233. 'Files1.EnterFileName = "C:\Update.txt"
  234. 'Files1.IsFileThere
  235. 'MsgBox Files1.FileExisting
  236. '----------------------------------
  237. '------Getlong filename----
  238. Files1.LongFileName = "c:\progra~1\common~1"
  239. Text1.Text = Files1.LongFileName
  240. End Sub
  241. Private Sub Command2_Click()
  242. 'WEB1.EnableWebPing = True
  243. 'Text1.Text = WEB1.ReturnStatus
  244. 'Text1.Text = WEB1.RoundTripTime
  245. 'WEB1.EMailAddress = "mark@mansystems.com"
  246. WEB1.WebAddress = "www.mansystems.com\sorder.htm"
  247. End Sub
  248. Private Sub Command3_Click()
  249. 'String1.Convert = "This is a test"
  250. 'Text1.Text = String1.Convert
  251. 'String1.DeConvert = "5468697320697320612074657374"
  252. 'Text1.Text = String1.DeConvert
  253. 'MsgBox String1.REnableMsgBox
  254. 'String1.RFindText = "test"
  255. 'String1.RReplaceText = "peter"
  256. 'String1.RInPutString = "test"
  257. 'MsgBox String1.RInPutString
  258. 'String1.Reverse = "This is a test"
  259. 'Text1.Text = String1.Reverse
  260. 'String1.DumpFile = "c:\testme.man"
  261. 'String1.DumpString = "This is a test"
  262. 'MsgBox String1.DumpString
  263. 'String1.CountChar = "This is a test"
  264. 'MsgBox String1.CountChar
  265. 'String1.SpellChecker = "This ti a teest"
  266. 'Text1.Text = String1.SpellChecker
  267. 'String1.CRCNumber = 1269
  268. 'String1.CRCString = "This is a test"
  269. 'Text1.Text = String1.CRCString
  270. 'String1.PhoneNumber = 134567890
  271. 'Text1.Text = String1.PhoneNumber
  272. String1.CurrencyString = 219.19
  273. Text1.Text = String1.CurrencyString
  274. ''''String1.SSN = 52680481
  275. ''''Text1.Text = String1.SSN
  276. End Sub
  277. Private Sub Command4_Click()
  278. Encryption1.CipherII = Text2.Text
  279. Text2.Text = Encryption1.CipherII
  280. 'Encryption1.EnCipherText = Text2.Text
  281. End Sub
  282. Private Sub Command5_Click()
  283. Snap.Show
  284. End Sub
  285. Private Sub GButton1_ClickHereClick()
  286. MsgBox "This is ClickHere"
  287. End Sub
  288. Private Sub GButton2_ExitClick()
  289. MsgBox "This is Exit"
  290. End Sub
  291. Private Sub GButton3_HelpClick()
  292. MsgBox "This is Help"
  293. End Sub
  294. Private Sub GButton4_loginClick()
  295. MsgBox "This is Login"
  296. End Sub
  297. Private Sub GButton5_OpenFileClick()
  298. MsgBox "This is OpenFile"
  299. End Sub
  300.