home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
- Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
- Begin VB.Form frmScore
- BorderStyle = 3 'Fixed Dialog
- Caption = "Mind Boggle"
- ClientHeight = 2190
- ClientLeft = 2760
- ClientTop = 3750
- ClientWidth = 5940
- ControlBox = 0 'False
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2190
- ScaleWidth = 5940
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton cmdOK
- Caption = "OK"
- Enabled = 0 'False
- Height = 495
- Left = 4440
- TabIndex = 4
- Top = 240
- Width = 1215
- End
- Begin MSAdodcLib.Adodc AdoWin
- Height = 375
- Left = 4320
- Top = 1320
- Visible = 0 'False
- Width = 1575
- _ExtentX = 2778
- _ExtentY = 661
- ConnectMode = 0
- CursorLocation = 3
- IsolationLevel = -1
- ConnectionTimeout= 15
- CommandTimeout = 30
- CursorType = 3
- LockType = 3
- CommandType = 1
- CursorOptions = 0
- CacheSize = 50
- MaxRecords = 0
- BOFAction = 0
- EOFAction = 0
- ConnectStringType= 1
- Appearance = 1
- BackColor = -2147483643
- ForeColor = -2147483640
- Orientation = 0
- Enabled = -1
- Connect = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=a:\Winners.mdb"
- OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=a:\Winners.mdb"
- OLEDBFile = ""
- DataSourceName = ""
- OtherAttributes = ""
- UserName = ""
- Password = ""
- RecordSource = "select * from WinnersTAB order by fldscore"
- Caption = ""
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- _Version = 393216
- End
- Begin VB.TextBox txtEnterName
- DataField = "fldName"
- DataSource = "AdoWin"
- Height = 375
- Left = 2040
- TabIndex = 0
- Top = 240
- Width = 1455
- End
- Begin MSDataGridLib.DataGrid DataGrid1
- Bindings = "frmScore.frx":0000
- Height = 1095
- Left = 2040
- TabIndex = 3
- Top = 840
- Width = 2055
- _ExtentX = 3625
- _ExtentY = 1931
- _Version = 393216
- AllowUpdate = 0 'False
- AllowArrows = -1 'True
- Enabled = -1 'True
- ColumnHeaders = -1 'True
- HeadLines = 1
- RowHeight = 15
- RowDividerStyle = 5
- FormatLocked = -1 'True
- AllowAddNew = -1 'True
- BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ColumnCount = 2
- BeginProperty Column00
- DataField = "fldName"
- Caption = "Name"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 1033
- SubFormatType = 0
- EndProperty
- EndProperty
- BeginProperty Column01
- DataField = "fldScore"
- Caption = "Max Blocks"
- BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
- Type = 0
- Format = ""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 1033
- SubFormatType = 0
- EndProperty
- EndProperty
- SplitCount = 1
- BeginProperty Split0
- RecordSelectors = 0 'False
- BeginProperty Column00
- Object.Visible = -1 'True
- ColumnWidth = 870.236
- EndProperty
- BeginProperty Column01
- Alignment = 2
- DividerStyle = 3
- ColumnWidth = 945.071
- EndProperty
- EndProperty
- End
- Begin VB.Label lblScore
- BackColor = &H80000009&
- BorderStyle = 1 'Fixed Single
- DataField = "fldScore"
- DataSource = "AdoWin"
- Height = 375
- Left = 3600
- TabIndex = 5
- Top = 240
- Width = 495
- End
- Begin VB.Label Label2
- Caption = "Current winners:"
- Height = 495
- Left = 600
- TabIndex = 2
- Top = 960
- Width = 1215
- End
- Begin VB.Label Label1
- Caption = "Enter your name here:"
- Height = 375
- Left = 480
- TabIndex = 1
- Top = 240
- Width = 1335
- End
- Attribute VB_Name = "frmScore"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdOK_Click()
- Dim lngRc As Long
- Unload Me
- lngRc = sndPlaySound(App.Path & "\Bell.wav", 0)
- End Sub
- Private Sub Form_Load()
- With frmScore
- .Top = (Screen.Height - frmScore.Height) / 2
- .Left = (Screen.Width - frmScore.Width) / 2
- End With
- frmScore.AdoWin.Recordset.AddNew
- frmScore.AdoWin.Recordset.Fields("fldscore") = intScore
- End Sub
- Private Sub txtEnterName_Change()
- Dim strTxtName As String
- strTxtName = Trim(txtEnterName.Text)
- If strTxtName <> "" Then
- cmdOK.Enabled = True
- Else
- cmdOK.Enabled = False
- End If
- End Sub
-