Click here to Skip to main content
15,893,487 members
Articles / Programming Languages / Visual Basic

Open Door - Reporting, Charts, Enquiry Drill-Downs

Rate me:
Please Sign up or sign in to vote.
4.37/5 (11 votes)
2 Feb 2009CPOL6 min read 39.4K   2K   59  
A utility for generating user editable reports, charts, documents, enquiries
imports nbfSqlReporter
Public Class nbfSelectChartSource
    Inherits System.Windows.Forms.Form
    Public Abandoned As Boolean
#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        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.
    Friend WithEvents Button1 As System.Windows.Forms.Button
    Friend WithEvents Button2 As System.Windows.Forms.Button
    Friend WithEvents HelpProvider1 As System.Windows.Forms.HelpProvider
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents NbfGrid1 As odGridControls.nbfGrid
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim AppStyle2 As nbfStyleInfo.AppStyle = New nbfStyleInfo.AppStyle
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(nbfSelectChartSource))
        Me.Button1 = New System.Windows.Forms.Button
        Me.Button2 = New System.Windows.Forms.Button
        Me.HelpProvider1 = New System.Windows.Forms.HelpProvider
        Me.NbfGrid1 = New odGridControls.nbfGrid
        Me.Label1 = New System.Windows.Forms.Label
        Me.SuspendLayout()
        '
        'Button1
        '
        Me.Button1.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.Button1.Location = New System.Drawing.Point(323, 12)
        Me.Button1.Name = "Button1"
        Me.Button1.Size = New System.Drawing.Size(56, 20)
        Me.Button1.TabIndex = 3
        Me.Button1.Text = "OK"
        '
        'Button2
        '
        Me.Button2.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.Button2.Location = New System.Drawing.Point(385, 12)
        Me.Button2.Name = "Button2"
        Me.Button2.Size = New System.Drawing.Size(56, 20)
        Me.Button2.TabIndex = 4
        Me.Button2.Text = "Cancel"
        '
        'NbfGrid1
        '
        Me.NbfGrid1.AllowEdit = False
        Me.NbfGrid1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
                    Or System.Windows.Forms.AnchorStyles.Left) _
                    Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.NbfGrid1.HDBC = Nothing
        Me.NbfGrid1.Location = New System.Drawing.Point(8, 4)
        Me.NbfGrid1.Name = "NbfGrid1"
        Me.NbfGrid1.RepBreak1HeadFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
        Me.NbfGrid1.RepBreak2HeadFont = New System.Drawing.Font("Tahoma", 8.0!)
        Me.NbfGrid1.RepSubHeadFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
        Me.NbfGrid1.RowCacheSize = 75
        Me.NbfGrid1.RowHeaderWidth = 18
        AppStyle2.ButtonBackColor = System.Drawing.Color.LightGray
        AppStyle2.ButtonForeColor = System.Drawing.Color.MidnightBlue
        AppStyle2.CtrlBackColour = System.Drawing.Color.WhiteSmoke
        AppStyle2.CtrlBorderStyle = System.Windows.Forms.BorderStyle.None
        AppStyle2.CtrlFont = New System.Drawing.Font("Tahoma", 8.0!)
        AppStyle2.CtrlForeColour = System.Drawing.Color.MidnightBlue
        AppStyle2.FormBackColour = System.Drawing.Color.LightSlateGray
        AppStyle2.FormFont = New System.Drawing.Font("Tahoma", 8.0!)
        AppStyle2.FormForeColour = System.Drawing.Color.WhiteSmoke
        AppStyle2.GridAlternatingBackColor = System.Drawing.Color.Lavender
        AppStyle2.GridBackColor = System.Drawing.Color.WhiteSmoke
        AppStyle2.GridBackgroundColor = System.Drawing.Color.LightGray
        AppStyle2.GridBorderStyle = System.Windows.Forms.BorderStyle.None
        AppStyle2.GridCaptionBackColor = System.Drawing.Color.LightSteelBlue
        AppStyle2.GridCaptionFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
        AppStyle2.GridCaptionForecolor = System.Drawing.Color.MidnightBlue
        AppStyle2.GridFlatMode = True
        AppStyle2.GridFont = New System.Drawing.Font("Tahoma", 8.0!)
        AppStyle2.GridForecolor = System.Drawing.Color.MidnightBlue
        AppStyle2.GridHeaderBackColor = System.Drawing.Color.MidnightBlue
        AppStyle2.GridHeaderFont = New System.Drawing.Font("Tahoma", 8.0!, System.Drawing.FontStyle.Bold)
        AppStyle2.GridHeaderForecolor = System.Drawing.Color.WhiteSmoke
        AppStyle2.GridLinecolor = System.Drawing.Color.Gainsboro
        AppStyle2.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None
        AppStyle2.GridLinkcolor = System.Drawing.Color.Teal
        AppStyle2.GridParentRowsBackColor = System.Drawing.Color.Gainsboro
        AppStyle2.GridParentRowsForecolor = System.Drawing.Color.MidnightBlue
        AppStyle2.GridPreferredColumnWidth = 100
        AppStyle2.GridPreferredRowHeight = 20
        AppStyle2.GridSelectionBackColor = System.Drawing.Color.CadetBlue
        AppStyle2.GridSelectionForecolor = System.Drawing.Color.WhiteSmoke
        AppStyle2.HeadButtonBackColor = System.Drawing.Color.WhiteSmoke
        AppStyle2.InfoLabelBackColor = System.Drawing.Color.LightSlateGray
        AppStyle2.InfoLabelBorderStyle = System.Windows.Forms.BorderStyle.None
        AppStyle2.InfoLabelFont = New System.Drawing.Font("Tahoma", 8.0!)
        AppStyle2.InfoLabelForeColor = System.Drawing.Color.Cyan
        AppStyle2.LabelBackColor = System.Drawing.Color.LightSlateGray
        AppStyle2.LabelBorderStyle = System.Windows.Forms.BorderStyle.None
        AppStyle2.LabelFont = New System.Drawing.Font("Tahoma", 8.0!)
        AppStyle2.LabelForeColor = System.Drawing.Color.WhiteSmoke
        AppStyle2.SkinName = "Standard"
        AppStyle2.StdTextBoxHeight = 18
        Me.NbfGrid1.SI = AppStyle2
        Me.NbfGrid1.Size = New System.Drawing.Size(300, 316)
        Me.NbfGrid1.SourceGList = Nothing
        Me.NbfGrid1.SourceObject = Nothing
        Me.NbfGrid1.SourceObjectType = Nothing
        Me.NbfGrid1.SourceSQL = Nothing
        Me.NbfGrid1.SourceTable = Nothing
        Me.NbfGrid1.TabIndex = 5
        Me.NbfGrid1.Text = "NbfGrid1"
        Me.NbfGrid1.TopGroupHeaderHeight = 18
        '
        'Label1
        '
        Me.Label1.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
        Me.Label1.Location = New System.Drawing.Point(327, 54)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(113, 217)
        Me.Label1.TabIndex = 6
        Me.Label1.Text = resources.GetString("Label1.Text")
        '
        'nbfSelectChartSource
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(444, 321)
        Me.Controls.Add(Me.Label1)
        Me.Controls.Add(Me.NbfGrid1)
        Me.Controls.Add(Me.Button2)
        Me.Controls.Add(Me.Button1)
        Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
        Me.Name = "nbfSelectChartSource"
        Me.Text = "Select Chart Data Source"
        Me.ResumeLayout(False)

    End Sub

#End Region
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Abandoned = False
        Me.Hide()
    End Sub
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Abandoned = True
        Me.Hide()
    End Sub
    Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
        MyBase.OnLoad(e)
        Me.HelpProvider1.HelpNamespace = "OpenDoor.chm"
        Me.HelpProvider1.SetShowHelp(Me, True)
    End Sub
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions