Click here to Skip to main content
11,704,315 members (61,755 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Puzzle Square

, 11 Jan 2013 CPOL 9.3K 413 9
The goal of the program was to make things simple yet easy to understand and quickly changeable based on future ideas.
PuzzleSquare-noexe.zip
PuzzleSquare
bin
Debug
PuzzleSquare.vshost.exe.manifest
Release
My Project
app.manifest
Application.myapp
PuzzleSquare.ico
Settings.settings
Numbered-Sample-Small.jpg
Numbered-Sample.jpg
PuzzleSquare.vbproj.user
PuzzleSquare.zip
PuzzleSquare.vshost.exe
PuzzleSquare.vshost.exe.manifest
PuzzleSquare.exe
PuzzleSquare.pdb
PuzzleSquare.vshost.exe
app.manifest
Application.myapp
PuzzleSquare.ico
Settings.settings
Numbered-Sample-Small.jpg
Numbered-Sample.jpg
PuzzleSquare.vbproj.user
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class FrmMain
    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)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    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(FrmMain))
      Me.btnSelect1 = New System.Windows.Forms.Button()
      Me.btnSelect2 = New System.Windows.Forms.Button()
      Me.btnSelect3 = New System.Windows.Forms.Button()
      Me.btnSelect4 = New System.Windows.Forms.Button()
      Me.btnSelect5 = New System.Windows.Forms.Button()
      Me.btnSelect6 = New System.Windows.Forms.Button()
      Me.btnSelect7 = New System.Windows.Forms.Button()
      Me.btnSelect8 = New System.Windows.Forms.Button()
      Me.btnSelect9 = New System.Windows.Forms.Button()
      Me.cmbColorsToUse = New System.Windows.Forms.ComboBox()
      Me.Label1 = New System.Windows.Forms.Label()
      Me.btnDemoMode = New System.Windows.Forms.Button()
      Me.DemoTimer = New System.Windows.Forms.Timer(Me.components)
      Me.Panel1 = New System.Windows.Forms.Panel()
      Me.Label2 = New System.Windows.Forms.Label()
      Me.Label3 = New System.Windows.Forms.Label()
      Me.Label7 = New System.Windows.Forms.Label()
      Me.Label4 = New System.Windows.Forms.Label()
      Me.btnHelp = New System.Windows.Forms.Button()
      Me.Label5 = New System.Windows.Forms.Label()
      Me.Label6 = New System.Windows.Forms.Label()
      Me.BtnExit = New System.Windows.Forms.Button()
      Me.Panel1.SuspendLayout()
      Me.SuspendLayout()
      '
      'btnSelect1
      '
      Me.btnSelect1.BackColor = System.Drawing.Color.Maroon
      Me.btnSelect1.Location = New System.Drawing.Point(4, 4)
      Me.btnSelect1.Name = "btnSelect1"
      Me.btnSelect1.Size = New System.Drawing.Size(80, 80)
      Me.btnSelect1.TabIndex = 0
      Me.btnSelect1.UseVisualStyleBackColor = False
      '
      'btnSelect2
      '
      Me.btnSelect2.BackColor = System.Drawing.Color.Navy
      Me.btnSelect2.Location = New System.Drawing.Point(88, 4)
      Me.btnSelect2.Name = "btnSelect2"
      Me.btnSelect2.Size = New System.Drawing.Size(80, 80)
      Me.btnSelect2.TabIndex = 1
      Me.btnSelect2.UseVisualStyleBackColor = False
      '
      'btnSelect3
      '
      Me.btnSelect3.BackColor = System.Drawing.Color.Maroon
      Me.btnSelect3.Location = New System.Drawing.Point(172, 4)
      Me.btnSelect3.Name = "btnSelect3"
      Me.btnSelect3.Size = New System.Drawing.Size(80, 80)
      Me.btnSelect3.TabIndex = 2
      Me.btnSelect3.UseVisualStyleBackColor = False
      '
      'btnSelect4
      '
      Me.btnSelect4.BackColor = System.Drawing.Color.Navy
      Me.btnSelect4.Location = New System.Drawing.Point(4, 88)
      Me.btnSelect4.Name = "btnSelect4"
      Me.btnSelect4.Size = New System.Drawing.Size(80, 80)
      Me.btnSelect4.TabIndex = 3
      Me.btnSelect4.UseVisualStyleBackColor = False
      '
      'btnSelect5
      '
      Me.btnSelect5.BackColor = System.Drawing.Color.Maroon
      Me.btnSelect5.Location = New System.Drawing.Point(88, 88)
      Me.btnSelect5.Name = "btnSelect5"
      Me.btnSelect5.Size = New System.Drawing.Size(80, 80)
      Me.btnSelect5.TabIndex = 4
      Me.btnSelect5.UseVisualStyleBackColor = False
      '
      'btnSelect6
      '
      Me.btnSelect6.BackColor = System.Drawing.Color.Navy
      Me.btnSelect6.Location = New System.Drawing.Point(172, 88)
      Me.btnSelect6.Name = "btnSelect6"
      Me.btnSelect6.Size = New System.Drawing.Size(80, 80)
      Me.btnSelect6.TabIndex = 5
      Me.btnSelect6.UseVisualStyleBackColor = False
      '
      'btnSelect7
      '
      Me.btnSelect7.BackColor = System.Drawing.Color.Maroon
      Me.btnSelect7.Location = New System.Drawing.Point(4, 172)
      Me.btnSelect7.Name = "btnSelect7"
      Me.btnSelect7.Size = New System.Drawing.Size(80, 80)
      Me.btnSelect7.TabIndex = 6
      Me.btnSelect7.UseVisualStyleBackColor = False
      '
      'btnSelect8
      '
      Me.btnSelect8.BackColor = System.Drawing.Color.Navy
      Me.btnSelect8.Location = New System.Drawing.Point(88, 172)
      Me.btnSelect8.Name = "btnSelect8"
      Me.btnSelect8.Size = New System.Drawing.Size(80, 80)
      Me.btnSelect8.TabIndex = 7
      Me.btnSelect8.UseVisualStyleBackColor = False
      '
      'btnSelect9
      '
      Me.btnSelect9.BackColor = System.Drawing.Color.Maroon
      Me.btnSelect9.Location = New System.Drawing.Point(172, 172)
      Me.btnSelect9.Name = "btnSelect9"
      Me.btnSelect9.Size = New System.Drawing.Size(80, 80)
      Me.btnSelect9.TabIndex = 8
      Me.btnSelect9.UseVisualStyleBackColor = False
      '
      'cmbColorsToUse
      '
      Me.cmbColorsToUse.BackColor = System.Drawing.Color.White
      Me.cmbColorsToUse.DisplayMember = "0"
      Me.cmbColorsToUse.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
      Me.cmbColorsToUse.ForeColor = System.Drawing.Color.Black
      Me.cmbColorsToUse.FormattingEnabled = True
      Me.cmbColorsToUse.Items.AddRange(New Object() {"2", "3", "4"})
      Me.cmbColorsToUse.Location = New System.Drawing.Point(117, 271)
      Me.cmbColorsToUse.Name = "cmbColorsToUse"
      Me.cmbColorsToUse.Size = New System.Drawing.Size(48, 21)
      Me.cmbColorsToUse.TabIndex = 9
      Me.cmbColorsToUse.ValueMember = "0"
      '
      'Label1
      '
      Me.Label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
      Me.Label1.Location = New System.Drawing.Point(4, 256)
      Me.Label1.Name = "Label1"
      Me.Label1.Size = New System.Drawing.Size(164, 40)
      Me.Label1.TabIndex = 11
      Me.Label1.Text = "Select Number of Colors for Puzzle (Color Mode)"
      '
      'btnDemoMode
      '
      Me.btnDemoMode.BackColor = System.Drawing.Color.FromArgb(CType(CType(125, Byte), Integer), CType(CType(165, Byte), Integer), CType(CType(225, Byte), Integer))
      Me.btnDemoMode.ForeColor = System.Drawing.Color.Black
      Me.btnDemoMode.Location = New System.Drawing.Point(172, 256)
      Me.btnDemoMode.Name = "btnDemoMode"
      Me.btnDemoMode.Size = New System.Drawing.Size(80, 40)
      Me.btnDemoMode.TabIndex = 10
      Me.btnDemoMode.Text = "Demo Mode OFF"
      Me.btnDemoMode.UseVisualStyleBackColor = False
      '
      'DemoTimer
      '
      Me.DemoTimer.Interval = 500
      '
      'Panel1
      '
      Me.Panel1.BackColor = System.Drawing.Color.Black
      Me.Panel1.Controls.Add(Me.Label6)
      Me.Panel1.Controls.Add(Me.Label5)
      Me.Panel1.Controls.Add(Me.btnHelp)
      Me.Panel1.Controls.Add(Me.Label4)
      Me.Panel1.Controls.Add(Me.Label7)
      Me.Panel1.Controls.Add(Me.Label3)
      Me.Panel1.Controls.Add(Me.Label2)
      Me.Panel1.ForeColor = System.Drawing.Color.White
      Me.Panel1.Location = New System.Drawing.Point(258, 4)
      Me.Panel1.Name = "Panel1"
      Me.Panel1.Size = New System.Drawing.Size(328, 292)
      Me.Panel1.TabIndex = 12
      '
      'Label2
      '
      Me.Label2.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
      Me.Label2.Font = New System.Drawing.Font("Courier New", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
      Me.Label2.ForeColor = System.Drawing.Color.Black
      Me.Label2.Location = New System.Drawing.Point(4, 4)
      Me.Label2.Name = "Label2"
      Me.Label2.Size = New System.Drawing.Size(320, 284)
      Me.Label2.TabIndex = 1
      Me.Label2.Text = "Puzzle Square Game - Basic Instructions"
      Me.Label2.TextAlign = System.Drawing.ContentAlignment.TopCenter
      '
      'Label3
      '
      Me.Label3.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
      Me.Label3.ForeColor = System.Drawing.Color.Black
      Me.Label3.Location = New System.Drawing.Point(8, 28)
      Me.Label3.Name = "Label3"
      Me.Label3.Size = New System.Drawing.Size(312, 40)
      Me.Label3.TabIndex = 2
      Me.Label3.Text = "Begins in ""2 Color Mode"" which uses Red and Yellow Only with the puzzle randomly " & _
    "generated."
      Me.Label3.TextAlign = System.Drawing.ContentAlignment.TopCenter
      '
      'Label7
      '
      Me.Label7.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
      Me.Label7.ForeColor = System.Drawing.Color.Black
      Me.Label7.Location = New System.Drawing.Point(8, 68)
      Me.Label7.Name = "Label7"
      Me.Label7.Size = New System.Drawing.Size(312, 40)
      Me.Label7.TabIndex = 3
      Me.Label7.Text = "When ""3 Color Mode"" is chosen, then Red, Yellow, and Green Colors are used. Puzzl" & _
    "e is randomly generated."
      Me.Label7.TextAlign = System.Drawing.ContentAlignment.TopCenter
      '
      'Label4
      '
      Me.Label4.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
      Me.Label4.ForeColor = System.Drawing.Color.Black
      Me.Label4.Location = New System.Drawing.Point(8, 108)
      Me.Label4.Name = "Label4"
      Me.Label4.Size = New System.Drawing.Size(312, 40)
      Me.Label4.TabIndex = 4
      Me.Label4.Text = "When ""4 Color Mode"" is chosen, then Red, Yellow, Green, and Blue Colors are used." & _
    " Puzzle is randomly generated."
      Me.Label4.TextAlign = System.Drawing.ContentAlignment.TopCenter
      '
      'btnHelp
      '
      Me.btnHelp.Location = New System.Drawing.Point(8, 252)
      Me.btnHelp.Name = "btnHelp"
      Me.btnHelp.Size = New System.Drawing.Size(312, 32)
      Me.btnHelp.TabIndex = 0
      Me.btnHelp.Text = "Click here for Detailed Instructions"
      Me.btnHelp.UseVisualStyleBackColor = True
      '
      'Label5
      '
      Me.Label5.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
      Me.Label5.ForeColor = System.Drawing.Color.Black
      Me.Label5.Location = New System.Drawing.Point(8, 148)
      Me.Label5.Name = "Label5"
      Me.Label5.Size = New System.Drawing.Size(312, 40)
      Me.Label5.TabIndex = 5
      Me.Label5.Text = "When ""Demo Mode ON"" then the puzzle is randomly generated until the ""Demo Mode"" i" & _
    "s turned ""OFF"". "
      Me.Label5.TextAlign = System.Drawing.ContentAlignment.TopCenter
      '
      'Label6
      '
      Me.Label6.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
      Me.Label6.ForeColor = System.Drawing.Color.Black
      Me.Label6.Location = New System.Drawing.Point(8, 188)
      Me.Label6.Name = "Label6"
      Me.Label6.Size = New System.Drawing.Size(312, 40)
      Me.Label6.TabIndex = 6
      Me.Label6.Text = "When ALL 9 squares are the same color, the puzzle has been solved. (""You Win"")"
      Me.Label6.TextAlign = System.Drawing.ContentAlignment.TopCenter
      '
      'BtnExit
      '
      Me.BtnExit.BackColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer))
      Me.BtnExit.Location = New System.Drawing.Point(258, 302)
      Me.BtnExit.Name = "BtnExit"
      Me.BtnExit.Size = New System.Drawing.Size(80, 40)
      Me.BtnExit.TabIndex = 13
      Me.BtnExit.Text = "Exit"
      Me.BtnExit.UseVisualStyleBackColor = False
      '
      'FrmMain
      '
      Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
      Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
      Me.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
      Me.ClientSize = New System.Drawing.Size(590, 345)
      Me.Controls.Add(Me.BtnExit)
      Me.Controls.Add(Me.cmbColorsToUse)
      Me.Controls.Add(Me.btnDemoMode)
      Me.Controls.Add(Me.Label1)
      Me.Controls.Add(Me.btnSelect9)
      Me.Controls.Add(Me.btnSelect8)
      Me.Controls.Add(Me.btnSelect7)
      Me.Controls.Add(Me.btnSelect6)
      Me.Controls.Add(Me.btnSelect5)
      Me.Controls.Add(Me.btnSelect4)
      Me.Controls.Add(Me.btnSelect3)
      Me.Controls.Add(Me.btnSelect2)
      Me.Controls.Add(Me.btnSelect1)
      Me.Controls.Add(Me.Panel1)
      Me.ForeColor = System.Drawing.Color.Black
      Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
      Me.MaximizeBox = False
      Me.Name = "FrmMain"
      Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
      Me.Text = " Puzzle Square Game"
      Me.Panel1.ResumeLayout(False)
      Me.ResumeLayout(False)

End Sub
    Friend WithEvents btnSelect1 As System.Windows.Forms.Button
    Friend WithEvents btnSelect2 As System.Windows.Forms.Button
    Friend WithEvents btnSelect3 As System.Windows.Forms.Button
    Friend WithEvents btnSelect4 As System.Windows.Forms.Button
    Friend WithEvents btnSelect5 As System.Windows.Forms.Button
    Friend WithEvents btnSelect6 As System.Windows.Forms.Button
    Friend WithEvents btnSelect7 As System.Windows.Forms.Button
    Friend WithEvents btnSelect8 As System.Windows.Forms.Button
    Friend WithEvents btnSelect9 As System.Windows.Forms.Button
    Friend WithEvents cmbColorsToUse As System.Windows.Forms.ComboBox
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents btnDemoMode As System.Windows.Forms.Button
    Friend WithEvents DemoTimer As System.Windows.Forms.Timer
    Friend WithEvents Panel1 As System.Windows.Forms.Panel
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents btnHelp As System.Windows.Forms.Button
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents BtnExit As System.Windows.Forms.Button

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)

Share

About the Author

Destiny777
Software Developer (Senior)
United States United States
BillNew - Software developer since November 1977.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150819.1 | Last Updated 11 Jan 2013
Article Copyright 2013 by Destiny777
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid