You've already forked BitBox-Windows
mirror of
https://github.com/MrLyallCSIT/BitBox-Windows.git
synced 2026-01-18 06:39:35 +00:00
Version 1.0
This commit is contained in:
182
AboutBox.Designer.vb
generated
Normal file
182
AboutBox.Designer.vb
generated
Normal file
@@ -0,0 +1,182 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
Partial Class AboutBox
|
||||
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
|
||||
|
||||
Friend WithEvents TableLayoutPanel As System.Windows.Forms.TableLayoutPanel
|
||||
Friend WithEvents LogoPictureBox As System.Windows.Forms.PictureBox
|
||||
Friend WithEvents LabelProductName As System.Windows.Forms.Label
|
||||
Friend WithEvents LabelVersion As System.Windows.Forms.Label
|
||||
Friend WithEvents LabelCompanyName As System.Windows.Forms.Label
|
||||
Friend WithEvents TextBoxDescription As System.Windows.Forms.TextBox
|
||||
Friend WithEvents OKButton As System.Windows.Forms.Button
|
||||
Friend WithEvents LabelCopyright As System.Windows.Forms.Label
|
||||
|
||||
'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()
|
||||
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(AboutBox))
|
||||
Me.TableLayoutPanel = New System.Windows.Forms.TableLayoutPanel()
|
||||
Me.LogoPictureBox = New System.Windows.Forms.PictureBox()
|
||||
Me.LabelProductName = New System.Windows.Forms.Label()
|
||||
Me.LabelVersion = New System.Windows.Forms.Label()
|
||||
Me.LabelCopyright = New System.Windows.Forms.Label()
|
||||
Me.LabelCompanyName = New System.Windows.Forms.Label()
|
||||
Me.TextBoxDescription = New System.Windows.Forms.TextBox()
|
||||
Me.OKButton = New System.Windows.Forms.Button()
|
||||
Me.TableLayoutPanel.SuspendLayout()
|
||||
CType(Me.LogoPictureBox, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'TableLayoutPanel
|
||||
'
|
||||
Me.TableLayoutPanel.ColumnCount = 2
|
||||
Me.TableLayoutPanel.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.0!))
|
||||
Me.TableLayoutPanel.ColumnStyles.Add(New System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 67.0!))
|
||||
Me.TableLayoutPanel.Controls.Add(Me.LogoPictureBox, 0, 0)
|
||||
Me.TableLayoutPanel.Controls.Add(Me.LabelProductName, 1, 0)
|
||||
Me.TableLayoutPanel.Controls.Add(Me.LabelVersion, 1, 1)
|
||||
Me.TableLayoutPanel.Controls.Add(Me.LabelCopyright, 1, 2)
|
||||
Me.TableLayoutPanel.Controls.Add(Me.LabelCompanyName, 1, 3)
|
||||
Me.TableLayoutPanel.Controls.Add(Me.TextBoxDescription, 1, 4)
|
||||
Me.TableLayoutPanel.Controls.Add(Me.OKButton, 1, 5)
|
||||
Me.TableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.TableLayoutPanel.Location = New System.Drawing.Point(10, 10)
|
||||
Me.TableLayoutPanel.Margin = New System.Windows.Forms.Padding(4, 3, 4, 3)
|
||||
Me.TableLayoutPanel.Name = "TableLayoutPanel"
|
||||
Me.TableLayoutPanel.RowCount = 6
|
||||
Me.TableLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.0!))
|
||||
Me.TableLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.0!))
|
||||
Me.TableLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.0!))
|
||||
Me.TableLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.0!))
|
||||
Me.TableLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50.0!))
|
||||
Me.TableLayoutPanel.RowStyles.Add(New System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.0!))
|
||||
Me.TableLayoutPanel.Size = New System.Drawing.Size(463, 298)
|
||||
Me.TableLayoutPanel.TabIndex = 0
|
||||
'
|
||||
'LogoPictureBox
|
||||
'
|
||||
Me.LogoPictureBox.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.LogoPictureBox.Image = CType(resources.GetObject("LogoPictureBox.Image"), System.Drawing.Image)
|
||||
Me.LogoPictureBox.Location = New System.Drawing.Point(4, 3)
|
||||
Me.LogoPictureBox.Margin = New System.Windows.Forms.Padding(4, 3, 4, 3)
|
||||
Me.LogoPictureBox.Name = "LogoPictureBox"
|
||||
Me.TableLayoutPanel.SetRowSpan(Me.LogoPictureBox, 6)
|
||||
Me.LogoPictureBox.Size = New System.Drawing.Size(144, 292)
|
||||
Me.LogoPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom
|
||||
Me.LogoPictureBox.TabIndex = 0
|
||||
Me.LogoPictureBox.TabStop = False
|
||||
'
|
||||
'LabelProductName
|
||||
'
|
||||
Me.LabelProductName.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.LabelProductName.Location = New System.Drawing.Point(159, 0)
|
||||
Me.LabelProductName.Margin = New System.Windows.Forms.Padding(7, 0, 4, 0)
|
||||
Me.LabelProductName.MaximumSize = New System.Drawing.Size(0, 20)
|
||||
Me.LabelProductName.Name = "LabelProductName"
|
||||
Me.LabelProductName.Size = New System.Drawing.Size(300, 20)
|
||||
Me.LabelProductName.TabIndex = 0
|
||||
Me.LabelProductName.Text = "Product Name"
|
||||
Me.LabelProductName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||
'
|
||||
'LabelVersion
|
||||
'
|
||||
Me.LabelVersion.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.LabelVersion.Location = New System.Drawing.Point(159, 29)
|
||||
Me.LabelVersion.Margin = New System.Windows.Forms.Padding(7, 0, 4, 0)
|
||||
Me.LabelVersion.MaximumSize = New System.Drawing.Size(0, 20)
|
||||
Me.LabelVersion.Name = "LabelVersion"
|
||||
Me.LabelVersion.Size = New System.Drawing.Size(300, 20)
|
||||
Me.LabelVersion.TabIndex = 0
|
||||
Me.LabelVersion.Text = "Version"
|
||||
Me.LabelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||
'
|
||||
'LabelCopyright
|
||||
'
|
||||
Me.LabelCopyright.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.LabelCopyright.Location = New System.Drawing.Point(159, 58)
|
||||
Me.LabelCopyright.Margin = New System.Windows.Forms.Padding(7, 0, 4, 0)
|
||||
Me.LabelCopyright.MaximumSize = New System.Drawing.Size(0, 20)
|
||||
Me.LabelCopyright.Name = "LabelCopyright"
|
||||
Me.LabelCopyright.Size = New System.Drawing.Size(300, 20)
|
||||
Me.LabelCopyright.TabIndex = 0
|
||||
Me.LabelCopyright.Text = "Copyright"
|
||||
Me.LabelCopyright.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||
'
|
||||
'LabelCompanyName
|
||||
'
|
||||
Me.LabelCompanyName.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.LabelCompanyName.Location = New System.Drawing.Point(159, 87)
|
||||
Me.LabelCompanyName.Margin = New System.Windows.Forms.Padding(7, 0, 4, 0)
|
||||
Me.LabelCompanyName.MaximumSize = New System.Drawing.Size(0, 20)
|
||||
Me.LabelCompanyName.Name = "LabelCompanyName"
|
||||
Me.LabelCompanyName.Size = New System.Drawing.Size(300, 20)
|
||||
Me.LabelCompanyName.TabIndex = 0
|
||||
Me.LabelCompanyName.Text = "Company Name"
|
||||
Me.LabelCompanyName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
|
||||
'
|
||||
'TextBoxDescription
|
||||
'
|
||||
Me.TextBoxDescription.Dock = System.Windows.Forms.DockStyle.Fill
|
||||
Me.TextBoxDescription.Location = New System.Drawing.Point(159, 119)
|
||||
Me.TextBoxDescription.Margin = New System.Windows.Forms.Padding(7, 3, 4, 3)
|
||||
Me.TextBoxDescription.Multiline = True
|
||||
Me.TextBoxDescription.Name = "TextBoxDescription"
|
||||
Me.TextBoxDescription.ReadOnly = True
|
||||
Me.TextBoxDescription.ScrollBars = System.Windows.Forms.ScrollBars.Both
|
||||
Me.TextBoxDescription.Size = New System.Drawing.Size(300, 143)
|
||||
Me.TextBoxDescription.TabIndex = 0
|
||||
Me.TextBoxDescription.TabStop = False
|
||||
Me.TextBoxDescription.Text = resources.GetString("TextBoxDescription.Text")
|
||||
'
|
||||
'OKButton
|
||||
'
|
||||
Me.OKButton.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
|
||||
Me.OKButton.DialogResult = System.Windows.Forms.DialogResult.Cancel
|
||||
Me.OKButton.Location = New System.Drawing.Point(371, 268)
|
||||
Me.OKButton.Margin = New System.Windows.Forms.Padding(4, 3, 4, 3)
|
||||
Me.OKButton.Name = "OKButton"
|
||||
Me.OKButton.Size = New System.Drawing.Size(88, 27)
|
||||
Me.OKButton.TabIndex = 0
|
||||
Me.OKButton.Text = "&OK"
|
||||
'
|
||||
'AboutBox
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 15.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.CancelButton = Me.OKButton
|
||||
Me.ClientSize = New System.Drawing.Size(483, 318)
|
||||
Me.Controls.Add(Me.TableLayoutPanel)
|
||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
|
||||
Me.Margin = New System.Windows.Forms.Padding(4, 3, 4, 3)
|
||||
Me.MaximizeBox = False
|
||||
Me.MinimizeBox = False
|
||||
Me.Name = "AboutBox"
|
||||
Me.Padding = New System.Windows.Forms.Padding(10)
|
||||
Me.ShowInTaskbar = False
|
||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent
|
||||
Me.Text = "About Bit:Box"
|
||||
Me.TableLayoutPanel.ResumeLayout(False)
|
||||
Me.TableLayoutPanel.PerformLayout()
|
||||
CType(Me.LogoPictureBox, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ResumeLayout(False)
|
||||
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
1207
AboutBox.resx
Normal file
1207
AboutBox.resx
Normal file
File diff suppressed because it is too large
Load Diff
29
AboutBox.vb
Normal file
29
AboutBox.vb
Normal file
@@ -0,0 +1,29 @@
|
||||
Public NotInheritable Class AboutBox
|
||||
|
||||
Private Sub AboutBox_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
|
||||
' Set the title of the form.
|
||||
Dim ApplicationTitle As String
|
||||
If My.Application.Info.Title <> "" Then
|
||||
ApplicationTitle = My.Application.Info.Title
|
||||
Else
|
||||
ApplicationTitle = System.IO.Path.GetFileNameWithoutExtension(My.Application.Info.AssemblyName)
|
||||
End If
|
||||
Me.Text = String.Format("About {0}", ApplicationTitle)
|
||||
' Initialize all of the text displayed on the About Box.
|
||||
' TODO: Customize the application's assembly information in the "Application" pane of the project
|
||||
' properties dialog (under the "Project" menu).
|
||||
Me.LabelProductName.Text = My.Application.Info.ProductName
|
||||
Me.LabelVersion.Text = String.Format("Version {0}", My.Application.Info.Version.ToString)
|
||||
Me.LabelCopyright.Text = My.Application.Info.Copyright
|
||||
Me.LabelCompanyName.Text = My.Application.Info.CompanyName
|
||||
Me.TextBoxDescription.Text = My.Application.Info.Description
|
||||
End Sub
|
||||
|
||||
Private Sub OKButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKButton.Click
|
||||
Me.Close()
|
||||
End Sub
|
||||
|
||||
Private Sub LogoPictureBox_Click(sender As Object, e As EventArgs) Handles LogoPictureBox.Click
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
29
ApplicationEvents.vb
Normal file
29
ApplicationEvents.vb
Normal file
@@ -0,0 +1,29 @@
|
||||
Imports Microsoft.VisualBasic.ApplicationServices
|
||||
|
||||
Namespace My
|
||||
' The following events are available for MyApplication:
|
||||
' Startup: Raised when the application starts, before the startup form is created.
|
||||
' Shutdown: Raised after all application forms are closed. This event is not raised if the application terminates abnormally.
|
||||
' UnhandledException: Raised if the application encounters an unhandled exception.
|
||||
' StartupNextInstance: Raised when launching a single-instance application and the application is already active.
|
||||
' NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected.
|
||||
|
||||
' **NEW** ApplyApplicationDefaults: Raised when the application queries default values to be set for the application.
|
||||
|
||||
' Example:
|
||||
' Private Sub MyApplication_ApplyApplicationDefaults(sender As Object, e As ApplyApplicationDefaultsEventArgs) Handles Me.ApplyApplicationDefaults
|
||||
'
|
||||
' ' Setting the application-wide default Font:
|
||||
' e.Font = New Font(FontFamily.GenericSansSerif, 12, FontStyle.Regular)
|
||||
'
|
||||
' ' Setting the HighDpiMode for the Application:
|
||||
' e.HighDpiMode = HighDpiMode.PerMonitorV2
|
||||
'
|
||||
' ' If a splash dialog is used, this sets the minimum display time:
|
||||
' e.MinimumSplashScreenDisplayTime = 4000
|
||||
' End Sub
|
||||
|
||||
Partial Friend Class MyApplication
|
||||
|
||||
End Class
|
||||
End Namespace
|
||||
25
BitBox Digital.sln
Normal file
25
BitBox Digital.sln
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.2.32630.192
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "BitBox Digital", "BitBox Digital.vbproj", "{D8CD7EBC-375C-4ED6-8899-8F411DCD1397}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{D8CD7EBC-375C-4ED6-8899-8F411DCD1397}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D8CD7EBC-375C-4ED6-8899-8F411DCD1397}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D8CD7EBC-375C-4ED6-8899-8F411DCD1397}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D8CD7EBC-375C-4ED6-8899-8F411DCD1397}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {273C1BA5-5ED0-4405-96DC-721F5F73C7A0}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
85
BitBox Digital.vbproj
Normal file
85
BitBox Digital.vbproj
Normal file
@@ -0,0 +1,85 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<RootNamespace>BinaryBoxSimulator</RootNamespace>
|
||||
<StartupObject>BinaryBoxSimulator.BitBox</StartupObject>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<MyType>WindowsForms</MyType>
|
||||
<ApplicationIcon>favicon.ico</ApplicationIcon>
|
||||
<Title>Bit:Box</Title>
|
||||
<Authors>Alexander Davis</Authors>
|
||||
<Company>Gospel Oak School</Company>
|
||||
<Copyright>© Central Region Schools Trust 2022</Copyright>
|
||||
<PackageIcon>Bit_Box-1 (1).png</PackageIcon>
|
||||
<Description>Created at Gospel Oak School
|
||||
|
||||
Windows version of simulator for Bit:Box 1.0
|
||||
A box that uses switches lightbulbs and a Arduino Mega to teach students how binary works and the values of binary columns.</Description>
|
||||
<PackageProjectUrl>https://github.com/AlexanderEDavis/Binary-Box-Simulator</PackageProjectUrl>
|
||||
<ApplicationManifest>My Project\app.manifest</ApplicationManifest>
|
||||
<FileVersion>1.5.2.0</FileVersion>
|
||||
<AssemblyVersion>1.5.2.0</AssemblyVersion>
|
||||
<AssemblyName>Binary Box Simulator</AssemblyName>
|
||||
<Version>1.5.2</Version>
|
||||
<RepositoryUrl>https://github.com/AlexanderEDavis/Binary-Box-Simulator</RepositoryUrl>
|
||||
<RepositoryType>GitHub</RepositoryType>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="favicon.ico" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Drawing" />
|
||||
<Import Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\..\..\OneDrive - Davis Online\Downloads\Bit_Box-1 (1).png">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath>\</PackagePath>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="My Project\Application.Designer.vb">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Application.myapp</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="My Project\Resources.Designer.vb">
|
||||
<DesignTime>True</DesignTime>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Update="My Project\Settings.Designer.vb">
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Update="My Project\Resources.resx">
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="My Project\Application.myapp">
|
||||
<Generator>MyApplicationCodeGenerator</Generator>
|
||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Update="My Project\Settings.settings">
|
||||
<CustomToolNamespace>My</CustomToolNamespace>
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
553
BitBox.Designer.vb
generated
Normal file
553
BitBox.Designer.vb
generated
Normal file
@@ -0,0 +1,553 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||
Partial Class BitBox
|
||||
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()
|
||||
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(BitBox))
|
||||
Me.lblDenaryHeading = New System.Windows.Forms.Label()
|
||||
Me.lblDenaryNum = New System.Windows.Forms.Label()
|
||||
Me.swt1 = New System.Windows.Forms.Button()
|
||||
Me.swt128 = New System.Windows.Forms.Button()
|
||||
Me.swt64 = New System.Windows.Forms.Button()
|
||||
Me.swt32 = New System.Windows.Forms.Button()
|
||||
Me.swt16 = New System.Windows.Forms.Button()
|
||||
Me.swt8 = New System.Windows.Forms.Button()
|
||||
Me.swt4 = New System.Windows.Forms.Button()
|
||||
Me.swt2 = New System.Windows.Forms.Button()
|
||||
Me.swt256 = New System.Windows.Forms.Button()
|
||||
Me.lbl256 = New System.Windows.Forms.Label()
|
||||
Me.lbl128 = New System.Windows.Forms.Label()
|
||||
Me.lbl64 = New System.Windows.Forms.Label()
|
||||
Me.lbl32 = New System.Windows.Forms.Label()
|
||||
Me.lbl16 = New System.Windows.Forms.Label()
|
||||
Me.lbl8 = New System.Windows.Forms.Label()
|
||||
Me.lbl4 = New System.Windows.Forms.Label()
|
||||
Me.lbl2 = New System.Windows.Forms.Label()
|
||||
Me.lbl1 = New System.Windows.Forms.Label()
|
||||
Me.lblBinaryHeading = New System.Windows.Forms.Label()
|
||||
Me.lblBinaryNum = New System.Windows.Forms.Label()
|
||||
Me.PictureBox1 = New System.Windows.Forms.PictureBox()
|
||||
Me.blb1 = New System.Windows.Forms.Label()
|
||||
Me.blb2 = New System.Windows.Forms.Label()
|
||||
Me.blb4 = New System.Windows.Forms.Label()
|
||||
Me.blb8 = New System.Windows.Forms.Label()
|
||||
Me.blb16 = New System.Windows.Forms.Label()
|
||||
Me.blb32 = New System.Windows.Forms.Label()
|
||||
Me.blb64 = New System.Windows.Forms.Label()
|
||||
Me.blb128 = New System.Windows.Forms.Label()
|
||||
Me.blb256 = New System.Windows.Forms.Label()
|
||||
Me.btnExit = New System.Windows.Forms.Button()
|
||||
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'lblDenaryHeading
|
||||
'
|
||||
Me.lblDenaryHeading.AutoSize = True
|
||||
Me.lblDenaryHeading.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lblDenaryHeading.ForeColor = System.Drawing.Color.White
|
||||
Me.lblDenaryHeading.Location = New System.Drawing.Point(1068, 90)
|
||||
Me.lblDenaryHeading.Name = "lblDenaryHeading"
|
||||
Me.lblDenaryHeading.Size = New System.Drawing.Size(129, 38)
|
||||
Me.lblDenaryHeading.TabIndex = 1
|
||||
Me.lblDenaryHeading.Text = "Denary"
|
||||
'
|
||||
'lblDenaryNum
|
||||
'
|
||||
Me.lblDenaryNum.BackColor = System.Drawing.Color.Transparent
|
||||
Me.lblDenaryNum.Font = New System.Drawing.Font("DSEG7 Classic", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lblDenaryNum.ForeColor = System.Drawing.Color.Lime
|
||||
Me.lblDenaryNum.Location = New System.Drawing.Point(1064, 139)
|
||||
Me.lblDenaryNum.Name = "lblDenaryNum"
|
||||
Me.lblDenaryNum.Size = New System.Drawing.Size(137, 63)
|
||||
Me.lblDenaryNum.TabIndex = 2
|
||||
Me.lblDenaryNum.Text = "0000"
|
||||
Me.lblDenaryNum.TextAlign = System.Drawing.ContentAlignment.MiddleRight
|
||||
'
|
||||
'swt1
|
||||
'
|
||||
Me.swt1.FlatAppearance.BorderSize = 0
|
||||
Me.swt1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.swt1.Font = New System.Drawing.Font("IEC symbols Unicode", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.swt1.ForeColor = System.Drawing.Color.White
|
||||
Me.swt1.Location = New System.Drawing.Point(895, 224)
|
||||
Me.swt1.Name = "swt1"
|
||||
Me.swt1.Size = New System.Drawing.Size(75, 75)
|
||||
Me.swt1.TabIndex = 4
|
||||
Me.swt1.Text = "⏼"
|
||||
Me.swt1.UseVisualStyleBackColor = True
|
||||
'
|
||||
'swt128
|
||||
'
|
||||
Me.swt128.FlatAppearance.BorderSize = 0
|
||||
Me.swt128.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt128.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt128.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.swt128.Font = New System.Drawing.Font("IEC symbols Unicode", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.swt128.ForeColor = System.Drawing.Color.White
|
||||
Me.swt128.Location = New System.Drawing.Point(139, 224)
|
||||
Me.swt128.Name = "swt128"
|
||||
Me.swt128.Size = New System.Drawing.Size(75, 75)
|
||||
Me.swt128.TabIndex = 5
|
||||
Me.swt128.Text = "⏼"
|
||||
Me.swt128.UseVisualStyleBackColor = True
|
||||
'
|
||||
'swt64
|
||||
'
|
||||
Me.swt64.FlatAppearance.BorderSize = 0
|
||||
Me.swt64.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt64.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt64.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.swt64.Font = New System.Drawing.Font("IEC symbols Unicode", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.swt64.ForeColor = System.Drawing.Color.White
|
||||
Me.swt64.Location = New System.Drawing.Point(247, 224)
|
||||
Me.swt64.Name = "swt64"
|
||||
Me.swt64.Size = New System.Drawing.Size(75, 75)
|
||||
Me.swt64.TabIndex = 6
|
||||
Me.swt64.Text = "⏼"
|
||||
Me.swt64.UseVisualStyleBackColor = True
|
||||
'
|
||||
'swt32
|
||||
'
|
||||
Me.swt32.FlatAppearance.BorderSize = 0
|
||||
Me.swt32.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt32.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt32.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.swt32.Font = New System.Drawing.Font("IEC symbols Unicode", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.swt32.ForeColor = System.Drawing.Color.White
|
||||
Me.swt32.Location = New System.Drawing.Point(355, 224)
|
||||
Me.swt32.Name = "swt32"
|
||||
Me.swt32.Size = New System.Drawing.Size(75, 75)
|
||||
Me.swt32.TabIndex = 7
|
||||
Me.swt32.Text = "⏼"
|
||||
Me.swt32.UseVisualStyleBackColor = True
|
||||
'
|
||||
'swt16
|
||||
'
|
||||
Me.swt16.FlatAppearance.BorderSize = 0
|
||||
Me.swt16.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt16.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt16.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.swt16.Font = New System.Drawing.Font("IEC symbols Unicode", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.swt16.ForeColor = System.Drawing.Color.White
|
||||
Me.swt16.Location = New System.Drawing.Point(463, 224)
|
||||
Me.swt16.Name = "swt16"
|
||||
Me.swt16.Size = New System.Drawing.Size(75, 75)
|
||||
Me.swt16.TabIndex = 8
|
||||
Me.swt16.Text = "⏼"
|
||||
Me.swt16.UseVisualStyleBackColor = True
|
||||
'
|
||||
'swt8
|
||||
'
|
||||
Me.swt8.FlatAppearance.BorderSize = 0
|
||||
Me.swt8.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt8.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt8.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.swt8.Font = New System.Drawing.Font("IEC symbols Unicode", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.swt8.ForeColor = System.Drawing.Color.White
|
||||
Me.swt8.Location = New System.Drawing.Point(571, 224)
|
||||
Me.swt8.Name = "swt8"
|
||||
Me.swt8.Size = New System.Drawing.Size(75, 75)
|
||||
Me.swt8.TabIndex = 9
|
||||
Me.swt8.Text = "⏼"
|
||||
Me.swt8.UseVisualStyleBackColor = True
|
||||
'
|
||||
'swt4
|
||||
'
|
||||
Me.swt4.FlatAppearance.BorderSize = 0
|
||||
Me.swt4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt4.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.swt4.Font = New System.Drawing.Font("IEC symbols Unicode", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.swt4.ForeColor = System.Drawing.Color.White
|
||||
Me.swt4.Location = New System.Drawing.Point(679, 224)
|
||||
Me.swt4.Name = "swt4"
|
||||
Me.swt4.Size = New System.Drawing.Size(75, 75)
|
||||
Me.swt4.TabIndex = 10
|
||||
Me.swt4.Text = "⏼"
|
||||
Me.swt4.UseVisualStyleBackColor = True
|
||||
'
|
||||
'swt2
|
||||
'
|
||||
Me.swt2.FlatAppearance.BorderSize = 0
|
||||
Me.swt2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt2.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.swt2.Font = New System.Drawing.Font("IEC symbols Unicode", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.swt2.ForeColor = System.Drawing.Color.White
|
||||
Me.swt2.Location = New System.Drawing.Point(787, 224)
|
||||
Me.swt2.Name = "swt2"
|
||||
Me.swt2.Size = New System.Drawing.Size(75, 75)
|
||||
Me.swt2.TabIndex = 11
|
||||
Me.swt2.Text = "⏼"
|
||||
Me.swt2.UseVisualStyleBackColor = True
|
||||
'
|
||||
'swt256
|
||||
'
|
||||
Me.swt256.FlatAppearance.BorderSize = 0
|
||||
Me.swt256.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt256.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
|
||||
Me.swt256.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.swt256.Font = New System.Drawing.Font("IEC symbols Unicode", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.swt256.ForeColor = System.Drawing.Color.White
|
||||
Me.swt256.Location = New System.Drawing.Point(31, 224)
|
||||
Me.swt256.Name = "swt256"
|
||||
Me.swt256.Size = New System.Drawing.Size(75, 75)
|
||||
Me.swt256.TabIndex = 12
|
||||
Me.swt256.Text = "⏼"
|
||||
Me.swt256.UseVisualStyleBackColor = True
|
||||
'
|
||||
'lbl256
|
||||
'
|
||||
Me.lbl256.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lbl256.ForeColor = System.Drawing.Color.White
|
||||
Me.lbl256.Location = New System.Drawing.Point(31, 183)
|
||||
Me.lbl256.Name = "lbl256"
|
||||
Me.lbl256.Size = New System.Drawing.Size(75, 38)
|
||||
Me.lbl256.TabIndex = 14
|
||||
Me.lbl256.Text = "256"
|
||||
Me.lbl256.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'lbl128
|
||||
'
|
||||
Me.lbl128.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lbl128.ForeColor = System.Drawing.Color.White
|
||||
Me.lbl128.Location = New System.Drawing.Point(139, 183)
|
||||
Me.lbl128.Name = "lbl128"
|
||||
Me.lbl128.Size = New System.Drawing.Size(75, 38)
|
||||
Me.lbl128.TabIndex = 15
|
||||
Me.lbl128.Text = "128"
|
||||
Me.lbl128.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'lbl64
|
||||
'
|
||||
Me.lbl64.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lbl64.ForeColor = System.Drawing.Color.White
|
||||
Me.lbl64.Location = New System.Drawing.Point(247, 183)
|
||||
Me.lbl64.Name = "lbl64"
|
||||
Me.lbl64.Size = New System.Drawing.Size(75, 38)
|
||||
Me.lbl64.TabIndex = 16
|
||||
Me.lbl64.Text = "64"
|
||||
Me.lbl64.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'lbl32
|
||||
'
|
||||
Me.lbl32.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lbl32.ForeColor = System.Drawing.Color.White
|
||||
Me.lbl32.Location = New System.Drawing.Point(355, 183)
|
||||
Me.lbl32.Name = "lbl32"
|
||||
Me.lbl32.Size = New System.Drawing.Size(75, 38)
|
||||
Me.lbl32.TabIndex = 17
|
||||
Me.lbl32.Text = "32"
|
||||
Me.lbl32.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'lbl16
|
||||
'
|
||||
Me.lbl16.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lbl16.ForeColor = System.Drawing.Color.White
|
||||
Me.lbl16.Location = New System.Drawing.Point(463, 183)
|
||||
Me.lbl16.Name = "lbl16"
|
||||
Me.lbl16.Size = New System.Drawing.Size(75, 38)
|
||||
Me.lbl16.TabIndex = 18
|
||||
Me.lbl16.Text = "16"
|
||||
Me.lbl16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'lbl8
|
||||
'
|
||||
Me.lbl8.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lbl8.ForeColor = System.Drawing.Color.White
|
||||
Me.lbl8.Location = New System.Drawing.Point(571, 183)
|
||||
Me.lbl8.Name = "lbl8"
|
||||
Me.lbl8.Size = New System.Drawing.Size(75, 38)
|
||||
Me.lbl8.TabIndex = 19
|
||||
Me.lbl8.Text = "8"
|
||||
Me.lbl8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'lbl4
|
||||
'
|
||||
Me.lbl4.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lbl4.ForeColor = System.Drawing.Color.White
|
||||
Me.lbl4.Location = New System.Drawing.Point(679, 183)
|
||||
Me.lbl4.Name = "lbl4"
|
||||
Me.lbl4.Size = New System.Drawing.Size(75, 38)
|
||||
Me.lbl4.TabIndex = 20
|
||||
Me.lbl4.Text = "4"
|
||||
Me.lbl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'lbl2
|
||||
'
|
||||
Me.lbl2.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lbl2.ForeColor = System.Drawing.Color.White
|
||||
Me.lbl2.Location = New System.Drawing.Point(787, 183)
|
||||
Me.lbl2.Name = "lbl2"
|
||||
Me.lbl2.Size = New System.Drawing.Size(75, 38)
|
||||
Me.lbl2.TabIndex = 21
|
||||
Me.lbl2.Text = "2"
|
||||
Me.lbl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'lbl1
|
||||
'
|
||||
Me.lbl1.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lbl1.ForeColor = System.Drawing.Color.White
|
||||
Me.lbl1.Location = New System.Drawing.Point(895, 183)
|
||||
Me.lbl1.Name = "lbl1"
|
||||
Me.lbl1.Size = New System.Drawing.Size(75, 38)
|
||||
Me.lbl1.TabIndex = 22
|
||||
Me.lbl1.Text = "1"
|
||||
Me.lbl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'lblBinaryHeading
|
||||
'
|
||||
Me.lblBinaryHeading.AutoSize = True
|
||||
Me.lblBinaryHeading.Font = New System.Drawing.Font("Seven Segment", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lblBinaryHeading.ForeColor = System.Drawing.Color.White
|
||||
Me.lblBinaryHeading.Location = New System.Drawing.Point(1073, 213)
|
||||
Me.lblBinaryHeading.Name = "lblBinaryHeading"
|
||||
Me.lblBinaryHeading.Size = New System.Drawing.Size(119, 38)
|
||||
Me.lblBinaryHeading.TabIndex = 23
|
||||
Me.lblBinaryHeading.Text = "Binary"
|
||||
'
|
||||
'lblBinaryNum
|
||||
'
|
||||
Me.lblBinaryNum.AutoSize = True
|
||||
Me.lblBinaryNum.BackColor = System.Drawing.Color.Black
|
||||
Me.lblBinaryNum.Font = New System.Drawing.Font("DSEG7 Classic", 27.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.lblBinaryNum.ForeColor = System.Drawing.Color.LimeGreen
|
||||
Me.lblBinaryNum.Location = New System.Drawing.Point(989, 262)
|
||||
Me.lblBinaryNum.Name = "lblBinaryNum"
|
||||
Me.lblBinaryNum.Size = New System.Drawing.Size(287, 37)
|
||||
Me.lblBinaryNum.TabIndex = 3
|
||||
Me.lblBinaryNum.Text = "000000000"
|
||||
'
|
||||
'PictureBox1
|
||||
'
|
||||
Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None
|
||||
Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
|
||||
Me.PictureBox1.Location = New System.Drawing.Point(12, 12)
|
||||
Me.PictureBox1.Name = "PictureBox1"
|
||||
Me.PictureBox1.Size = New System.Drawing.Size(61, 61)
|
||||
Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
|
||||
Me.PictureBox1.TabIndex = 33
|
||||
Me.PictureBox1.TabStop = False
|
||||
'
|
||||
'blb1
|
||||
'
|
||||
Me.blb1.Font = New System.Drawing.Font("Segoe UI Symbol", 48.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.blb1.ForeColor = System.Drawing.Color.White
|
||||
Me.blb1.Location = New System.Drawing.Point(895, 75)
|
||||
Me.blb1.Name = "blb1"
|
||||
Me.blb1.Size = New System.Drawing.Size(75, 99)
|
||||
Me.blb1.TabIndex = 43
|
||||
Me.blb1.Text = "💡"
|
||||
Me.blb1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'blb2
|
||||
'
|
||||
Me.blb2.Font = New System.Drawing.Font("Segoe UI Symbol", 48.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.blb2.ForeColor = System.Drawing.Color.White
|
||||
Me.blb2.Location = New System.Drawing.Point(787, 75)
|
||||
Me.blb2.Name = "blb2"
|
||||
Me.blb2.Size = New System.Drawing.Size(75, 99)
|
||||
Me.blb2.TabIndex = 42
|
||||
Me.blb2.Text = "💡"
|
||||
Me.blb2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'blb4
|
||||
'
|
||||
Me.blb4.Font = New System.Drawing.Font("Segoe UI Symbol", 48.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.blb4.ForeColor = System.Drawing.Color.White
|
||||
Me.blb4.Location = New System.Drawing.Point(679, 75)
|
||||
Me.blb4.Name = "blb4"
|
||||
Me.blb4.Size = New System.Drawing.Size(75, 99)
|
||||
Me.blb4.TabIndex = 41
|
||||
Me.blb4.Text = "💡"
|
||||
Me.blb4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'blb8
|
||||
'
|
||||
Me.blb8.Font = New System.Drawing.Font("Segoe UI Symbol", 48.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.blb8.ForeColor = System.Drawing.Color.White
|
||||
Me.blb8.Location = New System.Drawing.Point(571, 75)
|
||||
Me.blb8.Name = "blb8"
|
||||
Me.blb8.Size = New System.Drawing.Size(75, 99)
|
||||
Me.blb8.TabIndex = 40
|
||||
Me.blb8.Text = "💡"
|
||||
Me.blb8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'blb16
|
||||
'
|
||||
Me.blb16.Font = New System.Drawing.Font("Segoe UI Symbol", 48.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.blb16.ForeColor = System.Drawing.Color.White
|
||||
Me.blb16.Location = New System.Drawing.Point(463, 75)
|
||||
Me.blb16.Name = "blb16"
|
||||
Me.blb16.Size = New System.Drawing.Size(75, 99)
|
||||
Me.blb16.TabIndex = 39
|
||||
Me.blb16.Text = "💡"
|
||||
Me.blb16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'blb32
|
||||
'
|
||||
Me.blb32.Font = New System.Drawing.Font("Segoe UI Symbol", 48.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.blb32.ForeColor = System.Drawing.Color.White
|
||||
Me.blb32.Location = New System.Drawing.Point(355, 75)
|
||||
Me.blb32.Name = "blb32"
|
||||
Me.blb32.Size = New System.Drawing.Size(75, 99)
|
||||
Me.blb32.TabIndex = 38
|
||||
Me.blb32.Text = "💡"
|
||||
Me.blb32.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'blb64
|
||||
'
|
||||
Me.blb64.Font = New System.Drawing.Font("Segoe UI Symbol", 48.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.blb64.ForeColor = System.Drawing.Color.White
|
||||
Me.blb64.Location = New System.Drawing.Point(247, 75)
|
||||
Me.blb64.Name = "blb64"
|
||||
Me.blb64.Size = New System.Drawing.Size(75, 99)
|
||||
Me.blb64.TabIndex = 37
|
||||
Me.blb64.Text = "💡"
|
||||
Me.blb64.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'blb128
|
||||
'
|
||||
Me.blb128.Font = New System.Drawing.Font("Segoe UI Symbol", 48.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.blb128.ForeColor = System.Drawing.Color.White
|
||||
Me.blb128.Location = New System.Drawing.Point(139, 75)
|
||||
Me.blb128.Name = "blb128"
|
||||
Me.blb128.Size = New System.Drawing.Size(75, 99)
|
||||
Me.blb128.TabIndex = 36
|
||||
Me.blb128.Text = "💡"
|
||||
Me.blb128.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'blb256
|
||||
'
|
||||
Me.blb256.Font = New System.Drawing.Font("Segoe UI Symbol", 48.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.blb256.ForeColor = System.Drawing.Color.White
|
||||
Me.blb256.Location = New System.Drawing.Point(31, 75)
|
||||
Me.blb256.Name = "blb256"
|
||||
Me.blb256.Size = New System.Drawing.Size(75, 99)
|
||||
Me.blb256.TabIndex = 35
|
||||
Me.blb256.Text = "💡"
|
||||
Me.blb256.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
|
||||
'
|
||||
'btnExit
|
||||
'
|
||||
Me.btnExit.FlatAppearance.BorderSize = 0
|
||||
Me.btnExit.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent
|
||||
Me.btnExit.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent
|
||||
Me.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat
|
||||
Me.btnExit.Font = New System.Drawing.Font("IEC symbols Unicode", 48.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point)
|
||||
Me.btnExit.ForeColor = System.Drawing.Color.Lime
|
||||
Me.btnExit.Location = New System.Drawing.Point(1201, 12)
|
||||
Me.btnExit.Name = "btnExit"
|
||||
Me.btnExit.Size = New System.Drawing.Size(75, 75)
|
||||
Me.btnExit.TabIndex = 44
|
||||
Me.btnExit.Text = "⏻"
|
||||
Me.btnExit.UseVisualStyleBackColor = True
|
||||
'
|
||||
'BitBox
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 15.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.BackColor = System.Drawing.Color.Black
|
||||
Me.ClientSize = New System.Drawing.Size(1288, 328)
|
||||
Me.ControlBox = False
|
||||
Me.Controls.Add(Me.btnExit)
|
||||
Me.Controls.Add(Me.blb1)
|
||||
Me.Controls.Add(Me.blb2)
|
||||
Me.Controls.Add(Me.blb4)
|
||||
Me.Controls.Add(Me.blb8)
|
||||
Me.Controls.Add(Me.blb16)
|
||||
Me.Controls.Add(Me.blb32)
|
||||
Me.Controls.Add(Me.blb64)
|
||||
Me.Controls.Add(Me.blb128)
|
||||
Me.Controls.Add(Me.blb256)
|
||||
Me.Controls.Add(Me.PictureBox1)
|
||||
Me.Controls.Add(Me.lblBinaryHeading)
|
||||
Me.Controls.Add(Me.lbl1)
|
||||
Me.Controls.Add(Me.lbl2)
|
||||
Me.Controls.Add(Me.lbl4)
|
||||
Me.Controls.Add(Me.lbl8)
|
||||
Me.Controls.Add(Me.lbl16)
|
||||
Me.Controls.Add(Me.lbl32)
|
||||
Me.Controls.Add(Me.lbl64)
|
||||
Me.Controls.Add(Me.lbl128)
|
||||
Me.Controls.Add(Me.lbl256)
|
||||
Me.Controls.Add(Me.swt256)
|
||||
Me.Controls.Add(Me.swt2)
|
||||
Me.Controls.Add(Me.swt4)
|
||||
Me.Controls.Add(Me.swt8)
|
||||
Me.Controls.Add(Me.swt16)
|
||||
Me.Controls.Add(Me.swt32)
|
||||
Me.Controls.Add(Me.swt64)
|
||||
Me.Controls.Add(Me.swt128)
|
||||
Me.Controls.Add(Me.swt1)
|
||||
Me.Controls.Add(Me.lblDenaryNum)
|
||||
Me.Controls.Add(Me.lblDenaryHeading)
|
||||
Me.Controls.Add(Me.lblBinaryNum)
|
||||
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
|
||||
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
|
||||
Me.MaximizeBox = False
|
||||
Me.MinimizeBox = False
|
||||
Me.Name = "BitBox"
|
||||
Me.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide
|
||||
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
|
||||
Me.Text = "Bit:Box"
|
||||
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
End Sub
|
||||
Friend WithEvents lblDenaryHeading As Label
|
||||
Friend WithEvents lblDenaryNum As Label
|
||||
Friend WithEvents swt1 As Button
|
||||
Friend WithEvents swt128 As Button
|
||||
Friend WithEvents swt64 As Button
|
||||
Friend WithEvents swt32 As Button
|
||||
Friend WithEvents swt16 As Button
|
||||
Friend WithEvents swt8 As Button
|
||||
Friend WithEvents swt4 As Button
|
||||
Friend WithEvents swt2 As Button
|
||||
Friend WithEvents swt256 As Button
|
||||
Friend WithEvents lbl256 As Label
|
||||
Friend WithEvents lbl128 As Label
|
||||
Friend WithEvents lbl64 As Label
|
||||
Friend WithEvents lbl32 As Label
|
||||
Friend WithEvents lbl16 As Label
|
||||
Friend WithEvents lbl8 As Label
|
||||
Friend WithEvents lbl4 As Label
|
||||
Friend WithEvents lbl2 As Label
|
||||
Friend WithEvents lbl1 As Label
|
||||
Friend WithEvents lblBinaryHeading As Label
|
||||
Friend WithEvents lblBinaryNum As Label
|
||||
Friend WithEvents PictureBox1 As PictureBox
|
||||
Friend WithEvents blb1 As Label
|
||||
Friend WithEvents blb2 As Label
|
||||
Friend WithEvents blb4 As Label
|
||||
Friend WithEvents blb8 As Label
|
||||
Friend WithEvents blb16 As Label
|
||||
Friend WithEvents blb32 As Label
|
||||
Friend WithEvents blb64 As Label
|
||||
Friend WithEvents blb128 As Label
|
||||
Friend WithEvents blb256 As Label
|
||||
Friend WithEvents btnExit As Button
|
||||
End Class
|
||||
3179
BitBox.resx
Normal file
3179
BitBox.resx
Normal file
File diff suppressed because it is too large
Load Diff
269
BitBox.vb
Normal file
269
BitBox.vb
Normal file
@@ -0,0 +1,269 @@
|
||||
Imports System.Runtime.InteropServices
|
||||
Public Class BitBox
|
||||
Public bit1 = False
|
||||
Public bit2 = False
|
||||
Public bit4 = False
|
||||
Public bit8 = False
|
||||
Public bit16 = False
|
||||
Public bit32 = False
|
||||
Public bit64 = False
|
||||
Public bit128 = False
|
||||
Public bit256 = False
|
||||
Public binary = ""
|
||||
Public denary = 0
|
||||
Public privateFontCollection1 As New Drawing.Text.PrivateFontCollection
|
||||
Public privateFontCollection2 As New Drawing.Text.PrivateFontCollection
|
||||
Public privateFontCollection3 As New Drawing.Text.PrivateFontCollection
|
||||
Public FamilyName1 As String
|
||||
Public FamilyName2 As String
|
||||
Public FamilyName3 As String
|
||||
Private Sub BitBox_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
Dim data1 As System.IntPtr = Marshal.AllocCoTaskMem(My.Resources.DSEG7Classic_Regular.Length - 1)
|
||||
|
||||
Marshal.Copy(My.Resources.DSEG7Classic_Regular, 0, data1, My.Resources.DSEG7Classic_Regular.Length)
|
||||
privateFontCollection1.AddMemoryFont(data1, My.Resources.DSEG7Classic_Regular.Length)
|
||||
Marshal.FreeCoTaskMem(data1)
|
||||
Dim fnt1 As Font = New Font(privateFontCollection1.Families(0), 27.75)
|
||||
|
||||
lblDenaryNum.UseCompatibleTextRendering = True
|
||||
lblDenaryNum.Font = fnt1
|
||||
lblBinaryNum.UseCompatibleTextRendering = True
|
||||
lblBinaryNum.Font = fnt1
|
||||
|
||||
Dim data2 As System.IntPtr = Marshal.AllocCoTaskMem(My.Resources.Seven_Segment.Length - 1)
|
||||
Marshal.Copy(My.Resources.Seven_Segment, 0, data2, My.Resources.Seven_Segment.Length)
|
||||
privateFontCollection2.AddMemoryFont(data2, My.Resources.Seven_Segment.Length)
|
||||
Marshal.FreeCoTaskMem(data2)
|
||||
Dim fnt2 As Font = New Font(privateFontCollection2.Families(0), 27.75)
|
||||
|
||||
lblDenaryHeading.UseCompatibleTextRendering = True
|
||||
lblDenaryHeading.Font = fnt2
|
||||
lblBinaryHeading.UseCompatibleTextRendering = True
|
||||
lblBinaryHeading.Font = fnt2
|
||||
|
||||
lbl1.UseCompatibleTextRendering = True
|
||||
lbl1.Font = fnt2
|
||||
lbl2.UseCompatibleTextRendering = True
|
||||
lbl2.Font = fnt2
|
||||
lbl4.UseCompatibleTextRendering = True
|
||||
lbl4.Font = fnt2
|
||||
lbl8.UseCompatibleTextRendering = True
|
||||
lbl8.Font = fnt2
|
||||
lbl16.UseCompatibleTextRendering = True
|
||||
lbl16.Font = fnt2
|
||||
lbl32.UseCompatibleTextRendering = True
|
||||
lbl32.Font = fnt2
|
||||
lbl64.UseCompatibleTextRendering = True
|
||||
lbl64.Font = fnt2
|
||||
lbl128.UseCompatibleTextRendering = True
|
||||
lbl128.Font = fnt2
|
||||
lbl256.UseCompatibleTextRendering = True
|
||||
lbl256.Font = fnt2
|
||||
|
||||
Dim data3 As System.IntPtr = Marshal.AllocCoTaskMem(My.Resources.Unicode_IEC_symbol.Length - 1)
|
||||
Marshal.Copy(My.Resources.Unicode_IEC_symbol, 0, data3, My.Resources.Unicode_IEC_symbol.Length)
|
||||
privateFontCollection3.AddMemoryFont(data3, My.Resources.Unicode_IEC_symbol.Length)
|
||||
Marshal.FreeCoTaskMem(data3)
|
||||
Dim fnt3 As Font = New Font(privateFontCollection3.Families(0), 27.75)
|
||||
Dim fnt4 As Font = New Font(privateFontCollection3.Families(0), 48)
|
||||
|
||||
swt1.UseCompatibleTextRendering = True
|
||||
swt1.Font = fnt3
|
||||
swt2.UseCompatibleTextRendering = True
|
||||
swt2.Font = fnt3
|
||||
swt4.UseCompatibleTextRendering = True
|
||||
swt4.Font = fnt3
|
||||
swt8.UseCompatibleTextRendering = True
|
||||
swt8.Font = fnt3
|
||||
swt16.UseCompatibleTextRendering = True
|
||||
swt16.Font = fnt3
|
||||
swt32.UseCompatibleTextRendering = True
|
||||
swt32.Font = fnt3
|
||||
swt64.UseCompatibleTextRendering = True
|
||||
swt64.Font = fnt3
|
||||
swt128.UseCompatibleTextRendering = True
|
||||
swt128.Font = fnt3
|
||||
swt256.UseCompatibleTextRendering = True
|
||||
swt256.Font = fnt3
|
||||
|
||||
btnExit.UseCompatibleTextRendering = True
|
||||
btnExit.Font = fnt4
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub swt1_Click(sender As Object, e As EventArgs) Handles swt1.Click
|
||||
If bit1 = False Then
|
||||
blb1.ForeColor = System.Drawing.Color.Yellow
|
||||
bit1 = True
|
||||
updateNumber()
|
||||
Else
|
||||
blb1.ForeColor = System.Drawing.Color.White
|
||||
bit1 = False
|
||||
updateNumber()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Public Sub updateNumber()
|
||||
denary = 0
|
||||
binary = ""
|
||||
If bit256 Then
|
||||
denary = denary + 256
|
||||
binary = binary + "1"
|
||||
Else
|
||||
binary = binary + "0"
|
||||
End If
|
||||
If bit128 Then
|
||||
denary = denary + 128
|
||||
binary = binary + "1"
|
||||
Else
|
||||
binary = binary + "0"
|
||||
End If
|
||||
If bit64 Then
|
||||
denary = denary + 64
|
||||
binary = binary + "1"
|
||||
Else
|
||||
binary = binary + "0"
|
||||
End If
|
||||
If bit32 Then
|
||||
denary = denary + 32
|
||||
binary = binary + "1"
|
||||
Else
|
||||
binary = binary + "0"
|
||||
End If
|
||||
If bit16 Then
|
||||
denary = denary + 16
|
||||
binary = binary + "1"
|
||||
Else
|
||||
binary = binary + "0"
|
||||
End If
|
||||
If bit8 Then
|
||||
denary = denary + 8
|
||||
binary = binary + "1"
|
||||
Else
|
||||
binary = binary + "0"
|
||||
End If
|
||||
If bit4 Then
|
||||
denary = denary + 4
|
||||
binary = binary + "1"
|
||||
Else
|
||||
binary = binary + "0"
|
||||
End If
|
||||
If bit2 Then
|
||||
denary = denary + 2
|
||||
binary = binary + "1"
|
||||
Else
|
||||
binary = binary + "0"
|
||||
End If
|
||||
If bit1 Then
|
||||
denary = denary + 1
|
||||
binary = binary + "1"
|
||||
Else
|
||||
binary = binary + "0"
|
||||
End If
|
||||
lblDenaryNum.Text = denary
|
||||
lblBinaryNum.Text = binary
|
||||
End Sub
|
||||
|
||||
Private Sub swt2_Click(sender As Object, e As EventArgs) Handles swt2.Click
|
||||
If bit2 = False Then
|
||||
blb2.ForeColor = System.Drawing.Color.Yellow
|
||||
bit2 = True
|
||||
updateNumber()
|
||||
Else
|
||||
blb2.ForeColor = System.Drawing.Color.White
|
||||
bit2 = False
|
||||
updateNumber()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub swt4_Click(sender As Object, e As EventArgs) Handles swt4.Click
|
||||
If bit4 = False Then
|
||||
blb4.ForeColor = System.Drawing.Color.Yellow
|
||||
bit4 = True
|
||||
updateNumber()
|
||||
Else
|
||||
blb4.ForeColor = System.Drawing.Color.White
|
||||
bit4 = False
|
||||
updateNumber()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub swt8_Click(sender As Object, e As EventArgs) Handles swt8.Click
|
||||
If bit8 = False Then
|
||||
blb8.ForeColor = System.Drawing.Color.Yellow
|
||||
bit8 = True
|
||||
updateNumber()
|
||||
Else
|
||||
blb8.ForeColor = System.Drawing.Color.White
|
||||
bit8 = False
|
||||
updateNumber()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub swt16_Click(sender As Object, e As EventArgs) Handles swt16.Click
|
||||
If bit16 = False Then
|
||||
blb16.ForeColor = System.Drawing.Color.Yellow
|
||||
bit16 = True
|
||||
updateNumber()
|
||||
Else
|
||||
blb16.ForeColor = System.Drawing.Color.White
|
||||
bit16 = False
|
||||
updateNumber()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub swt32_Click(sender As Object, e As EventArgs) Handles swt32.Click
|
||||
If bit32 = False Then
|
||||
blb32.ForeColor = System.Drawing.Color.Yellow
|
||||
bit32 = True
|
||||
updateNumber()
|
||||
Else
|
||||
blb32.ForeColor = System.Drawing.Color.White
|
||||
bit32 = False
|
||||
updateNumber()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub swt64_Click(sender As Object, e As EventArgs) Handles swt64.Click
|
||||
If bit64 = False Then
|
||||
blb64.ForeColor = System.Drawing.Color.Yellow
|
||||
bit64 = True
|
||||
updateNumber()
|
||||
Else
|
||||
blb64.ForeColor = System.Drawing.Color.White
|
||||
bit64 = False
|
||||
updateNumber()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub swt128_Click(sender As Object, e As EventArgs) Handles swt128.Click
|
||||
If bit128 = False Then
|
||||
blb128.ForeColor = System.Drawing.Color.Yellow
|
||||
bit128 = True
|
||||
updateNumber()
|
||||
Else
|
||||
blb128.ForeColor = System.Drawing.Color.White
|
||||
bit128 = False
|
||||
updateNumber()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub swt256_Click(sender As Object, e As EventArgs) Handles swt256.Click
|
||||
If bit256 = False Then
|
||||
blb256.ForeColor = System.Drawing.Color.Yellow
|
||||
bit256 = True
|
||||
updateNumber()
|
||||
Else
|
||||
blb256.ForeColor = System.Drawing.Color.White
|
||||
bit256 = False
|
||||
updateNumber()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub PictureBox1_Click(sender As Object, e As EventArgs) Handles PictureBox1.Click
|
||||
AboutBox.ShowDialog()
|
||||
End Sub
|
||||
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnExit.Click
|
||||
Close()
|
||||
End Sub
|
||||
End Class
|
||||
BIN
Bit_Box-1 (1).png
Normal file
BIN
Bit_Box-1 (1).png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
BIN
DSEG7Classic-Regular.ttf
Normal file
BIN
DSEG7Classic-Regular.ttf
Normal file
Binary file not shown.
38
My Project/Application.Designer.vb
generated
Normal file
38
My Project/Application.Designer.vb
generated
Normal file
@@ -0,0 +1,38 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:4.0.30319.42000
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
'NOTE: This file is auto-generated; do not modify it directly. To make changes,
|
||||
' or if you encounter build errors in this file, go to the Project Designer
|
||||
' (go to Project Properties or double-click the My Project node in
|
||||
' Solution Explorer), and make changes on the Application tab.
|
||||
'
|
||||
Partial Friend Class MyApplication
|
||||
|
||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||
Public Sub New()
|
||||
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
||||
Me.IsSingleInstance = false
|
||||
Me.EnableVisualStyles = true
|
||||
Me.SaveMySettingsOnExit = True
|
||||
Me.ShutdownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterAllFormsClose
|
||||
End Sub
|
||||
|
||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||
Protected Overrides Sub OnCreateMainForm()
|
||||
Me.MainForm = Global.BinaryBoxSimulator.BitBox
|
||||
End Sub
|
||||
End Class
|
||||
End Namespace
|
||||
10
My Project/Application.myapp
Normal file
10
My Project/Application.myapp
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<MyApplicationData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<MySubMain>true</MySubMain>
|
||||
<MainForm>Form1</MainForm>
|
||||
<SingleInstance>false</SingleInstance>
|
||||
<ShutdownMode>1</ShutdownMode>
|
||||
<EnableVisualStyles>true</EnableVisualStyles>
|
||||
<AuthenticationMode>0</AuthenticationMode>
|
||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||
</MyApplicationData>
|
||||
93
My Project/Resources.Designer.vb
generated
Normal file
93
My Project/Resources.Designer.vb
generated
Normal file
@@ -0,0 +1,93 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:4.0.30319.42000
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
Imports System
|
||||
|
||||
Namespace My.Resources
|
||||
|
||||
'This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
'class via a tool like ResGen or Visual Studio.
|
||||
'To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
'with the /str option, or rebuild your VS project.
|
||||
'''<summary>
|
||||
''' A strongly-typed resource class, for looking up localized strings, etc.
|
||||
'''</summary>
|
||||
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0"), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||
Friend Module Resources
|
||||
|
||||
Private resourceMan As Global.System.Resources.ResourceManager
|
||||
|
||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||
|
||||
'''<summary>
|
||||
''' Returns the cached ResourceManager instance used by this class.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||
Get
|
||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("BinaryBoxSimulator.Resources", GetType(Resources).Assembly)
|
||||
resourceMan = temp
|
||||
End If
|
||||
Return resourceMan
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Overrides the current thread's CurrentUICulture property for all
|
||||
''' resource lookups using this strongly typed resource class.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||
Get
|
||||
Return resourceCulture
|
||||
End Get
|
||||
Set
|
||||
resourceCulture = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized resource of type System.Byte[].
|
||||
'''</summary>
|
||||
Friend ReadOnly Property DSEG7Classic_Regular() As Byte()
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("DSEG7Classic_Regular", resourceCulture)
|
||||
Return CType(obj,Byte())
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized resource of type System.Byte[].
|
||||
'''</summary>
|
||||
Friend ReadOnly Property Seven_Segment() As Byte()
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("Seven_Segment", resourceCulture)
|
||||
Return CType(obj,Byte())
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized resource of type System.Byte[].
|
||||
'''</summary>
|
||||
Friend ReadOnly Property Unicode_IEC_symbol() As Byte()
|
||||
Get
|
||||
Dim obj As Object = ResourceManager.GetObject("Unicode_IEC_symbol", resourceCulture)
|
||||
Return CType(obj,Byte())
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
130
My Project/Resources.resx
Normal file
130
My Project/Resources.resx
Normal file
@@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="DSEG7Classic_Regular" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\DSEG7Classic-Regular.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="Seven_Segment" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\..\..\Downloads\seven_segment\Seven Segment.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="Unicode_IEC_symbol" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\..\..\Downloads\Unicode_IEC_symbol.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
</root>
|
||||
73
My Project/Settings.Designer.vb
generated
Normal file
73
My Project/Settings.Designer.vb
generated
Normal file
@@ -0,0 +1,73 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:4.0.30319.42000
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0"), _
|
||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Partial Friend NotInheritable Class MySettings
|
||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||
|
||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
|
||||
|
||||
#Region "My.Settings Auto-Save Functionality"
|
||||
#If _MyType = "WindowsForms" Then
|
||||
Private Shared addedHandler As Boolean
|
||||
|
||||
Private Shared addedHandlerLockObject As New Object
|
||||
|
||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
|
||||
If My.Application.SaveMySettingsOnExit Then
|
||||
My.Settings.Save()
|
||||
End If
|
||||
End Sub
|
||||
#End If
|
||||
#End Region
|
||||
|
||||
Public Shared ReadOnly Property [Default]() As MySettings
|
||||
Get
|
||||
|
||||
#If _MyType = "WindowsForms" Then
|
||||
If Not addedHandler Then
|
||||
SyncLock addedHandlerLockObject
|
||||
If Not addedHandler Then
|
||||
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||
addedHandler = True
|
||||
End If
|
||||
End SyncLock
|
||||
End If
|
||||
#End If
|
||||
Return defaultInstance
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||
Friend Module MySettingsProperty
|
||||
|
||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||
Friend ReadOnly Property Settings() As Global.BinaryBoxSimulator.My.MySettings
|
||||
Get
|
||||
Return Global.BinaryBoxSimulator.My.MySettings.Default
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
6
My Project/Settings.settings
Normal file
6
My Project/Settings.settings
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
</SettingsFile>
|
||||
79
My Project/app.manifest
Normal file
79
My Project/app.manifest
Normal file
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<!-- UAC Manifest Options
|
||||
If you want to change the Windows User Account Control level replace the
|
||||
requestedExecutionLevel node with one of the following.
|
||||
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
|
||||
|
||||
Specifying requestedExecutionLevel element will disable file and registry virtualization.
|
||||
Remove this element if your application requires this virtualization for backwards
|
||||
compatibility.
|
||||
-->
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- A list of the Windows versions that this application has been tested on
|
||||
and is designed to work with. Uncomment the appropriate elements
|
||||
and Windows will automatically select the most compatible environment. -->
|
||||
|
||||
<!-- Windows Vista -->
|
||||
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
|
||||
|
||||
<!-- Windows 7 -->
|
||||
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
|
||||
|
||||
<!-- Windows 8 -->
|
||||
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
|
||||
|
||||
<!-- Windows 8.1 -->
|
||||
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
|
||||
|
||||
<!-- Windows 10 -->
|
||||
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
|
||||
|
||||
</application>
|
||||
</compatibility>
|
||||
|
||||
<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
|
||||
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
|
||||
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
|
||||
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config.
|
||||
|
||||
Makes the application long-path aware. See https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation -->
|
||||
<!--
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
|
||||
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
-->
|
||||
|
||||
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
|
||||
<!--
|
||||
<dependency>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity
|
||||
type="win32"
|
||||
name="Microsoft.Windows.Common-Controls"
|
||||
version="6.0.0.0"
|
||||
processorArchitecture="*"
|
||||
publicKeyToken="6595b64144ccf1df"
|
||||
language="*"
|
||||
/>
|
||||
</dependentAssembly>
|
||||
</dependency>
|
||||
-->
|
||||
|
||||
</assembly>
|
||||
BIN
NicePng_power-button-png_413233.png
Normal file
BIN
NicePng_power-button-png_413233.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 149 KiB |
BIN
Published/D3DCompiler_47_cor3.dll
Normal file
BIN
Published/D3DCompiler_47_cor3.dll
Normal file
Binary file not shown.
BIN
Published/PenImc_cor3.dll
Normal file
BIN
Published/PenImc_cor3.dll
Normal file
Binary file not shown.
BIN
Published/PresentationNative_cor3.dll
Normal file
BIN
Published/PresentationNative_cor3.dll
Normal file
Binary file not shown.
BIN
Published/vcruntime140_cor3.dll
Normal file
BIN
Published/vcruntime140_cor3.dll
Normal file
Binary file not shown.
BIN
Published/wpfgfx_cor3.dll
Normal file
BIN
Published/wpfgfx_cor3.dll
Normal file
Binary file not shown.
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 116 KiB |
Reference in New Issue
Block a user