home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmErrors
- Caption = "Errors"
- ClientHeight = 2640
- ClientLeft = 1200
- ClientTop = 1995
- ClientWidth = 6630
- Height = 3045
- HelpContextID = 2016081
- Icon = "ERRORS.frx":0000
- Left = 1140
- LinkTopic = "Form1"
- LockControls = -1 'True
- MDIChild = -1 'True
- ScaleHeight = 2640
- ScaleWidth = 6630
- Top = 1650
- Width = 6750
- Begin VB.PictureBox picButtons
- Align = 2 'Align Bottom
- Appearance = 0 'Flat
- BorderStyle = 0 'None
- ForeColor = &H80000008&
- Height = 400
- Left = 0
- ScaleHeight = 405
- ScaleWidth = 6630
- TabIndex = 0
- Top = 2235
- Width = 6630
- Begin VB.CommandButton cmdClose
- Cancel = -1 'True
- Caption = "&Close"
- Height = 330
- Left = 2040
- TabIndex = 2
- Top = 45
- Width = 1695
- End
- Begin VB.CommandButton cmdRefresh
- Caption = "&Refresh"
- Height = 330
- Left = 240
- TabIndex = 1
- Top = 40
- Width = 1695
- End
- End
- Begin MSGrid.Grid grdErrors
- Height = 2055
- Left = 120
- TabIndex = 3
- Top = 120
- Width = 6375
- _Version = 65536
- _ExtentX = 11245
- _ExtentY = 3625
- _StockProps = 77
- BackColor = 16777215
- Cols = 3
- FixedCols = 0
- End
- Attribute VB_Name = "frmErrors"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdClose_Click()
- Unload Me
- End Sub
- Private Sub cmdRefresh_Click()
- RefreshErrors
- End Sub
- Private Sub Form_Load()
- On Error GoTo LErr
- CenterMe Me, gnMDIFORM
- With grdErrors
- .Row = 0
- .Col = 0
- .Text = "Number"
- .Col = 1
- .Text = "Source"
- .Col = 2
- .Text = "Description"
- .FixedRows = 1
- .ColWidth(0) = 1500
- .ColWidth(1) = 1500
- .ColWidth(2) = .Width - 3600
- End With
- Screen.MousePointer = vbDefault
- Exit Sub
- LErr:
- ShowError
- Unload Me
- Exit Sub
- End Sub
- Private Sub Form_Resize()
- On Error Resume Next
- If Me.WindowState = 1 Then Exit Sub
- grdErrors.Width = Me.Width - 375
- grdErrors.Height = Me.Height - 970
- grdErrors.ColWidth(2) = grdErrors.Width - 3600
- End Sub
- Private Sub grdErrors_MouseUp(Button As Integer, Shift As Integer, x As Single, Y As Single)
- On Error GoTo PErr
- If Button <> 2 Then Exit Sub
- MsgBox "There is no Properties collection on the Error Object!", 48
- Exit Sub
- PErr:
- ShowError
- Exit Sub
- End Sub
-