Sample Applications Written in VB .NET
See :
Samples in C# .NET
Samples can be written in any language that supports the CLR (Common Language
Runtime) of the .NET Compact Framework
LineGraph Sample in VB .NET
' Product Of : MakeLogic
' URL : http://www.makelogic.com
' Author : Ch.Raji
' Date : 20 June, 2003
' Last Modified : 15 October, 2007
' email : info@makelogicmldb.com
' Please feel free to use this Sample Code in your Application.
' This program demonstrates the use of LineGraph component of the MicroGraphs
Public Class Form1
Inherits System.Windows.Forms.Form
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
'Declarattions
Dim xValues(6) As Double, yValues(6) As Double
Dim ArrCount As Integer
Dim rnd As Random
Dim LineGraphDemo As New MakeLogic.MG.LineGraph
#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)
MyBase.Dispose(disposing)
End Sub
'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.
Private Sub InitializeComponent()
Me.MainMenu1 = New System.Windows.Forms.MainMenu
'
'Form1
'
Me.ClientSize = New System.Drawing.Size(234, 288)
Me.Menu = Me.MainMenu1
Me.Text = "LineGraphDemo"
Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
End Sub
#End Region
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Following two lines remove the program from the memory
'of the Pocket PC when the application is closed
Me.ControlBox = True
Me.MinimizeBox = False
LineGraphDemo.Width = 240
LineGraphDemo.Height = 320
For ArrCount = 1 To 6
xValues(ArrCount) = ArrCount + 1
yValues(ArrCount) = ArrCount + 3
Next
LineGraphDemo.XValues = xValues
LineGraphDemo.YValues = yValues
Me.Controls.Add(LineGraphDemo)
End Sub
End Class


