Click here to Skip to main content
15,886,724 members
Articles / Desktop Programming / Windows Forms

Allow Users to Report Meaningful Defect Information

Rate me:
Please Sign up or sign in to vote.
4.68/5 (11 votes)
30 Jan 200711 min read 62.7K   275   54  
This article describes an approach to providing users with the means to submit error information directly back to the software developers as errors are encountered during the use of a targeted application
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class ErrorReport
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing AndAlso components IsNot Nothing Then
            components.Dispose()
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(ErrorReport))
        Me.txtErrorMsg = New System.Windows.Forms.TextBox
        Me.btnViewDetails = New System.Windows.Forms.Button
        Me.btnClose = New System.Windows.Forms.Button
        Me.txtDetails = New System.Windows.Forms.TextBox
        Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
        Me.btnSendBugReport = New System.Windows.Forms.Button
        Me.picMsgPicture = New System.Windows.Forms.PictureBox
        CType(Me.picMsgPicture, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'txtErrorMsg
        '
        Me.txtErrorMsg.BackColor = System.Drawing.SystemColors.Menu
        Me.txtErrorMsg.BorderStyle = System.Windows.Forms.BorderStyle.None
        Me.txtErrorMsg.Location = New System.Drawing.Point(54, 8)
        Me.txtErrorMsg.Multiline = True
        Me.txtErrorMsg.Name = "txtErrorMsg"
        Me.txtErrorMsg.ReadOnly = True
        Me.txtErrorMsg.Size = New System.Drawing.Size(302, 87)
        Me.txtErrorMsg.TabIndex = 1
        Me.txtErrorMsg.TabStop = False
        Me.txtErrorMsg.Text = "Error Message"
        '
        'btnViewDetails
        '
        Me.btnViewDetails.Location = New System.Drawing.Point(101, 106)
        Me.btnViewDetails.Name = "btnViewDetails"
        Me.btnViewDetails.Size = New System.Drawing.Size(75, 23)
        Me.btnViewDetails.TabIndex = 2
        Me.btnViewDetails.Text = "View Details"
        Me.btnViewDetails.UseVisualStyleBackColor = True
        '
        'btnClose
        '
        Me.btnClose.Location = New System.Drawing.Point(182, 106)
        Me.btnClose.Name = "btnClose"
        Me.btnClose.Size = New System.Drawing.Size(75, 23)
        Me.btnClose.TabIndex = 3
        Me.btnClose.Text = "Close"
        Me.btnClose.UseVisualStyleBackColor = True
        '
        'txtDetails
        '
        Me.txtDetails.Location = New System.Drawing.Point(12, 145)
        Me.txtDetails.Multiline = True
        Me.txtDetails.Name = "txtDetails"
        Me.txtDetails.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
        Me.txtDetails.Size = New System.Drawing.Size(344, 99)
        Me.txtDetails.TabIndex = 4
        '
        'ImageList1
        '
        Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
        Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
        Me.ImageList1.Images.SetKeyName(0, "1_ico_4.ico")
        Me.ImageList1.Images.SetKeyName(1, "2_ico_4.ico")
        Me.ImageList1.Images.SetKeyName(2, "explorer_exe_Ico52_ico_Ico1.ico")
        '
        'btnSendBugReport
        '
        Me.btnSendBugReport.Location = New System.Drawing.Point(101, 249)
        Me.btnSendBugReport.Name = "btnSendBugReport"
        Me.btnSendBugReport.Size = New System.Drawing.Size(156, 23)
        Me.btnSendBugReport.TabIndex = 5
        Me.btnSendBugReport.Text = "Send Error Report"
        Me.btnSendBugReport.UseVisualStyleBackColor = True
        '
        'picMsgPicture
        '
        Me.picMsgPicture.Image = Global.BugReport.My.Resources.Resources.netplwiz_dll_Ico8_ico_Ico1
        Me.picMsgPicture.Location = New System.Drawing.Point(3, 0)
        Me.picMsgPicture.Name = "picMsgPicture"
        Me.picMsgPicture.Size = New System.Drawing.Size(42, 47)
        Me.picMsgPicture.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage
        Me.picMsgPicture.TabIndex = 6
        Me.picMsgPicture.TabStop = False
        '
        'ErrorReport
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(368, 134)
        Me.ControlBox = False
        Me.Controls.Add(Me.picMsgPicture)
        Me.Controls.Add(Me.btnSendBugReport)
        Me.Controls.Add(Me.txtDetails)
        Me.Controls.Add(Me.btnClose)
        Me.Controls.Add(Me.btnViewDetails)
        Me.Controls.Add(Me.txtErrorMsg)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.Name = "ErrorReport"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "ErrorReport"
        CType(Me.picMsgPicture, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents txtErrorMsg As System.Windows.Forms.TextBox
    Friend WithEvents btnViewDetails As System.Windows.Forms.Button
    Friend WithEvents btnClose As System.Windows.Forms.Button
    Friend WithEvents txtDetails As System.Windows.Forms.TextBox
    Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
    Friend WithEvents btnSendBugReport As System.Windows.Forms.Button
    Friend WithEvents picMsgPicture As System.Windows.Forms.PictureBox
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions