save drawings

Syntax

Member
Joined
Nov 6, 2003
Messages
10
Okay im practically done with my basic drawing program

the thing now is i need to save it..

since when i minimize and restore all that ive drawn is gone..

PHP:
Public Class PaintCanvas
    Inherits System.Windows.Forms.UserControl
    Public Enum GraphicTools As Integer
        CirclePen = 0
        LinePen = 1
    End Enum
    Public Enum GraphicSizes As Integer
        small = 4
        medium = 10
        Large = 20
    End Enum
     medlemmar
    Public GraphicsItems As New ArrayList
    Public GraphicTool As GraphicTools
    Public GraphicSize As GraphicSizes = GraphicSize.Large
    Public GraphicColor As Color = Color.Black

#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

    UserControl 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.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        
        PaintCanvas
        
        Me.BackColor = System.Drawing.Color.White
        Me.Name = "PaintCanvas"

    End Sub

#End Region

  

 

    Protected Overrides Sub OnMouseDown(ByVal e As System.Windows.Forms.MouseEventArgs)
         kolla om musen verkligen
 
Back
Top