home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD99199152000.psc / benchmain.frm (.txt) next >
Encoding:
Visual Basic Form  |  2000-08-12  |  14.7 KB  |  468 lines

  1. VERSION 5.00
  2. Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
  3. Object = "{38911DA0-E448-11D0-84A3-00DD01104159}#1.1#0"; "COMCT332.OCX"
  4. Begin VB.Form Form1 
  5.    BorderStyle     =   3  'Fixed Dialog
  6.    Caption         =   "BENCHMARK PROGRAM V 2.12 BY KAYHAN TANRISEVEN"
  7.    ClientHeight    =   5445
  8.    ClientLeft      =   45
  9.    ClientTop       =   330
  10.    ClientWidth     =   6720
  11.    Icon            =   "benchmain.frx":0000
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   5445
  16.    ScaleWidth      =   6720
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   2  'CenterScreen
  19.    Begin VB.CommandButton Command14 
  20.       Caption         =   "OPEN"
  21.       Height          =   330
  22.       Left            =   3525
  23.       TabIndex        =   23
  24.       Top             =   5040
  25.       Width           =   1470
  26.    End
  27.    Begin VB.ComboBox Combo1 
  28.       Height          =   315
  29.       ItemData        =   "benchmain.frx":0442
  30.       Left            =   4980
  31.       List            =   "benchmain.frx":0458
  32.       Style           =   2  'Dropdown List
  33.       TabIndex        =   22
  34.       Top             =   5040
  35.       Width           =   1710
  36.    End
  37.    Begin VB.CommandButton Command13 
  38.       Caption         =   "Open Control Panel"
  39.       Height          =   420
  40.       Left            =   75
  41.       TabIndex        =   21
  42.       Top             =   5025
  43.       Width           =   1875
  44.    End
  45.    Begin VB.Timer Timer2 
  46.       Left            =   6120
  47.       Top             =   3720
  48.    End
  49.    Begin VB.CommandButton Command12 
  50.       Caption         =   "Programs"
  51.       Height          =   840
  52.       Left            =   120
  53.       Picture         =   "benchmain.frx":048B
  54.       Style           =   1  'Graphical
  55.       TabIndex        =   17
  56.       Top             =   3405
  57.       Width           =   3555
  58.    End
  59.    Begin VB.CommandButton Command11 
  60.       Height          =   525
  61.       Left            =   6150
  62.       Picture         =   "benchmain.frx":08CD
  63.       Style           =   1  'Graphical
  64.       TabIndex        =   14
  65.       Top             =   -15
  66.       Width           =   555
  67.    End
  68.    Begin VB.Timer Timer1 
  69.       Left            =   6255
  70.       Top             =   5025
  71.    End
  72.    Begin MSComCtl2.MonthView MonthView1 
  73.       Height          =   2310
  74.       Left            =   3810
  75.       TabIndex        =   12
  76.       Top             =   525
  77.       Width           =   2775
  78.       _ExtentX        =   4895
  79.       _ExtentY        =   4075
  80.       _Version        =   393216
  81.       ForeColor       =   -2147483630
  82.       BackColor       =   -2147483633
  83.       Appearance      =   0
  84.       MousePointer    =   1
  85.       ShowWeekNumbers =   -1  'True
  86.       StartOfWeek     =   24576001
  87.       CurrentDate     =   36754
  88.    End
  89.    Begin VB.PictureBox Picture1 
  90.       BorderStyle     =   0  'None
  91.       Height          =   450
  92.       Left            =   30
  93.       ScaleHeight     =   450
  94.       ScaleWidth      =   4965
  95.       TabIndex        =   1
  96.       Top             =   25
  97.       Width           =   4965
  98.       Begin VB.CommandButton Command10 
  99.          Height          =   450
  100.          Left            =   4455
  101.          Picture         =   "benchmain.frx":0D0F
  102.          Style           =   1  'Graphical
  103.          TabIndex        =   11
  104.          Top             =   0
  105.          Width           =   480
  106.       End
  107.       Begin VB.CommandButton Command9 
  108.          Height          =   450
  109.          Left            =   3960
  110.          Picture         =   "benchmain.frx":0E99
  111.          Style           =   1  'Graphical
  112.          TabIndex        =   10
  113.          Top             =   0
  114.          Width           =   480
  115.       End
  116.       Begin VB.CommandButton Command8 
  117.          Height          =   450
  118.          Left            =   3435
  119.          Picture         =   "benchmain.frx":11A3
  120.          Style           =   1  'Graphical
  121.          TabIndex        =   9
  122.          Top             =   0
  123.          Width           =   510
  124.       End
  125.       Begin VB.CommandButton Command7 
  126.          Height          =   450
  127.          Left            =   2940
  128.          Picture         =   "benchmain.frx":15E5
  129.          Style           =   1  'Graphical
  130.          TabIndex        =   8
  131.          Top             =   0
  132.          Width           =   480
  133.       End
  134.       Begin VB.CommandButton Command6 
  135.          Height          =   450
  136.          Left            =   2445
  137.          Picture         =   "benchmain.frx":1A27
  138.          Style           =   1  'Graphical
  139.          TabIndex        =   7
  140.          Top             =   0
  141.          Width           =   480
  142.       End
  143.       Begin VB.CommandButton Command5 
  144.          Height          =   450
  145.          Left            =   1950
  146.          Picture         =   "benchmain.frx":1E69
  147.          Style           =   1  'Graphical
  148.          TabIndex        =   6
  149.          Top             =   0
  150.          Width           =   480
  151.       End
  152.       Begin VB.CommandButton Command4 
  153.          Height          =   450
  154.          Left            =   1470
  155.          Picture         =   "benchmain.frx":22AB
  156.          Style           =   1  'Graphical
  157.          TabIndex        =   5
  158.          Top             =   0
  159.          Width           =   480
  160.       End
  161.       Begin VB.CommandButton Command3 
  162.          Height          =   450
  163.          Left            =   975
  164.          Picture         =   "benchmain.frx":26ED
  165.          Style           =   1  'Graphical
  166.          TabIndex        =   4
  167.          Top             =   0
  168.          Width           =   480
  169.       End
  170.       Begin VB.CommandButton Command2 
  171.          Height          =   450
  172.          Left            =   480
  173.          Picture         =   "benchmain.frx":2B2F
  174.          Style           =   1  'Graphical
  175.          TabIndex        =   3
  176.          Top             =   0
  177.          Width           =   480
  178.       End
  179.       Begin VB.CommandButton Command1 
  180.          Height          =   450
  181.          Left            =   0
  182.          Picture         =   "benchmain.frx":2F71
  183.          Style           =   1  'Graphical
  184.          TabIndex        =   2
  185.          Top             =   0
  186.          Width           =   480
  187.       End
  188.    End
  189.    Begin ComCtl3.CoolBar CoolBar1 
  190.       Align           =   1  'Align Top
  191.       Height          =   510
  192.       Left            =   0
  193.       TabIndex        =   0
  194.       Top             =   0
  195.       Width           =   6720
  196.       _ExtentX        =   11853
  197.       _ExtentY        =   900
  198.       BandCount       =   2
  199.       Picture         =   "benchmain.frx":33B3
  200.       BackColor       =   16777215
  201.       EmbossPicture   =   -1  'True
  202.       _CBWidth        =   6720
  203.       _CBHeight       =   510
  204.       _Version        =   "6.0.8169"
  205.       MinHeight1      =   450
  206.       Width1          =   6630
  207.       NewRow1         =   0   'False
  208.       BandStyle1      =   1
  209.       MinHeight2      =   360
  210.       NewRow2         =   0   'False
  211.       BandStyle2      =   1
  212.       Begin VB.CommandButton Command15 
  213.          Caption         =   "Perfonmance Graphics"
  214.          Height          =   480
  215.          Left            =   4965
  216.          TabIndex        =   24
  217.          Top             =   15
  218.          Width           =   1200
  219.       End
  220.    End
  221.    Begin VB.Label Label7 
  222.       Caption         =   "kayahan@presidency.com"
  223.       ForeColor       =   &H00FF0000&
  224.       Height          =   345
  225.       Left            =   960
  226.       TabIndex        =   20
  227.       Top             =   2580
  228.       Width           =   2070
  229.    End
  230.    Begin VB.Shape Shape6 
  231.       BorderColor     =   &H00C0C0C0&
  232.       BorderWidth     =   2
  233.       Height          =   600
  234.       Left            =   105
  235.       Top             =   4380
  236.       Width           =   6570
  237.    End
  238.    Begin VB.Shape Shape5 
  239.       BorderColor     =   &H00404040&
  240.       BorderStyle     =   6  'Inside Solid
  241.       Height          =   660
  242.       Left            =   60
  243.       Top             =   4350
  244.       Width           =   6630
  245.    End
  246.    Begin VB.Label Label6 
  247.       BackStyle       =   0  'Transparent
  248.       Caption         =   "COMPUTER WORKING HOUR COUNTER"
  249.       BeginProperty Font 
  250.          Name            =   "Times New Roman"
  251.          Size            =   8.25
  252.          Charset         =   162
  253.          Weight          =   700
  254.          Underline       =   0   'False
  255.          Italic          =   0   'False
  256.          Strikethrough   =   0   'False
  257.       EndProperty
  258.       Height          =   225
  259.       Left            =   1830
  260.       TabIndex        =   19
  261.       Top             =   4425
  262.       Width           =   3480
  263.    End
  264.    Begin VB.Label Label5 
  265.       Alignment       =   2  'Center
  266.       BackStyle       =   0  'Transparent
  267.       Caption         =   "Label5"
  268.       BeginProperty Font 
  269.          Name            =   "Times New Roman"
  270.          Size            =   9.75
  271.          Charset         =   162
  272.          Weight          =   700
  273.          Underline       =   0   'False
  274.          Italic          =   0   'False
  275.          Strikethrough   =   0   'False
  276.       EndProperty
  277.       Height          =   285
  278.       Left            =   135
  279.       TabIndex        =   18
  280.       Top             =   4695
  281.       Width           =   6465
  282.    End
  283.    Begin VB.Line Line3 
  284.       BorderColor     =   &H00C0C0C0&
  285.       X1              =   30
  286.       X2              =   6735
  287.       Y1              =   4305
  288.       Y2              =   4305
  289.    End
  290.    Begin VB.Line Line2 
  291.       BorderColor     =   &H00404040&
  292.       X1              =   30
  293.       X2              =   6705
  294.       Y1              =   4275
  295.       Y2              =   4275
  296.    End
  297.    Begin VB.Shape Shape4 
  298.       BorderColor     =   &H8000000C&
  299.       Height          =   1335
  300.       Left            =   3810
  301.       Shape           =   4  'Rounded Rectangle
  302.       Top             =   2910
  303.       Width           =   2895
  304.    End
  305.    Begin VB.Shape Shape3 
  306.       BorderColor     =   &H8000000C&
  307.       Height          =   2745
  308.       Left            =   60
  309.       Shape           =   4  'Rounded Rectangle
  310.       Top             =   615
  311.       Width           =   3495
  312.    End
  313.    Begin VB.Label Label4 
  314.       Alignment       =   2  'Center
  315.       BackStyle       =   0  'Transparent
  316.       Caption         =   $"benchmain.frx":B425
  317.       Height          =   2595
  318.       Left            =   120
  319.       TabIndex        =   16
  320.       Top             =   705
  321.       Width           =   3360
  322.    End
  323.    Begin VB.Label Label3 
  324.       Alignment       =   2  'Center
  325.       BackStyle       =   0  'Transparent
  326.       Caption         =   "For time and date settings please use the button above , with a little clock picture on it."
  327.       Height          =   1080
  328.       Left            =   4020
  329.       TabIndex        =   15
  330.       Top             =   3210
  331.       Width           =   2625
  332.    End
  333.    Begin VB.Shape Shape2 
  334.       BorderColor     =   &H80000000&
  335.       Height          =   435
  336.       Left            =   30
  337.       Shape           =   4  'Rounded Rectangle
  338.       Top             =   5040
  339.       Width           =   6630
  340.    End
  341.    Begin VB.Line Line1 
  342.       BorderColor     =   &H80000000&
  343.       Index           =   1
  344.       X1              =   3735
  345.       X2              =   3735
  346.       Y1              =   195
  347.       Y2              =   4275
  348.    End
  349.    Begin VB.Line Line1 
  350.       BorderColor     =   &H80000003&
  351.       Index           =   0
  352.       X1              =   3705
  353.       X2              =   3705
  354.       Y1              =   195
  355.       Y2              =   4275
  356.    End
  357.    Begin VB.Label Label1 
  358.       Alignment       =   2  'Center
  359.       BeginProperty Font 
  360.          Name            =   "MS Sans Serif"
  361.          Size            =   9.75
  362.          Charset         =   162
  363.          Weight          =   700
  364.          Underline       =   0   'False
  365.          Italic          =   0   'False
  366.          Strikethrough   =   0   'False
  367.       EndProperty
  368.       Height          =   450
  369.       Left            =   3975
  370.       TabIndex        =   13
  371.       Top             =   2910
  372.       Width           =   2700
  373.    End
  374. Attribute VB_Name = "Form1"
  375. Attribute VB_GlobalNameSpace = False
  376. Attribute VB_Creatable = False
  377. Attribute VB_PredeclaredId = True
  378. Attribute VB_Exposed = False
  379. Option Explicit
  380. Private Declare Function GetTickCount& Lib "kernel32" ()
  381. Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long
  382. Private Declare Function AppendMenu Lib "user32" Alias "AppendMenuA" (ByVal hMenu As Long, ByVal wFlags As Long, ByVal wIDNewItem As Long, ByVal lpNewItem As Any) As Long
  383. Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Integer, ByVal bRevert As Integer) As Integer
  384. Dim sh, x, tanitici1, tanitici2, tanitici3
  385. Private Sub Command1_Click()
  386. Load driver
  387. driver.Show
  388. End Sub
  389. Private Sub Command10_Click()
  390. Load sounds
  391. sounds.Show
  392. End Sub
  393. Private Sub Command11_Click()
  394. MsgBox "will be ready soon!!", vbOKOnly, "TM"
  395. End Sub
  396. Private Sub Command12_Click()
  397. Load Form2
  398. Form2.Show
  399. End Sub
  400. Private Sub Command13_Click()
  401. Shell "rundll32 shell32,ControlP_RunDLL", vbNormalFocus
  402. End Sub
  403. Private Sub Command14_Click()
  404. Shell "rundll32 shell32,Control_RunDLL main.cpl @" & Combo1.ItemData(Combo1.ListIndex)
  405. End Sub
  406. Private Sub Command15_Click()
  407. Load grafik
  408. grafik.Show
  409. End Sub
  410. Private Sub Command2_Click()
  411. driver.Show
  412. End Sub
  413. Private Sub Command3_Click()
  414. driver.Show
  415. End Sub
  416. Private Sub command4_click()
  417. driver.Show
  418. End Sub
  419. Private Sub Command5_Click()
  420. Load klavye
  421. klavye.Show
  422. End Sub
  423. Private Sub Command6_Click()
  424. Load Form4
  425. Form4.Show
  426. End Sub
  427. Private Sub Command7_Click()
  428. Load EKRAN
  429. EKRAN.Show
  430. End Sub
  431. Private Sub Command8_Click()
  432. Load printer
  433. printer.Show
  434. End Sub
  435. Private Sub Command9_Click()
  436. Load Form3
  437. Form3.Show
  438. End Sub
  439. Private Sub Form_Load()
  440. 'BY THE WAY CHECK OUT THE ICON ON THE LEFT, TITLE BAR....
  441. 'I HAVE ADDED SOME INFO TO THAT SYSTEM MENU....
  442. 'AND YOU CAN SEE HOW ITS DONE HERE..
  443. Timer1.Interval = 100
  444. Timer2.Interval = 200
  445. tanitici1 = 10
  446. tanitici2 = 20
  447. tanitici3 = 30
  448. sh = GetSystemMenu(Form1.hwnd, False)
  449. x = AppendMenu(sh, 0, tanitici1, "     This program has programmed")
  450. x = AppendMenu(sh, 0, tanitici2, "       by Kayhan Tanriseven")
  451. x = AppendMenu(sh, 0, tanitici3, "        PLEASE VOTE FOR ME.")
  452. Combo1.ListIndex = 0
  453. End Sub
  454. Private Sub Timer1_Timer()
  455. Label1.Caption = "Time: " & Time
  456. End Sub
  457. Private Sub Timer2_Timer()
  458. 'THIS TIME WE WILL GET THE TICKCOUNT OF THE COMPUTER...
  459. 'THEN WILL DVIDE THEM IN ORDER TO GET THE FORMATTED TIME..
  460. Dim t
  461. t = GetTickCount&
  462. Label5.Caption = "Since " & (t \ 1440000) & ":"
  463. t = t Mod (60000 * 24)
  464. Label5.Caption = Label5.Caption & (t \ 60000) & ":"
  465. t = t Mod (60000)
  466. Label5.Caption = Label5.Caption & (t \ 1000) & " 'the computer is working"
  467. End Sub
  468.