diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9088c8e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,253 @@
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+bld/
+[Bb]in/
+[Oo]bj/
+[Ll]og/
+
+# Visual Studio 2015 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUNIT
+*.VisualState.xml
+TestResult.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# DNX
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+*_i.c
+*_p.c
+*_i.h
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# JustCode is a .NET coding add-in
+.JustCode
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# TODO: Comment the next line if you want to checkin your web deploy settings
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# The packages folder can be ignored because of Package Restore
+**/packages/*
+# except build/, which is used as an MSBuild target.
+!**/packages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/packages/repositories.config
+# NuGet v3's project.json files produces more ignoreable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.pfx
+*.publishsettings
+node_modules/
+orleans.codegen.cs
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+
+# SQL Server files
+*.mdf
+*.ldf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# JetBrains Rider
+.idea/
+*.sln.iml
\ No newline at end of file
diff --git a/94/94-1(VB.net)/2009-07-18_234657.png b/94/94-1(VB.net)/2009-07-18_234657.png
new file mode 100644
index 0000000..f53fa2d
Binary files /dev/null and b/94/94-1(VB.net)/2009-07-18_234657.png differ
diff --git "a/94/94-1(VB.net)/94-1/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.vbproj" "b/94/94-1(VB.net)/94-1/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.vbproj"
new file mode 100644
index 0000000..2dd8b79
--- /dev/null
+++ "b/94/94-1(VB.net)/94-1/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.vbproj"
@@ -0,0 +1,111 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {C622CA9E-BDCA-4FCB-A11A-20E9CCF9AF94}
+ WinExe
+ _94_1.My.MyApplication
+ _94_1
+ 94-1
+ 512
+ WindowsForms
+ v2.0
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 94-1.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 94-1.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/94/94-1(VB.net)/94-1/Form1.Designer.vb b/94/94-1(VB.net)/94-1/Form1.Designer.vb
new file mode 100644
index 0000000..2d8cf79
--- /dev/null
+++ b/94/94-1(VB.net)/94-1/Form1.Designer.vb
@@ -0,0 +1,73 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.Button1 = New System.Windows.Forms.Button
+ Me.InputBox = New System.Windows.Forms.TextBox
+ Me.OutputBox = New System.Windows.Forms.TextBox
+ Me.SuspendLayout()
+ '
+ 'Button1
+ '
+ Me.Button1.Location = New System.Drawing.Point(32, 38)
+ Me.Button1.Name = "Button1"
+ Me.Button1.Size = New System.Drawing.Size(75, 23)
+ Me.Button1.TabIndex = 0
+ Me.Button1.Text = "加密"
+ Me.Button1.UseVisualStyleBackColor = True
+ '
+ 'InputBox
+ '
+ Me.InputBox.Location = New System.Drawing.Point(12, 12)
+ Me.InputBox.Name = "InputBox"
+ Me.InputBox.Size = New System.Drawing.Size(450, 20)
+ Me.InputBox.TabIndex = 1
+ Me.InputBox.Text = "abcabcabcabc"
+ '
+ 'OutputBox
+ '
+ Me.OutputBox.Location = New System.Drawing.Point(12, 67)
+ Me.OutputBox.Name = "OutputBox"
+ Me.OutputBox.Size = New System.Drawing.Size(450, 20)
+ Me.OutputBox.TabIndex = 2
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(478, 95)
+ Me.Controls.Add(Me.OutputBox)
+ Me.Controls.Add(Me.InputBox)
+ Me.Controls.Add(Me.Button1)
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "94年工科技藝競賽第1題"
+ Me.ResumeLayout(False)
+ Me.PerformLayout()
+
+ End Sub
+ Friend WithEvents Button1 As System.Windows.Forms.Button
+ Friend WithEvents InputBox As System.Windows.Forms.TextBox
+ Friend WithEvents OutputBox As System.Windows.Forms.TextBox
+
+End Class
diff --git a/94/94-1(VB.net)/94-1/Form1.resx b/94/94-1(VB.net)/94-1/Form1.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/94/94-1(VB.net)/94-1/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/94/94-1(VB.net)/94-1/Form1.vb b/94/94-1(VB.net)/94-1/Form1.vb
new file mode 100644
index 0000000..8a5b4bf
--- /dev/null
+++ b/94/94-1(VB.net)/94-1/Form1.vb
@@ -0,0 +1,39 @@
+Public Class Form1
+ Dim StrAry() As String = {"a", "b", "c", "d", "f", "g", "h", "i", "j"}
+ Dim DataAry(,) As Integer = New Integer(,) {{1, 9, 12, 33, 47, 53, 67, 78, 92, 0, 0, 0, 0, 0}, _
+ {1, 48, 81, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, _
+ {1, 13, 41, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, _
+ {1, 1, 3, 45, 79, 0, 0, 0, 0, 0, 0, 0, 0, 0}, _
+ {1, 14, 16, 24, 44, 46, 55, 57, 64, 74, 82, 87, 98, 0}, _
+ {1, 10, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, _
+ {1, 6, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, _
+ {1, 23, 39, 50, 56, 65, 68, 0, 0, 0, 0, 0, 0, 0}, _
+ {1, 32, 70, 73, 83, 88, 93, 0, 0, 0, 0, 0, 0, 0}, _
+ {1, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
+
+ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
+ For i = 0 To 9
+ DataAry(i, 0) = 1
+ Next
+ Dim OutString As String = ""
+ For i = 1 To InputBox.Text.Length
+ OutString += Encoding(Mid(InputBox.Text, i, 1)) & " "
+ Next
+ OutputBox.Text = OutString
+ End Sub
+ Private Function Encoding(ByVal data As String) As String
+ Dim n As Integer = Asc(data) - 97
+ Dim index As Integer = DataAry(n, 0)
+ If DataAry(n, index) <> 0 Then
+ DataAry(n, 0) += 1
+ Encoding = Str(DataAry(n, index))
+ Else
+ DataAry(n, 0) = 2
+ Encoding = Str(DataAry(n, 1))
+ End If
+ Encoding = Trim(Encoding)
+ While Len(Encoding) < 2
+ Encoding = "0" & Encoding
+ End While
+ End Function
+End Class
diff --git a/94/94-1(VB.net)/94-1/My Project/Application.Designer.vb b/94/94-1(VB.net)/94-1/My Project/Application.Designer.vb
new file mode 100644
index 0000000..4fefe2e
--- /dev/null
+++ b/94/94-1(VB.net)/94-1/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._94_1.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/94/94-1(VB.net)/94-1/My Project/Application.myapp b/94/94-1(VB.net)/94-1/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/94/94-1(VB.net)/94-1/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/94/94-1(VB.net)/94-1/My Project/AssemblyInfo.vb b/94/94-1(VB.net)/94-1/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..0dddb61
--- /dev/null
+++ b/94/94-1(VB.net)/94-1/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/94/94-1(VB.net)/94-1/My Project/Resources.Designer.vb b/94/94-1(VB.net)/94-1/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..0f940ed
--- /dev/null
+++ b/94/94-1(VB.net)/94-1/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_94_1.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/94/94-1(VB.net)/94-1/My Project/Resources.resx b/94/94-1(VB.net)/94-1/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/94/94-1(VB.net)/94-1/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/94/94-1(VB.net)/94-1/My Project/Settings.Designer.vb b/94/94-1(VB.net)/94-1/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..b5ce865
--- /dev/null
+++ b/94/94-1(VB.net)/94-1/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ 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
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal 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
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global._94_1.My.MySettings
+ Get
+ Return Global._94_1.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/94/94-1(VB.net)/94-1/My Project/Settings.settings b/94/94-1(VB.net)/94-1/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/94/94-1(VB.net)/94-1/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git "a/94/94-1(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.sln" "b/94/94-1(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.sln"
new file mode 100644
index 0000000..977f2b2
--- /dev/null
+++ "b/94/94-1(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.sln"
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "94年工科技藝競賽第1題", "94-1\94年工科技藝競賽第1題.vbproj", "{C622CA9E-BDCA-4FCB-A11A-20E9CCF9AF94}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {C622CA9E-BDCA-4FCB-A11A-20E9CCF9AF94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C622CA9E-BDCA-4FCB-A11A-20E9CCF9AF94}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C622CA9E-BDCA-4FCB-A11A-20E9CCF9AF94}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C622CA9E-BDCA-4FCB-A11A-20E9CCF9AF94}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/94/94-2(VB.net)/2009-07-18_234629.png b/94/94-2(VB.net)/2009-07-18_234629.png
new file mode 100644
index 0000000..f5f1efe
Binary files /dev/null and b/94/94-2(VB.net)/2009-07-18_234629.png differ
diff --git "a/94/94-2(VB.net)/94-2/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.vbproj" "b/94/94-2(VB.net)/94-2/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.vbproj"
new file mode 100644
index 0000000..a05d01a
--- /dev/null
+++ "b/94/94-2(VB.net)/94-2/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.vbproj"
@@ -0,0 +1,111 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {D297D924-C891-4DA5-B032-399CA65A62AF}
+ WinExe
+ _94_2.My.MyApplication
+ _94_2
+ 94-2
+ 512
+ WindowsForms
+ v2.0
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 94-2.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 94-2.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/94/94-2(VB.net)/94-2/Form1.Designer.vb b/94/94-2(VB.net)/94-2/Form1.Designer.vb
new file mode 100644
index 0000000..a8efce7
--- /dev/null
+++ b/94/94-2(VB.net)/94-2/Form1.Designer.vb
@@ -0,0 +1,241 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.Button1 = New System.Windows.Forms.Button
+ Me.PictureBox1 = New System.Windows.Forms.PictureBox
+ Me.PictureBox2 = New System.Windows.Forms.PictureBox
+ Me.Button2 = New System.Windows.Forms.Button
+ Me.PictureBox4 = New System.Windows.Forms.PictureBox
+ Me.Button4 = New System.Windows.Forms.Button
+ Me.PictureBox3 = New System.Windows.Forms.PictureBox
+ Me.Button3 = New System.Windows.Forms.Button
+ Me.PictureBox5 = New System.Windows.Forms.PictureBox
+ Me.Button5 = New System.Windows.Forms.Button
+ Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog
+ Me.Label1 = New System.Windows.Forms.Label
+ Me.Label2 = New System.Windows.Forms.Label
+ Me.Label3 = New System.Windows.Forms.Label
+ Me.Label4 = New System.Windows.Forms.Label
+ Me.Label5 = New System.Windows.Forms.Label
+ CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
+ CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
+ CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).BeginInit()
+ CType(Me.PictureBox3, System.ComponentModel.ISupportInitialize).BeginInit()
+ CType(Me.PictureBox5, System.ComponentModel.ISupportInitialize).BeginInit()
+ Me.SuspendLayout()
+ '
+ 'Button1
+ '
+ Me.Button1.Location = New System.Drawing.Point(12, 12)
+ Me.Button1.Name = "Button1"
+ Me.Button1.Size = New System.Drawing.Size(75, 23)
+ Me.Button1.TabIndex = 0
+ Me.Button1.Text = "載入影像1"
+ Me.Button1.UseVisualStyleBackColor = True
+ '
+ 'PictureBox1
+ '
+ Me.PictureBox1.BackColor = System.Drawing.SystemColors.ActiveCaptionText
+ Me.PictureBox1.Location = New System.Drawing.Point(12, 41)
+ Me.PictureBox1.Name = "PictureBox1"
+ Me.PictureBox1.Size = New System.Drawing.Size(254, 212)
+ Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
+ Me.PictureBox1.TabIndex = 1
+ Me.PictureBox1.TabStop = False
+ '
+ 'PictureBox2
+ '
+ Me.PictureBox2.BackColor = System.Drawing.SystemColors.ActiveCaptionText
+ Me.PictureBox2.Location = New System.Drawing.Point(12, 288)
+ Me.PictureBox2.Name = "PictureBox2"
+ Me.PictureBox2.Size = New System.Drawing.Size(254, 212)
+ Me.PictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
+ Me.PictureBox2.TabIndex = 3
+ Me.PictureBox2.TabStop = False
+ '
+ 'Button2
+ '
+ Me.Button2.Location = New System.Drawing.Point(12, 259)
+ Me.Button2.Name = "Button2"
+ Me.Button2.Size = New System.Drawing.Size(75, 23)
+ Me.Button2.TabIndex = 2
+ Me.Button2.Text = "載入影像2"
+ Me.Button2.UseVisualStyleBackColor = True
+ '
+ 'PictureBox4
+ '
+ Me.PictureBox4.BackColor = System.Drawing.SystemColors.ActiveCaptionText
+ Me.PictureBox4.Location = New System.Drawing.Point(284, 288)
+ Me.PictureBox4.Name = "PictureBox4"
+ Me.PictureBox4.Size = New System.Drawing.Size(254, 212)
+ Me.PictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
+ Me.PictureBox4.TabIndex = 7
+ Me.PictureBox4.TabStop = False
+ '
+ 'Button4
+ '
+ Me.Button4.Location = New System.Drawing.Point(284, 259)
+ Me.Button4.Name = "Button4"
+ Me.Button4.Size = New System.Drawing.Size(107, 23)
+ Me.Button4.TabIndex = 6
+ Me.Button4.Text = "載入影像2灰階"
+ Me.Button4.UseVisualStyleBackColor = True
+ '
+ 'PictureBox3
+ '
+ Me.PictureBox3.BackColor = System.Drawing.SystemColors.ActiveCaptionText
+ Me.PictureBox3.Location = New System.Drawing.Point(284, 41)
+ Me.PictureBox3.Name = "PictureBox3"
+ Me.PictureBox3.Size = New System.Drawing.Size(254, 212)
+ Me.PictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
+ Me.PictureBox3.TabIndex = 5
+ Me.PictureBox3.TabStop = False
+ '
+ 'Button3
+ '
+ Me.Button3.Location = New System.Drawing.Point(284, 12)
+ Me.Button3.Name = "Button3"
+ Me.Button3.Size = New System.Drawing.Size(107, 23)
+ Me.Button3.TabIndex = 4
+ Me.Button3.Text = "載入影像1灰階"
+ Me.Button3.UseVisualStyleBackColor = True
+ '
+ 'PictureBox5
+ '
+ Me.PictureBox5.BackColor = System.Drawing.SystemColors.ActiveCaptionText
+ Me.PictureBox5.Location = New System.Drawing.Point(558, 177)
+ Me.PictureBox5.Name = "PictureBox5"
+ Me.PictureBox5.Size = New System.Drawing.Size(254, 212)
+ Me.PictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
+ Me.PictureBox5.TabIndex = 9
+ Me.PictureBox5.TabStop = False
+ '
+ 'Button5
+ '
+ Me.Button5.Location = New System.Drawing.Point(558, 148)
+ Me.Button5.Name = "Button5"
+ Me.Button5.Size = New System.Drawing.Size(110, 23)
+ Me.Button5.TabIndex = 8
+ Me.Button5.Text = "兩影像相減"
+ Me.Button5.UseVisualStyleBackColor = True
+ '
+ 'OpenFileDialog1
+ '
+ Me.OpenFileDialog1.FileName = "OpenFileDialog1"
+ '
+ 'Label1
+ '
+ Me.Label1.AutoSize = True
+ Me.Label1.Location = New System.Drawing.Point(229, 259)
+ Me.Label1.Name = "Label1"
+ Me.Label1.Size = New System.Drawing.Size(37, 13)
+ Me.Label1.TabIndex = 10
+ Me.Label1.Text = "(圖一)"
+ '
+ 'Label2
+ '
+ Me.Label2.AutoSize = True
+ Me.Label2.Location = New System.Drawing.Point(501, 259)
+ Me.Label2.Name = "Label2"
+ Me.Label2.Size = New System.Drawing.Size(37, 13)
+ Me.Label2.TabIndex = 11
+ Me.Label2.Text = "(圖三)"
+ '
+ 'Label3
+ '
+ Me.Label3.AutoSize = True
+ Me.Label3.Location = New System.Drawing.Point(229, 509)
+ Me.Label3.Name = "Label3"
+ Me.Label3.Size = New System.Drawing.Size(37, 13)
+ Me.Label3.TabIndex = 12
+ Me.Label3.Text = "(圖二)"
+ '
+ 'Label4
+ '
+ Me.Label4.AutoSize = True
+ Me.Label4.Location = New System.Drawing.Point(501, 509)
+ Me.Label4.Name = "Label4"
+ Me.Label4.Size = New System.Drawing.Size(37, 13)
+ Me.Label4.TabIndex = 13
+ Me.Label4.Text = "(圖四)"
+ '
+ 'Label5
+ '
+ Me.Label5.AutoSize = True
+ Me.Label5.Location = New System.Drawing.Point(775, 392)
+ Me.Label5.Name = "Label5"
+ Me.Label5.Size = New System.Drawing.Size(37, 13)
+ Me.Label5.TabIndex = 14
+ Me.Label5.Text = "(圖五)"
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(825, 531)
+ Me.Controls.Add(Me.Label5)
+ Me.Controls.Add(Me.Label4)
+ Me.Controls.Add(Me.Label3)
+ Me.Controls.Add(Me.Label2)
+ Me.Controls.Add(Me.Label1)
+ Me.Controls.Add(Me.PictureBox5)
+ Me.Controls.Add(Me.Button5)
+ Me.Controls.Add(Me.PictureBox4)
+ Me.Controls.Add(Me.Button4)
+ Me.Controls.Add(Me.PictureBox3)
+ Me.Controls.Add(Me.Button3)
+ Me.Controls.Add(Me.PictureBox2)
+ Me.Controls.Add(Me.Button2)
+ Me.Controls.Add(Me.PictureBox1)
+ Me.Controls.Add(Me.Button1)
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "94年工科技藝競賽第2題"
+ CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
+ CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
+ CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).EndInit()
+ CType(Me.PictureBox3, System.ComponentModel.ISupportInitialize).EndInit()
+ CType(Me.PictureBox5, System.ComponentModel.ISupportInitialize).EndInit()
+ Me.ResumeLayout(False)
+ Me.PerformLayout()
+
+ End Sub
+ Friend WithEvents Button1 As System.Windows.Forms.Button
+ Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
+ Friend WithEvents PictureBox2 As System.Windows.Forms.PictureBox
+ Friend WithEvents Button2 As System.Windows.Forms.Button
+ Friend WithEvents PictureBox4 As System.Windows.Forms.PictureBox
+ Friend WithEvents Button4 As System.Windows.Forms.Button
+ Friend WithEvents PictureBox3 As System.Windows.Forms.PictureBox
+ Friend WithEvents Button3 As System.Windows.Forms.Button
+ Friend WithEvents PictureBox5 As System.Windows.Forms.PictureBox
+ Friend WithEvents Button5 As System.Windows.Forms.Button
+ Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
+ Friend WithEvents Label1 As System.Windows.Forms.Label
+ Friend WithEvents Label2 As System.Windows.Forms.Label
+ Friend WithEvents Label3 As System.Windows.Forms.Label
+ Friend WithEvents Label4 As System.Windows.Forms.Label
+ Friend WithEvents Label5 As System.Windows.Forms.Label
+
+End Class
diff --git a/94/94-2(VB.net)/94-2/Form1.resx b/94/94-2(VB.net)/94-2/Form1.resx
new file mode 100644
index 0000000..710a648
--- /dev/null
+++ b/94/94-2(VB.net)/94-2/Form1.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/94/94-2(VB.net)/94-2/Form1.vb b/94/94-2(VB.net)/94-2/Form1.vb
new file mode 100644
index 0000000..9cd0151
--- /dev/null
+++ b/94/94-2(VB.net)/94-2/Form1.vb
@@ -0,0 +1,74 @@
+Public Class Form1
+ Dim MyBitmap(5) As Bitmap
+
+ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
+ OpenFileDialog1.Filter = "tif files|*.tif|png files|*.png|jpg files|*.jpg|bmp files|*.bmp"
+ If OpenFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
+ PictureBox1.ImageLocation = OpenFileDialog1.FileName
+ MyBitmap(1) = New Bitmap(OpenFileDialog1.FileName)
+ End If
+ End Sub
+
+ Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
+ OpenFileDialog1.Filter = "tif files|*.tif|png files|*.png|jpg files|*.jpg|bmp files|*.bmp"
+ If OpenFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
+ PictureBox2.ImageLocation = OpenFileDialog1.FileName
+ MyBitmap(2) = New Bitmap(OpenFileDialog1.FileName)
+ End If
+ End Sub
+
+ Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
+ MyBitmap(3) = New Bitmap(MyBitmap(1).Width, MyBitmap(1).Height)
+ Dim flagGraphics As Graphics = Graphics.FromImage(MyBitmap(3))
+ Dim pixelColor As Color
+ Dim MyPen As Pen = New Pen(pixelColor, 1.0F)
+ Dim ColorAvg As Integer
+ For i = 1 To MyBitmap(1).Width - 1
+ For j = 1 To MyBitmap(1).Height - 1
+ pixelColor = MyBitmap(1).GetPixel(i, j)
+ ColorAvg = (pixelColor.R / 3 + pixelColor.G / 3 + pixelColor.B / 3)
+ pixelColor = Color.FromArgb(ColorAvg, ColorAvg, ColorAvg)
+ MyPen.Color = pixelColor
+ flagGraphics.DrawLine(MyPen, i - 1, j, i + 1, j)
+ Next
+ Next
+ PictureBox3.Image = MyBitmap(3)
+ End Sub
+
+
+ Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
+ MyBitmap(4) = New Bitmap(MyBitmap(2).Width, MyBitmap(2).Height)
+ Dim flagGraphics As Graphics = Graphics.FromImage(MyBitmap(4))
+ Dim pixelColor As Color
+ Dim MyPen As Pen = New Pen(pixelColor, 1.0F)
+ Dim ColorAvg As Integer
+ For i = 1 To MyBitmap(2).Width - 1
+ For j = 1 To MyBitmap(2).Height - 1
+ pixelColor = MyBitmap(2).GetPixel(i, j)
+ ColorAvg = (pixelColor.R / 3 + pixelColor.G / 3 + pixelColor.B / 3)
+ pixelColor = Color.FromArgb(ColorAvg, ColorAvg, ColorAvg)
+ MyPen.Color = pixelColor
+ flagGraphics.DrawLine(MyPen, i - 1, j, i + 1, j)
+ Next
+ Next
+ PictureBox4.Image = MyBitmap(4)
+ End Sub
+
+ Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
+ MyBitmap(5) = New Bitmap(MyBitmap(3).Width, MyBitmap(3).Height)
+ Dim flagGraphics As Graphics = Graphics.FromImage(MyBitmap(5))
+ Dim pixelColor1, pixelColor2 As Color
+ Dim MyPen As Pen = New Pen(pixelColor1, 1.0F)
+ For i = 1 To MyBitmap(3).Width - 1
+ For j = 1 To MyBitmap(3).Height - 1
+ pixelColor1 = MyBitmap(3).GetPixel(i, j)
+ pixelColor2 = MyBitmap(4).GetPixel(i, j)
+ If pixelColor1 <> pixelColor2 Then
+ MyPen.Color = pixelColor1
+ flagGraphics.DrawLine(MyPen, i - 1, j, i + 1, j)
+ End If
+ Next
+ Next
+ PictureBox5.Image = MyBitmap(5)
+ End Sub
+End Class
diff --git a/94/94-2(VB.net)/94-2/My Project/Application.Designer.vb b/94/94-2(VB.net)/94-2/My Project/Application.Designer.vb
new file mode 100644
index 0000000..29ca5d0
--- /dev/null
+++ b/94/94-2(VB.net)/94-2/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._94_2.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/94/94-2(VB.net)/94-2/My Project/Application.myapp b/94/94-2(VB.net)/94-2/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/94/94-2(VB.net)/94-2/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/94/94-2(VB.net)/94-2/My Project/AssemblyInfo.vb b/94/94-2(VB.net)/94-2/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..fa70d84
--- /dev/null
+++ b/94/94-2(VB.net)/94-2/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/94/94-2(VB.net)/94-2/My Project/Resources.Designer.vb b/94/94-2(VB.net)/94-2/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..3b13d92
--- /dev/null
+++ b/94/94-2(VB.net)/94-2/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_94_2.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/94/94-2(VB.net)/94-2/My Project/Resources.resx b/94/94-2(VB.net)/94-2/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/94/94-2(VB.net)/94-2/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/94/94-2(VB.net)/94-2/My Project/Settings.Designer.vb b/94/94-2(VB.net)/94-2/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..8c201e2
--- /dev/null
+++ b/94/94-2(VB.net)/94-2/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ 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
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal 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
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global._94_2.My.MySettings
+ Get
+ Return Global._94_2.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/94/94-2(VB.net)/94-2/My Project/Settings.settings b/94/94-2(VB.net)/94-2/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/94/94-2(VB.net)/94-2/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git "a/94/94-2(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.sln" "b/94/94-2(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.sln"
new file mode 100644
index 0000000..b819bdb
--- /dev/null
+++ "b/94/94-2(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.sln"
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "94年工科技藝競賽第2題", "94-2\94年工科技藝競賽第2題.vbproj", "{D297D924-C891-4DA5-B032-399CA65A62AF}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {D297D924-C891-4DA5-B032-399CA65A62AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D297D924-C891-4DA5-B032-399CA65A62AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D297D924-C891-4DA5-B032-399CA65A62AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D297D924-C891-4DA5-B032-399CA65A62AF}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/94/94-2(VB.net)/pic.rar b/94/94-2(VB.net)/pic.rar
new file mode 100644
index 0000000..e846048
Binary files /dev/null and b/94/94-2(VB.net)/pic.rar differ
diff --git a/94/94-3(VB.net)/2009-07-18_234505.png b/94/94-3(VB.net)/2009-07-18_234505.png
new file mode 100644
index 0000000..7d75c31
Binary files /dev/null and b/94/94-3(VB.net)/2009-07-18_234505.png differ
diff --git "a/94/94-3(VB.net)/94-3/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.vbproj" "b/94/94-3(VB.net)/94-3/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.vbproj"
new file mode 100644
index 0000000..42d1fd4
--- /dev/null
+++ "b/94/94-3(VB.net)/94-3/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.vbproj"
@@ -0,0 +1,111 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {6328252B-F527-451D-8760-7C91951F2771}
+ WinExe
+ _94_3.My.MyApplication
+ _94_3
+ 94-3
+ 512
+ WindowsForms
+ v2.0
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 94-3.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 94-3.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/94/94-3(VB.net)/94-3/Form1.Designer.vb b/94/94-3(VB.net)/94-3/Form1.Designer.vb
new file mode 100644
index 0000000..498e76e
--- /dev/null
+++ b/94/94-3(VB.net)/94-3/Form1.Designer.vb
@@ -0,0 +1,56 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.OutputBox = New System.Windows.Forms.RichTextBox
+ Me.SuspendLayout()
+ '
+ 'OutputBox
+ '
+ Me.OutputBox.BackColor = System.Drawing.SystemColors.ActiveCaptionText
+ Me.OutputBox.Location = New System.Drawing.Point(0, 0)
+ Me.OutputBox.Name = "OutputBox"
+ Me.OutputBox.ReadOnly = True
+ Me.OutputBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None
+ Me.OutputBox.Size = New System.Drawing.Size(479, 358)
+ Me.OutputBox.TabIndex = 0
+ Me.OutputBox.Text = ""
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(471, 356)
+ Me.Controls.Add(Me.OutputBox)
+ Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
+ Me.KeyPreview = True
+ Me.MaximizeBox = False
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "94年工科技藝競賽第3題"
+ Me.ResumeLayout(False)
+
+ End Sub
+ Friend WithEvents OutputBox As System.Windows.Forms.RichTextBox
+
+End Class
diff --git a/94/94-3(VB.net)/94-3/Form1.resx b/94/94-3(VB.net)/94-3/Form1.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/94/94-3(VB.net)/94-3/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/94/94-3(VB.net)/94-3/Form1.vb b/94/94-3(VB.net)/94-3/Form1.vb
new file mode 100644
index 0000000..9b0e049
--- /dev/null
+++ b/94/94-3(VB.net)/94-3/Form1.vb
@@ -0,0 +1,101 @@
+Public Class Form1
+ Dim InputData As String = ""
+ Dim IsStrat As Boolean = False
+ Dim DataAry(8, 8) As Integer
+ Const HORSE As Integer = 38
+ Const NOWAY As Integer = 78
+ Dim HorseX, HorseY As Integer
+
+ Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
+ OutputBox.Text = "馬目前位置與一些障礙物:"
+ OutputBox.SelectionStart = OutputBox.TextLength
+ End Sub
+ Private Sub RichTextBox1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles OutputBox.GotFocus
+ Me.Focus()
+ End Sub
+
+ Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
+ Select Case e.KeyData
+ Case Keys.D0 To Keys.D7
+ InputData += Chr(e.KeyCode)
+ OutputBox.Text += Chr(e.KeyCode)
+ If IsStrat = True Then
+ OutputBox.Text += HandleData(Chr(e.KeyCode))
+ InputData = ""
+ OutputBox.Text += vbCrLf & "輸入移動數字鍵:"
+ End If
+ Case Keys.Space
+ InputData += " "
+ OutputBox.Text += " "
+ Case Keys.Enter
+ Try
+ If IsStrat = False Then
+ IsStrat = True
+ Dim stmp() As String = InputData.Split(" ")
+ HorseY = Val(stmp(0))
+ HorseX = Val(stmp(1))
+ For i = 2 To UBound(stmp) Step 2
+ DataAry(Val(stmp(i)), Val(stmp(i + 1))) = NOWAY
+ Next
+ OutputBox.Text += vbCrLf & "輸入移動數字鍵:"
+ End If
+ Catch ex As Exception
+ IsStrat = False
+ OutputBox.Text = "馬目前位置與一些障礙物:"
+ End Try
+ InputData = ""
+ Case Keys.Back
+ If InputData.Length > 0 Then
+ OutputBox.Text = Strings.Left(OutputBox.Text, OutputBox.TextLength - 1)
+ InputData = Strings.Left(InputData, InputData.Length - 1)
+ End If
+ Case Keys.D9
+ End
+ End Select
+ OutputBox.SelectionStart = OutputBox.TextLength
+ End Sub
+
+ Private Function HandleData(ByVal Data As String) As String
+ HandleData = vbCrLf & "馬移動到新位置:"
+ Select Case Data
+ Case "0"
+ HandleData += IsOK(2, 1, 1, 0)
+ Case "1"
+ HandleData += IsOK(2, -1, 1, 0)
+ Case "2"
+ HandleData += IsOK(1, -2, 0, -1)
+ Case "3"
+ HandleData += IsOK(-1, -2, 0, -1)
+ Case "4"
+ HandleData += IsOK(-2, -1, -1, 0)
+ Case "5"
+ HandleData += IsOK(-2, 1, -1, 0)
+ Case "6"
+ HandleData += IsOK(-1, 2, 0, 1)
+ Case "7"
+ HandleData += IsOK(1, 2, 0, 1)
+ End Select
+ End Function
+
+ Private Function IsOK(ByVal x As Integer, ByVal y As Integer, ByVal w As Integer, ByVal h As Integer) As String
+ If IsIn(x, y) Then
+ If DataAry(HorseY + h, HorseX + w) <> NOWAY Then '注意這題的x跟y的位置跟平常是相反的
+ HorseX += x
+ HorseY += y
+ DataAry(HorseY, HorseX) = 0
+ IsOK = Str(HorseY) & Str(HorseX)
+ Else
+ IsOK = Str(HorseY) & Str(HorseX) & "(因馬腳梱住而保持原座標)"
+ End If
+ Else
+ IsOK = Str(HorseY) & Str(HorseX) & "(因超出棋盤外而保持原座標)"
+ End If
+ End Function
+
+ Private Function IsIn(ByVal x As Integer, ByVal y As Integer) As Boolean
+ If HorseX + x > 8 Or HorseY + y > 8 Or HorseX + x < 1 Or HorseY + y < 1 Then
+ Return False
+ End If
+ Return True
+ End Function
+End Class
diff --git a/94/94-3(VB.net)/94-3/My Project/Application.Designer.vb b/94/94-3(VB.net)/94-3/My Project/Application.Designer.vb
new file mode 100644
index 0000000..0eeae8a
--- /dev/null
+++ b/94/94-3(VB.net)/94-3/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._94_3.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/94/94-3(VB.net)/94-3/My Project/Application.myapp b/94/94-3(VB.net)/94-3/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/94/94-3(VB.net)/94-3/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/94/94-3(VB.net)/94-3/My Project/AssemblyInfo.vb b/94/94-3(VB.net)/94-3/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..28db6c8
--- /dev/null
+++ b/94/94-3(VB.net)/94-3/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/94/94-3(VB.net)/94-3/My Project/Resources.Designer.vb b/94/94-3(VB.net)/94-3/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..af5d586
--- /dev/null
+++ b/94/94-3(VB.net)/94-3/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_94_3.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/94/94-3(VB.net)/94-3/My Project/Resources.resx b/94/94-3(VB.net)/94-3/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/94/94-3(VB.net)/94-3/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/94/94-3(VB.net)/94-3/My Project/Settings.Designer.vb b/94/94-3(VB.net)/94-3/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..1c2f504
--- /dev/null
+++ b/94/94-3(VB.net)/94-3/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ 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
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal 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
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global._94_3.My.MySettings
+ Get
+ Return Global._94_3.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/94/94-3(VB.net)/94-3/My Project/Settings.settings b/94/94-3(VB.net)/94-3/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/94/94-3(VB.net)/94-3/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git "a/94/94-3(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.sln" "b/94/94-3(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.sln"
new file mode 100644
index 0000000..7fa5512
--- /dev/null
+++ "b/94/94-3(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.sln"
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "94年工科技藝競賽第3題", "94-3\94年工科技藝競賽第3題.vbproj", "{6328252B-F527-451D-8760-7C91951F2771}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {6328252B-F527-451D-8760-7C91951F2771}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6328252B-F527-451D-8760-7C91951F2771}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6328252B-F527-451D-8760-7C91951F2771}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6328252B-F527-451D-8760-7C91951F2771}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/94/94-4(VB.net)/2009-07-19_120321.png b/94/94-4(VB.net)/2009-07-19_120321.png
new file mode 100644
index 0000000..bf145fe
Binary files /dev/null and b/94/94-4(VB.net)/2009-07-19_120321.png differ
diff --git "a/94/94-4(VB.net)/94-4/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.vbproj" "b/94/94-4(VB.net)/94-4/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.vbproj"
new file mode 100644
index 0000000..280347b
--- /dev/null
+++ "b/94/94-4(VB.net)/94-4/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.vbproj"
@@ -0,0 +1,122 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {196A7395-A0E0-4384-9446-82D494E5A4C6}
+ WinExe
+ _94_4.My.MyApplication
+ _94_4
+ 94-4
+ 512
+ WindowsForms
+ v3.5
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 94-4.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 94-4.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+ 3.5
+
+
+ 3.5
+
+
+ 3.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/94/94-4(VB.net)/94-4/Form1.Designer.vb b/94/94-4(VB.net)/94-4/Form1.Designer.vb
new file mode 100644
index 0000000..4526a47
--- /dev/null
+++ b/94/94-4(VB.net)/94-4/Form1.Designer.vb
@@ -0,0 +1,73 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.InputBox = New System.Windows.Forms.RichTextBox
+ Me.Button1 = New System.Windows.Forms.Button
+ Me.OutputBox = New System.Windows.Forms.RichTextBox
+ Me.SuspendLayout()
+ '
+ 'InputBox
+ '
+ Me.InputBox.Location = New System.Drawing.Point(12, 12)
+ Me.InputBox.Name = "InputBox"
+ Me.InputBox.Size = New System.Drawing.Size(195, 122)
+ Me.InputBox.TabIndex = 0
+ Me.InputBox.Text = "100 1/5 0.8" & Global.Microsoft.VisualBasic.ChrW(10) & "100 1/5 0.9" & Global.Microsoft.VisualBasic.ChrW(10) & "80 1/5 0.8" & Global.Microsoft.VisualBasic.ChrW(10) & "80 1/5 0.9"
+ '
+ 'Button1
+ '
+ Me.Button1.Location = New System.Drawing.Point(12, 140)
+ Me.Button1.Name = "Button1"
+ Me.Button1.Size = New System.Drawing.Size(75, 23)
+ Me.Button1.TabIndex = 1
+ Me.Button1.Text = "計算"
+ Me.Button1.UseVisualStyleBackColor = True
+ '
+ 'OutputBox
+ '
+ Me.OutputBox.Location = New System.Drawing.Point(12, 169)
+ Me.OutputBox.Name = "OutputBox"
+ Me.OutputBox.Size = New System.Drawing.Size(195, 122)
+ Me.OutputBox.TabIndex = 2
+ Me.OutputBox.Text = ""
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(220, 303)
+ Me.Controls.Add(Me.OutputBox)
+ Me.Controls.Add(Me.Button1)
+ Me.Controls.Add(Me.InputBox)
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "94年工科技藝競賽第4題"
+ Me.ResumeLayout(False)
+
+ End Sub
+ Friend WithEvents InputBox As System.Windows.Forms.RichTextBox
+ Friend WithEvents Button1 As System.Windows.Forms.Button
+ Friend WithEvents OutputBox As System.Windows.Forms.RichTextBox
+
+End Class
diff --git a/94/94-4(VB.net)/94-4/Form1.resx b/94/94-4(VB.net)/94-4/Form1.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/94/94-4(VB.net)/94-4/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/94/94-4(VB.net)/94-4/Form1.vb b/94/94-4(VB.net)/94-4/Form1.vb
new file mode 100644
index 0000000..cfe8cf0
--- /dev/null
+++ b/94/94-4(VB.net)/94-4/Form1.vb
@@ -0,0 +1,13 @@
+Public Class Form1
+
+ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
+ Dim DataAry() As String = InputBox.Text.Split(Chr(10))
+ Dim StrTmp(), StrTmp2() As String
+ OutputBox.Text = ""
+ For i = 0 To UBound(DataAry)
+ StrTmp = DataAry(i).Split(" ")
+ StrTmp2 = StrTmp(1).Split("/")
+ OutputBox.Text += Format(Val(StrTmp(0)) * Val(StrTmp2(0)) / Val(StrTmp2(1)) / Val(StrTmp(2)), "0") & vbCrLf
+ Next
+ End Sub
+End Class
diff --git a/94/94-4(VB.net)/94-4/My Project/Application.Designer.vb b/94/94-4(VB.net)/94-4/My Project/Application.Designer.vb
new file mode 100644
index 0000000..8b01da0
--- /dev/null
+++ b/94/94-4(VB.net)/94-4/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._94_4.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/94/94-4(VB.net)/94-4/My Project/Application.myapp b/94/94-4(VB.net)/94-4/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/94/94-4(VB.net)/94-4/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/94/94-4(VB.net)/94-4/My Project/AssemblyInfo.vb b/94/94-4(VB.net)/94-4/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..34fc933
--- /dev/null
+++ b/94/94-4(VB.net)/94-4/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/94/94-4(VB.net)/94-4/My Project/Resources.Designer.vb b/94/94-4(VB.net)/94-4/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..95fc4b0
--- /dev/null
+++ b/94/94-4(VB.net)/94-4/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_94_4.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/94/94-4(VB.net)/94-4/My Project/Resources.resx b/94/94-4(VB.net)/94-4/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/94/94-4(VB.net)/94-4/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/94/94-4(VB.net)/94-4/My Project/Settings.Designer.vb b/94/94-4(VB.net)/94-4/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..a8cea5a
--- /dev/null
+++ b/94/94-4(VB.net)/94-4/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ 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
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal 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
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global._94_4.My.MySettings
+ Get
+ Return Global._94_4.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/94/94-4(VB.net)/94-4/My Project/Settings.settings b/94/94-4(VB.net)/94-4/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/94/94-4(VB.net)/94-4/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git "a/94/94-4(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.sln" "b/94/94-4(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.sln"
new file mode 100644
index 0000000..d16f9b9
--- /dev/null
+++ "b/94/94-4(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.sln"
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "94年工科技藝競賽第4題", "94-4\94年工科技藝競賽第4題.vbproj", "{196A7395-A0E0-4384-9446-82D494E5A4C6}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {196A7395-A0E0-4384-9446-82D494E5A4C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {196A7395-A0E0-4384-9446-82D494E5A4C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {196A7395-A0E0-4384-9446-82D494E5A4C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {196A7395-A0E0-4384-9446-82D494E5A4C6}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/94/94-5(VB.net)/2009-07-19_120343.png b/94/94-5(VB.net)/2009-07-19_120343.png
new file mode 100644
index 0000000..01d254d
Binary files /dev/null and b/94/94-5(VB.net)/2009-07-19_120343.png differ
diff --git "a/94/94-5(VB.net)/94-5/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.vbproj" "b/94/94-5(VB.net)/94-5/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.vbproj"
new file mode 100644
index 0000000..f11e4d4
--- /dev/null
+++ "b/94/94-5(VB.net)/94-5/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.vbproj"
@@ -0,0 +1,122 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {96856CA0-EE5A-4ED8-9A6F-D3AD594D5D83}
+ WinExe
+ _94_5.My.MyApplication
+ _94_5
+ 94-5
+ 512
+ WindowsForms
+ v3.5
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 94-5.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 94-5.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+ 3.5
+
+
+ 3.5
+
+
+ 3.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/94/94-5(VB.net)/94-5/Form1.Designer.vb b/94/94-5(VB.net)/94-5/Form1.Designer.vb
new file mode 100644
index 0000000..9b73fb3
--- /dev/null
+++ b/94/94-5(VB.net)/94-5/Form1.Designer.vb
@@ -0,0 +1,100 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.InputBox = New System.Windows.Forms.TextBox
+ Me.Label1 = New System.Windows.Forms.Label
+ Me.Button1 = New System.Windows.Forms.Button
+ Me.OutputBox = New System.Windows.Forms.RichTextBox
+ Me.Label2 = New System.Windows.Forms.Label
+ Me.SuspendLayout()
+ '
+ 'InputBox
+ '
+ Me.InputBox.Font = New System.Drawing.Font("Courier New", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.InputBox.Location = New System.Drawing.Point(156, 23)
+ Me.InputBox.MaxLength = 3
+ Me.InputBox.Name = "InputBox"
+ Me.InputBox.Size = New System.Drawing.Size(63, 29)
+ Me.InputBox.TabIndex = 0
+ '
+ 'Label1
+ '
+ Me.Label1.AutoSize = True
+ Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Label1.Location = New System.Drawing.Point(48, 23)
+ Me.Label1.Name = "Label1"
+ Me.Label1.Size = New System.Drawing.Size(116, 20)
+ Me.Label1.TabIndex = 1
+ Me.Label1.Text = "輸入一整數N:"
+ '
+ 'Button1
+ '
+ Me.Button1.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.Button1.Location = New System.Drawing.Point(240, 23)
+ Me.Button1.Name = "Button1"
+ Me.Button1.Size = New System.Drawing.Size(75, 32)
+ Me.Button1.TabIndex = 2
+ Me.Button1.Text = "作答鈕"
+ Me.Button1.UseVisualStyleBackColor = True
+ '
+ 'OutputBox
+ '
+ Me.OutputBox.Font = New System.Drawing.Font("Courier New", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
+ Me.OutputBox.Location = New System.Drawing.Point(12, 62)
+ Me.OutputBox.Name = "OutputBox"
+ Me.OutputBox.Size = New System.Drawing.Size(343, 199)
+ Me.OutputBox.TabIndex = 3
+ Me.OutputBox.Text = ""
+ '
+ 'Label2
+ '
+ Me.Label2.Location = New System.Drawing.Point(213, 7)
+ Me.Label2.Name = "Label2"
+ Me.Label2.Size = New System.Drawing.Size(155, 23)
+ Me.Label2.TabIndex = 4
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(367, 273)
+ Me.Controls.Add(Me.InputBox)
+ Me.Controls.Add(Me.Button1)
+ Me.Controls.Add(Me.Label2)
+ Me.Controls.Add(Me.OutputBox)
+ Me.Controls.Add(Me.Label1)
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "94年工科技藝競賽第5題"
+ Me.ResumeLayout(False)
+ Me.PerformLayout()
+
+ End Sub
+ Friend WithEvents InputBox As System.Windows.Forms.TextBox
+ Friend WithEvents Label1 As System.Windows.Forms.Label
+ Friend WithEvents Button1 As System.Windows.Forms.Button
+ Friend WithEvents OutputBox As System.Windows.Forms.RichTextBox
+ Friend WithEvents Label2 As System.Windows.Forms.Label
+
+End Class
diff --git a/94/94-5(VB.net)/94-5/Form1.resx b/94/94-5(VB.net)/94-5/Form1.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/94/94-5(VB.net)/94-5/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/94/94-5(VB.net)/94-5/Form1.vb b/94/94-5(VB.net)/94-5/Form1.vb
new file mode 100644
index 0000000..697b491
--- /dev/null
+++ b/94/94-5(VB.net)/94-5/Form1.vb
@@ -0,0 +1,33 @@
+Public Class Form1
+ Dim ErrorTotal As Integer = 0
+
+ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
+ Dim InNumber As Integer = Val(InputBox.Text)
+ OutputBox.Text = ""
+ Label2.Text = ""
+ If InputBox.Text = "***" Then
+ ErrorTotal = 0
+ InputBox.ForeColor = Color.Black
+ InputBox.Text = ""
+ ElseIf ErrorTotal > 3 Then
+ InputBox.ForeColor = Color.Red
+ InputBox.Text = " ???"
+ Label2.Text = "輸入錯誤超過3次"
+ ElseIf InNumber < 1 Or InNumber > 10 Then
+ Label2.Text = "輸入錯誤"
+ ErrorTotal += 1
+ If ErrorTotal > 3 Then
+ Button1.PerformClick
+ End If
+ Else
+ For i = 1 To InNumber
+ OutputBox.Text += Strings.StrDup(InNumber - i, " ")
+ OutputBox.Text += Str(InNumber - i + 1)
+ For j = 2 To i
+ OutputBox.Text += " 1"
+ Next
+ OutputBox.Text += vbCrLf
+ Next
+ End If
+ End Sub
+End Class
diff --git a/94/94-5(VB.net)/94-5/My Project/Application.Designer.vb b/94/94-5(VB.net)/94-5/My Project/Application.Designer.vb
new file mode 100644
index 0000000..aba99dc
--- /dev/null
+++ b/94/94-5(VB.net)/94-5/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._94_5.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/94/94-5(VB.net)/94-5/My Project/Application.myapp b/94/94-5(VB.net)/94-5/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/94/94-5(VB.net)/94-5/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/94/94-5(VB.net)/94-5/My Project/AssemblyInfo.vb b/94/94-5(VB.net)/94-5/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..faf8800
--- /dev/null
+++ b/94/94-5(VB.net)/94-5/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/94/94-5(VB.net)/94-5/My Project/Resources.Designer.vb b/94/94-5(VB.net)/94-5/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..99fd20b
--- /dev/null
+++ b/94/94-5(VB.net)/94-5/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_94_5.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/94/94-5(VB.net)/94-5/My Project/Resources.resx b/94/94-5(VB.net)/94-5/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/94/94-5(VB.net)/94-5/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/94/94-5(VB.net)/94-5/My Project/Settings.Designer.vb b/94/94-5(VB.net)/94-5/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..900cb42
--- /dev/null
+++ b/94/94-5(VB.net)/94-5/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ 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
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal 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
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global._94_5.My.MySettings
+ Get
+ Return Global._94_5.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/94/94-5(VB.net)/94-5/My Project/Settings.settings b/94/94-5(VB.net)/94-5/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/94/94-5(VB.net)/94-5/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git "a/94/94-5(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.sln" "b/94/94-5(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.sln"
new file mode 100644
index 0000000..91b0c22
--- /dev/null
+++ "b/94/94-5(VB.net)/94\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.sln"
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "94年工科技藝競賽第5題", "94-5\94年工科技藝競賽第5題.vbproj", "{96856CA0-EE5A-4ED8-9A6F-D3AD594D5D83}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {96856CA0-EE5A-4ED8-9A6F-D3AD594D5D83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {96856CA0-EE5A-4ED8-9A6F-D3AD594D5D83}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {96856CA0-EE5A-4ED8-9A6F-D3AD594D5D83}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {96856CA0-EE5A-4ED8-9A6F-D3AD594D5D83}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/95/95-1(VB.net)/2009-07-18_235523.png b/95/95-1(VB.net)/2009-07-18_235523.png
new file mode 100644
index 0000000..ce1bd23
Binary files /dev/null and b/95/95-1(VB.net)/2009-07-18_235523.png differ
diff --git "a/95/95-1(VB.net)/95-1/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.vbproj" "b/95/95-1(VB.net)/95-1/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.vbproj"
new file mode 100644
index 0000000..b4fdd9b
--- /dev/null
+++ "b/95/95-1(VB.net)/95-1/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.vbproj"
@@ -0,0 +1,111 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {6ABD4D82-AC41-4D0D-84F0-C1827DCF4A88}
+ WinExe
+ _95_1.My.MyApplication
+ _95_1
+ 95-1
+ 512
+ WindowsForms
+ v2.0
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 95-1.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 95-1.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/95/95-1(VB.net)/95-1/Form1.Designer.vb b/95/95-1(VB.net)/95-1/Form1.Designer.vb
new file mode 100644
index 0000000..b7206de
--- /dev/null
+++ b/95/95-1(VB.net)/95-1/Form1.Designer.vb
@@ -0,0 +1,99 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.Button1 = New System.Windows.Forms.Button
+ Me.Label1 = New System.Windows.Forms.Label
+ Me.InputBox = New System.Windows.Forms.TextBox
+ Me.OutputBox1 = New System.Windows.Forms.Label
+ Me.OutputBox2 = New System.Windows.Forms.Label
+ Me.SuspendLayout()
+ '
+ 'Button1
+ '
+ Me.Button1.Location = New System.Drawing.Point(51, 65)
+ Me.Button1.Name = "Button1"
+ Me.Button1.Size = New System.Drawing.Size(422, 23)
+ Me.Button1.TabIndex = 0
+ Me.Button1.Text = "計算及產生質數個數"
+ Me.Button1.UseVisualStyleBackColor = True
+ '
+ 'Label1
+ '
+ Me.Label1.AutoSize = True
+ Me.Label1.Location = New System.Drawing.Point(72, 29)
+ Me.Label1.Name = "Label1"
+ Me.Label1.Size = New System.Drawing.Size(91, 13)
+ Me.Label1.TabIndex = 1
+ Me.Label1.Text = "請輸入一正整數"
+ '
+ 'InputBox
+ '
+ Me.InputBox.Location = New System.Drawing.Point(210, 25)
+ Me.InputBox.Name = "InputBox"
+ Me.InputBox.Size = New System.Drawing.Size(100, 20)
+ Me.InputBox.TabIndex = 2
+ Me.InputBox.Text = "10000"
+ '
+ 'OutputBox1
+ '
+ Me.OutputBox1.AutoSize = True
+ Me.OutputBox1.Location = New System.Drawing.Point(72, 106)
+ Me.OutputBox1.Name = "OutputBox1"
+ Me.OutputBox1.Size = New System.Drawing.Size(67, 13)
+ Me.OutputBox1.TabIndex = 3
+ Me.OutputBox1.Text = "質數個數有"
+ '
+ 'OutputBox2
+ '
+ Me.OutputBox2.AutoSize = True
+ Me.OutputBox2.Location = New System.Drawing.Point(72, 137)
+ Me.OutputBox2.Name = "OutputBox2"
+ Me.OutputBox2.Size = New System.Drawing.Size(97, 13)
+ Me.OutputBox2.TabIndex = 4
+ Me.OutputBox2.Text = "最大的3個質數是"
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(538, 188)
+ Me.Controls.Add(Me.OutputBox2)
+ Me.Controls.Add(Me.OutputBox1)
+ Me.Controls.Add(Me.InputBox)
+ Me.Controls.Add(Me.Label1)
+ Me.Controls.Add(Me.Button1)
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "95年工科技藝競賽第1題"
+ Me.ResumeLayout(False)
+ Me.PerformLayout()
+
+ End Sub
+ Friend WithEvents Button1 As System.Windows.Forms.Button
+ Friend WithEvents Label1 As System.Windows.Forms.Label
+ Friend WithEvents InputBox As System.Windows.Forms.TextBox
+ Friend WithEvents OutputBox1 As System.Windows.Forms.Label
+ Friend WithEvents OutputBox2 As System.Windows.Forms.Label
+
+End Class
diff --git a/95/95-1(VB.net)/95-1/Form1.resx b/95/95-1(VB.net)/95-1/Form1.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/95/95-1(VB.net)/95-1/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-1(VB.net)/95-1/Form1.vb b/95/95-1(VB.net)/95-1/Form1.vb
new file mode 100644
index 0000000..b1d4107
--- /dev/null
+++ b/95/95-1(VB.net)/95-1/Form1.vb
@@ -0,0 +1,36 @@
+Public Class Form1
+
+ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
+ Dim input As Long = Val(InputBox.Text)
+ Dim Max As Integer = 0
+ For i = 2 To input
+ If IsPrime(i) Then
+ Max += 1
+ End If
+ Next
+ OutputBox1.Text = "質數個數有 " & Str(Max) & " 個"
+ Dim prime(3), Num As Long
+ Num = 0
+ OutputBox2.Text = ""
+ For i = input To 2 Step -1
+ If IsPrime(i) Then
+ Num += 1
+ OutputBox2.Text = Str(i) & OutputBox2.Text
+ If Num = 3 Then
+ Exit For
+ End If
+ End If
+ Next
+ OutputBox2.Text = "最大的3個質數是 " & OutputBox2.Text
+
+ End Sub
+ Private Function IsPrime(ByVal n As Long) As Boolean
+ If n = 2 Or n = 3 Then Return True
+ Dim sqrtn = Math.Sqrt(n)
+ For i = 2 To sqrtn
+ If n Mod i = 0 Then Return False
+ Next
+ Return True
+ End Function
+
+End Class
diff --git a/95/95-1(VB.net)/95-1/My Project/Application.Designer.vb b/95/95-1(VB.net)/95-1/My Project/Application.Designer.vb
new file mode 100644
index 0000000..37927ef
--- /dev/null
+++ b/95/95-1(VB.net)/95-1/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._95_1.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/95/95-1(VB.net)/95-1/My Project/Application.myapp b/95/95-1(VB.net)/95-1/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/95/95-1(VB.net)/95-1/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/95/95-1(VB.net)/95-1/My Project/AssemblyInfo.vb b/95/95-1(VB.net)/95-1/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..71eb253
--- /dev/null
+++ b/95/95-1(VB.net)/95-1/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/95/95-1(VB.net)/95-1/My Project/Resources.Designer.vb b/95/95-1(VB.net)/95-1/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..f1b6f1e
--- /dev/null
+++ b/95/95-1(VB.net)/95-1/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_95_1.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-1(VB.net)/95-1/My Project/Resources.resx b/95/95-1(VB.net)/95-1/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/95/95-1(VB.net)/95-1/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-1(VB.net)/95-1/My Project/Settings.Designer.vb b/95/95-1(VB.net)/95-1/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..d08776c
--- /dev/null
+++ b/95/95-1(VB.net)/95-1/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ 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
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal 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
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global._95_1.My.MySettings
+ Get
+ Return Global._95_1.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-1(VB.net)/95-1/My Project/Settings.settings b/95/95-1(VB.net)/95-1/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/95/95-1(VB.net)/95-1/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git "a/95/95-1(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.sln" "b/95/95-1(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.sln"
new file mode 100644
index 0000000..e549993
--- /dev/null
+++ "b/95/95-1(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2541\351\241\214.sln"
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "95年工科技藝競賽第1題", "95-1\95年工科技藝競賽第1題.vbproj", "{6ABD4D82-AC41-4D0D-84F0-C1827DCF4A88}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {6ABD4D82-AC41-4D0D-84F0-C1827DCF4A88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6ABD4D82-AC41-4D0D-84F0-C1827DCF4A88}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6ABD4D82-AC41-4D0D-84F0-C1827DCF4A88}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6ABD4D82-AC41-4D0D-84F0-C1827DCF4A88}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/95/95-2(VB.net)/2009-07-18_235504.png b/95/95-2(VB.net)/2009-07-18_235504.png
new file mode 100644
index 0000000..13ce99a
Binary files /dev/null and b/95/95-2(VB.net)/2009-07-18_235504.png differ
diff --git "a/95/95-2(VB.net)/95-2/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.vbproj" "b/95/95-2(VB.net)/95-2/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.vbproj"
new file mode 100644
index 0000000..078d8ff
--- /dev/null
+++ "b/95/95-2(VB.net)/95-2/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.vbproj"
@@ -0,0 +1,111 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {E3CA8DC2-AD2E-4A12-8C9F-536F061C97A2}
+ WinExe
+ _95_2.My.MyApplication
+ _95_2
+ 95-2
+ 512
+ WindowsForms
+ v2.0
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 95-2.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 95-2.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/95/95-2(VB.net)/95-2/Form1.Designer.vb b/95/95-2(VB.net)/95-2/Form1.Designer.vb
new file mode 100644
index 0000000..6edd3b8
--- /dev/null
+++ b/95/95-2(VB.net)/95-2/Form1.Designer.vb
@@ -0,0 +1,97 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.InputBox = New System.Windows.Forms.TextBox
+ Me.Button1 = New System.Windows.Forms.Button
+ Me.OutputBox = New System.Windows.Forms.TextBox
+ Me.Label1 = New System.Windows.Forms.Label
+ Me.Label2 = New System.Windows.Forms.Label
+ Me.SuspendLayout()
+ '
+ 'InputBox
+ '
+ Me.InputBox.Location = New System.Drawing.Point(97, 12)
+ Me.InputBox.Name = "InputBox"
+ Me.InputBox.Size = New System.Drawing.Size(711, 20)
+ Me.InputBox.TabIndex = 0
+ Me.InputBox.Text = "1101101011"
+ '
+ 'Button1
+ '
+ Me.Button1.Location = New System.Drawing.Point(97, 38)
+ Me.Button1.Name = "Button1"
+ Me.Button1.Size = New System.Drawing.Size(246, 23)
+ Me.Button1.TabIndex = 1
+ Me.Button1.Text = "產生漢明碼"
+ Me.Button1.UseVisualStyleBackColor = True
+ '
+ 'OutputBox
+ '
+ Me.OutputBox.Location = New System.Drawing.Point(97, 67)
+ Me.OutputBox.Name = "OutputBox"
+ Me.OutputBox.Size = New System.Drawing.Size(711, 20)
+ Me.OutputBox.TabIndex = 2
+ '
+ 'Label1
+ '
+ Me.Label1.AutoSize = True
+ Me.Label1.Location = New System.Drawing.Point(12, 12)
+ Me.Label1.Name = "Label1"
+ Me.Label1.Size = New System.Drawing.Size(79, 13)
+ Me.Label1.TabIndex = 3
+ Me.Label1.Text = "要計算的訊息"
+ '
+ 'Label2
+ '
+ Me.Label2.AutoSize = True
+ Me.Label2.Location = New System.Drawing.Point(24, 70)
+ Me.Label2.Name = "Label2"
+ Me.Label2.Size = New System.Drawing.Size(67, 13)
+ Me.Label2.TabIndex = 4
+ Me.Label2.Text = "產生的訊息"
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(820, 105)
+ Me.Controls.Add(Me.Label2)
+ Me.Controls.Add(Me.Label1)
+ Me.Controls.Add(Me.OutputBox)
+ Me.Controls.Add(Me.Button1)
+ Me.Controls.Add(Me.InputBox)
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "95年工科技藝競賽第2題"
+ Me.ResumeLayout(False)
+ Me.PerformLayout()
+
+ End Sub
+ Friend WithEvents InputBox As System.Windows.Forms.TextBox
+ Friend WithEvents Button1 As System.Windows.Forms.Button
+ Friend WithEvents OutputBox As System.Windows.Forms.TextBox
+ Friend WithEvents Label1 As System.Windows.Forms.Label
+ Friend WithEvents Label2 As System.Windows.Forms.Label
+
+End Class
diff --git a/95/95-2(VB.net)/95-2/Form1.resx b/95/95-2(VB.net)/95-2/Form1.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/95/95-2(VB.net)/95-2/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-2(VB.net)/95-2/Form1.vb b/95/95-2(VB.net)/95-2/Form1.vb
new file mode 100644
index 0000000..c42ef61
--- /dev/null
+++ b/95/95-2(VB.net)/95-2/Form1.vb
@@ -0,0 +1,65 @@
+Public Class Form1
+
+ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
+ Dim N As Integer = InputBox.Text.Length
+ Dim K As Integer = 1
+ While True
+ If 2 ^ K >= N + K + 1 Then
+ Exit While
+ End If
+ K += 1
+ End While
+ Dim XorNum As Integer = 0
+ Dim OnFirst As Boolean = True
+ Dim Outputs As String = InputBox.Text
+ For i = 1 To K
+ If i <= 2 Then
+ Outputs += "A"
+ Else
+ Insert(Outputs, 2 ^ (i - 1) - 1, "A")
+ End If
+ Next
+ N = Outputs.Length
+ For i = 1 To N
+ If Mid(Outputs, i, 1) = "1" Then
+ If OnFirst = True Then
+ OnFirst = False
+ XorNum = N - i + 1
+ Else
+ XorNum = XorNum Xor (N - i + 1)
+ End If
+ End If
+ Next
+ Dim Humming As String = ToBinary(XorNum, K)
+ Outputs = InputBox.Text
+ For i = 1 To K
+ Insert(Outputs, 2 ^ (i - 1) - 1, Mid(Humming, Humming.Length - i + 1, 1))
+ Next
+ OutputBox.Text = Outputs
+ End Sub
+
+ Private Sub Insert(ByRef s As String, ByVal a As Integer, ByVal ins As String)
+ If a = 0 Then
+ s += ins
+ Exit Sub
+ End If
+ Dim s1 As String = Mid(s, 1, s.Length - a)
+ Dim s2 As String = Mid(s, s.Length - a + 1)
+ s = s1 & ins & s2
+ End Sub
+
+ Private Function ToBinary(ByVal a As Integer, ByVal lens As Integer)
+ ToBinary = ""
+ While a > 0
+ If a Mod 2 = 0 Then
+ ToBinary = "0" & ToBinary
+ Else
+ ToBinary = "1" & ToBinary
+ End If
+ a \= 2
+ End While
+ While Len(ToBinary) < lens
+ ToBinary = "0" & ToBinary
+ End While
+ End Function
+End Class
diff --git a/95/95-2(VB.net)/95-2/My Project/Application.Designer.vb b/95/95-2(VB.net)/95-2/My Project/Application.Designer.vb
new file mode 100644
index 0000000..676f227
--- /dev/null
+++ b/95/95-2(VB.net)/95-2/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._95_2.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/95/95-2(VB.net)/95-2/My Project/Application.myapp b/95/95-2(VB.net)/95-2/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/95/95-2(VB.net)/95-2/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/95/95-2(VB.net)/95-2/My Project/AssemblyInfo.vb b/95/95-2(VB.net)/95-2/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..da87386
--- /dev/null
+++ b/95/95-2(VB.net)/95-2/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/95/95-2(VB.net)/95-2/My Project/Resources.Designer.vb b/95/95-2(VB.net)/95-2/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..f1efd76
--- /dev/null
+++ b/95/95-2(VB.net)/95-2/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_95_2.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-2(VB.net)/95-2/My Project/Resources.resx b/95/95-2(VB.net)/95-2/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/95/95-2(VB.net)/95-2/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-2(VB.net)/95-2/My Project/Settings.Designer.vb b/95/95-2(VB.net)/95-2/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..6829b1c
--- /dev/null
+++ b/95/95-2(VB.net)/95-2/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ 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
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal 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
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global._95_2.My.MySettings
+ Get
+ Return Global._95_2.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-2(VB.net)/95-2/My Project/Settings.settings b/95/95-2(VB.net)/95-2/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/95/95-2(VB.net)/95-2/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git "a/95/95-2(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.sln" "b/95/95-2(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.sln"
new file mode 100644
index 0000000..e7b005c
--- /dev/null
+++ "b/95/95-2(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2542\351\241\214.sln"
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "95年工科技藝競賽第2題", "95-2\95年工科技藝競賽第2題.vbproj", "{E3CA8DC2-AD2E-4A12-8C9F-536F061C97A2}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {E3CA8DC2-AD2E-4A12-8C9F-536F061C97A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E3CA8DC2-AD2E-4A12-8C9F-536F061C97A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E3CA8DC2-AD2E-4A12-8C9F-536F061C97A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E3CA8DC2-AD2E-4A12-8C9F-536F061C97A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/95/95-3(VB.net)/2009-07-18_235432.png b/95/95-3(VB.net)/2009-07-18_235432.png
new file mode 100644
index 0000000..6fda2a7
Binary files /dev/null and b/95/95-3(VB.net)/2009-07-18_235432.png differ
diff --git "a/95/95-3(VB.net)/95-3/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.vbproj" "b/95/95-3(VB.net)/95-3/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.vbproj"
new file mode 100644
index 0000000..d05a365
--- /dev/null
+++ "b/95/95-3(VB.net)/95-3/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.vbproj"
@@ -0,0 +1,111 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {66D7B3E5-5FDD-449F-9AE6-4BD013BB9C01}
+ WinExe
+ _95_3.My.MyApplication
+ _95_3
+ 95-3
+ 512
+ WindowsForms
+ v2.0
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 95-3.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 95-3.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/95/95-3(VB.net)/95-3/Form1.Designer.vb b/95/95-3(VB.net)/95-3/Form1.Designer.vb
new file mode 100644
index 0000000..8dc9d63
--- /dev/null
+++ b/95/95-3(VB.net)/95-3/Form1.Designer.vb
@@ -0,0 +1,132 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.GroupBox1 = New System.Windows.Forms.GroupBox
+ Me.RadioCos = New System.Windows.Forms.RadioButton
+ Me.RadioSin = New System.Windows.Forms.RadioButton
+ Me.Button1 = New System.Windows.Forms.Button
+ Me.Button2 = New System.Windows.Forms.Button
+ Me.Button3 = New System.Windows.Forms.Button
+ Me.OutputBox = New System.Windows.Forms.PictureBox
+ Me.GroupBox1.SuspendLayout()
+ CType(Me.OutputBox, System.ComponentModel.ISupportInitialize).BeginInit()
+ Me.SuspendLayout()
+ '
+ 'GroupBox1
+ '
+ Me.GroupBox1.Controls.Add(Me.RadioCos)
+ Me.GroupBox1.Controls.Add(Me.RadioSin)
+ Me.GroupBox1.Location = New System.Drawing.Point(12, 285)
+ Me.GroupBox1.Name = "GroupBox1"
+ Me.GroupBox1.Size = New System.Drawing.Size(222, 49)
+ Me.GroupBox1.TabIndex = 0
+ Me.GroupBox1.TabStop = False
+ Me.GroupBox1.Text = "函數圖形"
+ '
+ 'RadioCos
+ '
+ Me.RadioCos.AutoSize = True
+ Me.RadioCos.Location = New System.Drawing.Point(117, 19)
+ Me.RadioCos.Name = "RadioCos"
+ Me.RadioCos.Size = New System.Drawing.Size(91, 17)
+ Me.RadioCos.TabIndex = 1
+ Me.RadioCos.TabStop = True
+ Me.RadioCos.Text = "Cos函數圖形"
+ Me.RadioCos.UseVisualStyleBackColor = True
+ '
+ 'RadioSin
+ '
+ Me.RadioSin.AutoSize = True
+ Me.RadioSin.Location = New System.Drawing.Point(21, 19)
+ Me.RadioSin.Name = "RadioSin"
+ Me.RadioSin.Size = New System.Drawing.Size(88, 17)
+ Me.RadioSin.TabIndex = 0
+ Me.RadioSin.TabStop = True
+ Me.RadioSin.Text = "Sin函數圖形"
+ Me.RadioSin.UseVisualStyleBackColor = True
+ '
+ 'Button1
+ '
+ Me.Button1.Location = New System.Drawing.Point(277, 285)
+ Me.Button1.Name = "Button1"
+ Me.Button1.Size = New System.Drawing.Size(75, 23)
+ Me.Button1.TabIndex = 1
+ Me.Button1.Text = "畫出"
+ Me.Button1.UseVisualStyleBackColor = True
+ '
+ 'Button2
+ '
+ Me.Button2.Location = New System.Drawing.Point(358, 285)
+ Me.Button2.Name = "Button2"
+ Me.Button2.Size = New System.Drawing.Size(75, 23)
+ Me.Button2.TabIndex = 2
+ Me.Button2.Text = "清除"
+ Me.Button2.UseVisualStyleBackColor = True
+ '
+ 'Button3
+ '
+ Me.Button3.Location = New System.Drawing.Point(439, 285)
+ Me.Button3.Name = "Button3"
+ Me.Button3.Size = New System.Drawing.Size(75, 23)
+ Me.Button3.TabIndex = 3
+ Me.Button3.Text = "結束"
+ Me.Button3.UseVisualStyleBackColor = True
+ '
+ 'OutputBox
+ '
+ Me.OutputBox.BackColor = System.Drawing.SystemColors.ActiveCaptionText
+ Me.OutputBox.Location = New System.Drawing.Point(12, 12)
+ Me.OutputBox.Name = "OutputBox"
+ Me.OutputBox.Size = New System.Drawing.Size(502, 254)
+ Me.OutputBox.TabIndex = 4
+ Me.OutputBox.TabStop = False
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(536, 347)
+ Me.Controls.Add(Me.OutputBox)
+ Me.Controls.Add(Me.Button3)
+ Me.Controls.Add(Me.Button2)
+ Me.Controls.Add(Me.Button1)
+ Me.Controls.Add(Me.GroupBox1)
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "95年工科技藝競賽第3題"
+ Me.GroupBox1.ResumeLayout(False)
+ Me.GroupBox1.PerformLayout()
+ CType(Me.OutputBox, System.ComponentModel.ISupportInitialize).EndInit()
+ Me.ResumeLayout(False)
+
+ End Sub
+ Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
+ Friend WithEvents RadioCos As System.Windows.Forms.RadioButton
+ Friend WithEvents RadioSin As System.Windows.Forms.RadioButton
+ Friend WithEvents Button1 As System.Windows.Forms.Button
+ Friend WithEvents Button2 As System.Windows.Forms.Button
+ Friend WithEvents Button3 As System.Windows.Forms.Button
+ Friend WithEvents OutputBox As System.Windows.Forms.PictureBox
+
+End Class
diff --git a/95/95-3(VB.net)/95-3/Form1.resx b/95/95-3(VB.net)/95-3/Form1.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/95/95-3(VB.net)/95-3/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-3(VB.net)/95-3/Form1.vb b/95/95-3(VB.net)/95-3/Form1.vb
new file mode 100644
index 0000000..0649a33
--- /dev/null
+++ b/95/95-3(VB.net)/95-3/Form1.vb
@@ -0,0 +1,41 @@
+Public Class Form1
+
+ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
+ Dim g As Graphics = OutputBox.CreateGraphics()
+ Dim pi As Single = 3.14
+ Dim W As Single = OutputBox.Width
+ Dim H As Single = OutputBox.Height
+ Dim x, y, lx, ly As Single
+ g.DrawLine(Pens.Black, 0, H / 2, W, H / 2)
+ If RadioSin.Checked = True Then
+ lx = 0
+ ly = H / 2.1 + 5
+ For i = 0.01 To pi * 2 Step 0.01
+ x = i * W / (pi * 2)
+ y = (-Math.Sin(i) + 1) * H / 2.1 + 5
+ g.DrawLine(Pens.Black, lx, ly, x, y)
+ lx = x
+ ly = y
+ Next
+ Else
+ lx = 0
+ ly = 5
+ For i = 0.01 To pi * 2 Step 0.01
+ x = i * W / (pi * 2)
+ y = (-Math.Cos(i) + 1) * H / 2.1 + 5
+ g.DrawLine(Pens.Black, lx, ly, x, y)
+ lx = x
+ ly = y
+ Next
+ End If
+
+ End Sub
+
+ Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
+ OutputBox.CreateGraphics().Clear(Color.White)
+ End Sub
+
+ Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
+ End
+ End Sub
+End Class
diff --git a/95/95-3(VB.net)/95-3/My Project/Application.Designer.vb b/95/95-3(VB.net)/95-3/My Project/Application.Designer.vb
new file mode 100644
index 0000000..93e2a90
--- /dev/null
+++ b/95/95-3(VB.net)/95-3/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._95_3.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/95/95-3(VB.net)/95-3/My Project/Application.myapp b/95/95-3(VB.net)/95-3/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/95/95-3(VB.net)/95-3/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/95/95-3(VB.net)/95-3/My Project/AssemblyInfo.vb b/95/95-3(VB.net)/95-3/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..e8fba1b
--- /dev/null
+++ b/95/95-3(VB.net)/95-3/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/95/95-3(VB.net)/95-3/My Project/Resources.Designer.vb b/95/95-3(VB.net)/95-3/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..078af32
--- /dev/null
+++ b/95/95-3(VB.net)/95-3/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_95_3.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-3(VB.net)/95-3/My Project/Resources.resx b/95/95-3(VB.net)/95-3/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/95/95-3(VB.net)/95-3/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-3(VB.net)/95-3/My Project/Settings.Designer.vb b/95/95-3(VB.net)/95-3/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..d0825f4
--- /dev/null
+++ b/95/95-3(VB.net)/95-3/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ 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
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal 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
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global._95_3.My.MySettings
+ Get
+ Return Global._95_3.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-3(VB.net)/95-3/My Project/Settings.settings b/95/95-3(VB.net)/95-3/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/95/95-3(VB.net)/95-3/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git "a/95/95-3(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.sln" "b/95/95-3(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.sln"
new file mode 100644
index 0000000..fbe4ec3
--- /dev/null
+++ "b/95/95-3(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2543\351\241\214.sln"
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "95年工科技藝競賽第3題", "95-3\95年工科技藝競賽第3題.vbproj", "{66D7B3E5-5FDD-449F-9AE6-4BD013BB9C01}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {66D7B3E5-5FDD-449F-9AE6-4BD013BB9C01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {66D7B3E5-5FDD-449F-9AE6-4BD013BB9C01}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {66D7B3E5-5FDD-449F-9AE6-4BD013BB9C01}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {66D7B3E5-5FDD-449F-9AE6-4BD013BB9C01}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/95/95-4(VB.net)/2009-07-18_235355.png b/95/95-4(VB.net)/2009-07-18_235355.png
new file mode 100644
index 0000000..8f1cc71
Binary files /dev/null and b/95/95-4(VB.net)/2009-07-18_235355.png differ
diff --git "a/95/95-4(VB.net)/95-4/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.vbproj" "b/95/95-4(VB.net)/95-4/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.vbproj"
new file mode 100644
index 0000000..29189f6
--- /dev/null
+++ "b/95/95-4(VB.net)/95-4/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.vbproj"
@@ -0,0 +1,111 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {C20BB853-2F80-49BC-81B7-73FE978DFB7F}
+ WinExe
+ _95_4.My.MyApplication
+ _95_4
+ 95-4
+ 512
+ WindowsForms
+ v2.0
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 95-4.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 95-4.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/95/95-4(VB.net)/95-4/Form1.Designer.vb b/95/95-4(VB.net)/95-4/Form1.Designer.vb
new file mode 100644
index 0000000..fbd23a4
--- /dev/null
+++ b/95/95-4(VB.net)/95-4/Form1.Designer.vb
@@ -0,0 +1,162 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.Button1 = New System.Windows.Forms.Button
+ Me.DownBox = New System.Windows.Forms.TextBox
+ Me.UpBox = New System.Windows.Forms.TextBox
+ Me.TxtC = New System.Windows.Forms.TextBox
+ Me.TxtB = New System.Windows.Forms.TextBox
+ Me.TxtA = New System.Windows.Forms.TextBox
+ Me.Label5 = New System.Windows.Forms.Label
+ Me.Label1 = New System.Windows.Forms.Label
+ Me.Label4 = New System.Windows.Forms.Label
+ Me.Label3 = New System.Windows.Forms.Label
+ Me.Label2 = New System.Windows.Forms.Label
+ Me.SuspendLayout()
+ '
+ 'Button1
+ '
+ Me.Button1.Location = New System.Drawing.Point(202, 83)
+ Me.Button1.Name = "Button1"
+ Me.Button1.Size = New System.Drawing.Size(75, 23)
+ Me.Button1.TabIndex = 22
+ Me.Button1.Text = "求解"
+ Me.Button1.UseVisualStyleBackColor = True
+ '
+ 'DownBox
+ '
+ Me.DownBox.Location = New System.Drawing.Point(187, 139)
+ Me.DownBox.Name = "DownBox"
+ Me.DownBox.Size = New System.Drawing.Size(100, 20)
+ Me.DownBox.TabIndex = 21
+ '
+ 'UpBox
+ '
+ Me.UpBox.Location = New System.Drawing.Point(187, 122)
+ Me.UpBox.Name = "UpBox"
+ Me.UpBox.Size = New System.Drawing.Size(100, 20)
+ Me.UpBox.TabIndex = 20
+ '
+ 'TxtC
+ '
+ Me.TxtC.Location = New System.Drawing.Point(59, 68)
+ Me.TxtC.Name = "TxtC"
+ Me.TxtC.Size = New System.Drawing.Size(100, 20)
+ Me.TxtC.TabIndex = 19
+ '
+ 'TxtB
+ '
+ Me.TxtB.Location = New System.Drawing.Point(59, 38)
+ Me.TxtB.Name = "TxtB"
+ Me.TxtB.Size = New System.Drawing.Size(100, 20)
+ Me.TxtB.TabIndex = 18
+ '
+ 'TxtA
+ '
+ Me.TxtA.Location = New System.Drawing.Point(59, 9)
+ Me.TxtA.Name = "TxtA"
+ Me.TxtA.Size = New System.Drawing.Size(100, 20)
+ Me.TxtA.TabIndex = 17
+ '
+ 'Label5
+ '
+ Me.Label5.AutoSize = True
+ Me.Label5.Location = New System.Drawing.Point(12, 71)
+ Me.Label5.Name = "Label5"
+ Me.Label5.Size = New System.Drawing.Size(41, 13)
+ Me.Label5.TabIndex = 16
+ Me.Label5.Text = "Input C"
+ '
+ 'Label1
+ '
+ Me.Label1.AutoSize = True
+ Me.Label1.Location = New System.Drawing.Point(12, 41)
+ Me.Label1.Name = "Label1"
+ Me.Label1.Size = New System.Drawing.Size(41, 13)
+ Me.Label1.TabIndex = 15
+ Me.Label1.Text = "Input B"
+ '
+ 'Label4
+ '
+ Me.Label4.AutoSize = True
+ Me.Label4.Location = New System.Drawing.Point(66, 135)
+ Me.Label4.Name = "Label4"
+ Me.Label4.Size = New System.Drawing.Size(74, 13)
+ Me.Label4.TabIndex = 14
+ Me.Label4.Text = "Function Here"
+ '
+ 'Label3
+ '
+ Me.Label3.AutoSize = True
+ Me.Label3.Location = New System.Drawing.Point(165, 135)
+ Me.Label3.Name = "Label3"
+ Me.Label3.Size = New System.Drawing.Size(20, 13)
+ Me.Label3.TabIndex = 13
+ Me.Label3.Text = "X="
+ '
+ 'Label2
+ '
+ Me.Label2.AutoSize = True
+ Me.Label2.Location = New System.Drawing.Point(12, 9)
+ Me.Label2.Name = "Label2"
+ Me.Label2.Size = New System.Drawing.Size(41, 13)
+ Me.Label2.TabIndex = 12
+ Me.Label2.Text = "Input A"
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(325, 186)
+ Me.Controls.Add(Me.Button1)
+ Me.Controls.Add(Me.DownBox)
+ Me.Controls.Add(Me.UpBox)
+ Me.Controls.Add(Me.TxtC)
+ Me.Controls.Add(Me.TxtB)
+ Me.Controls.Add(Me.TxtA)
+ Me.Controls.Add(Me.Label5)
+ Me.Controls.Add(Me.Label1)
+ Me.Controls.Add(Me.Label4)
+ Me.Controls.Add(Me.Label3)
+ Me.Controls.Add(Me.Label2)
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "95年工科技藝競賽第4題"
+ Me.ResumeLayout(False)
+ Me.PerformLayout()
+
+ End Sub
+ Friend WithEvents Button1 As System.Windows.Forms.Button
+ Friend WithEvents DownBox As System.Windows.Forms.TextBox
+ Friend WithEvents UpBox As System.Windows.Forms.TextBox
+ Friend WithEvents TxtC As System.Windows.Forms.TextBox
+ Friend WithEvents TxtB As System.Windows.Forms.TextBox
+ Friend WithEvents TxtA As System.Windows.Forms.TextBox
+ Friend WithEvents Label5 As System.Windows.Forms.Label
+ Friend WithEvents Label1 As System.Windows.Forms.Label
+ Friend WithEvents Label4 As System.Windows.Forms.Label
+ Friend WithEvents Label3 As System.Windows.Forms.Label
+ Friend WithEvents Label2 As System.Windows.Forms.Label
+
+End Class
diff --git a/95/95-4(VB.net)/95-4/Form1.resx b/95/95-4(VB.net)/95-4/Form1.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/95/95-4(VB.net)/95-4/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-4(VB.net)/95-4/Form1.vb b/95/95-4(VB.net)/95-4/Form1.vb
new file mode 100644
index 0000000..bb854ae
--- /dev/null
+++ b/95/95-4(VB.net)/95-4/Form1.vb
@@ -0,0 +1,30 @@
+Public Class Form1
+ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
+ Dim A, B, C As Double
+ A = Val(TxtA.Text)
+ B = Val(TxtB.Text)
+ C = Val(TxtC.Text)
+ If A = 0 And B = 0 And C <> 0 Then
+ UpBox.Text = "無解"
+ ElseIf A = 0 And B = 0 And C = 0 Then
+ UpBox.Text = "無限多解"
+ ElseIf A = 0 And B <> 0 Then
+ UpBox.Text = -C / B
+ DownBox.Text = "只有一解"
+ Else
+ Dim D As Double = B ^ 2 - 4 * A * C
+ If D = 0 Then
+ UpBox.Text = -B / (2 * A)
+ DownBox.Text = "同根"
+ ElseIf D > 0 Then
+ D = Math.Sqrt(D)
+ UpBox.Text = (-B + D) / (2 * A)
+ DownBox.Text = (-B - D) / (2 * A)
+ ElseIf D < 0 Then
+ D = Math.Sqrt(4 * A * C - B ^ 2)
+ UpBox.Text = Format(-B / (2 * A), "0.00") & "+" & Format(D / (2 * A), "0.00") & "i"
+ DownBox.Text = Format(-B / (2 * A), "0.00") & Format(-D / (2 * A), "0.00") & "i"
+ End If
+ End If
+ End Sub
+End Class
diff --git a/95/95-4(VB.net)/95-4/My Project/Application.Designer.vb b/95/95-4(VB.net)/95-4/My Project/Application.Designer.vb
new file mode 100644
index 0000000..cb8bd3d
--- /dev/null
+++ b/95/95-4(VB.net)/95-4/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._95_4.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/95/95-4(VB.net)/95-4/My Project/Application.myapp b/95/95-4(VB.net)/95-4/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/95/95-4(VB.net)/95-4/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/95/95-4(VB.net)/95-4/My Project/AssemblyInfo.vb b/95/95-4(VB.net)/95-4/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..581b38f
--- /dev/null
+++ b/95/95-4(VB.net)/95-4/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/95/95-4(VB.net)/95-4/My Project/Resources.Designer.vb b/95/95-4(VB.net)/95-4/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..941d96a
--- /dev/null
+++ b/95/95-4(VB.net)/95-4/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_95_4.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-4(VB.net)/95-4/My Project/Resources.resx b/95/95-4(VB.net)/95-4/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/95/95-4(VB.net)/95-4/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-4(VB.net)/95-4/My Project/Settings.Designer.vb b/95/95-4(VB.net)/95-4/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..1c3659f
--- /dev/null
+++ b/95/95-4(VB.net)/95-4/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ 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
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal 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
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global._95_4.My.MySettings
+ Get
+ Return Global._95_4.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-4(VB.net)/95-4/My Project/Settings.settings b/95/95-4(VB.net)/95-4/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/95/95-4(VB.net)/95-4/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git "a/95/95-4(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.sln" "b/95/95-4(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.sln"
new file mode 100644
index 0000000..07a5819
--- /dev/null
+++ "b/95/95-4(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2544\351\241\214.sln"
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "95年工科技藝競賽第4題", "95-4\95年工科技藝競賽第4題.vbproj", "{C20BB853-2F80-49BC-81B7-73FE978DFB7F}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {C20BB853-2F80-49BC-81B7-73FE978DFB7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C20BB853-2F80-49BC-81B7-73FE978DFB7F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C20BB853-2F80-49BC-81B7-73FE978DFB7F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C20BB853-2F80-49BC-81B7-73FE978DFB7F}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/95/95-5(VB.net)/2009-07-18_234913.png b/95/95-5(VB.net)/2009-07-18_234913.png
new file mode 100644
index 0000000..cd1b084
Binary files /dev/null and b/95/95-5(VB.net)/2009-07-18_234913.png differ
diff --git "a/95/95-5(VB.net)/95-5/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.vbproj" "b/95/95-5(VB.net)/95-5/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.vbproj"
new file mode 100644
index 0000000..1ddb16a
--- /dev/null
+++ "b/95/95-5(VB.net)/95-5/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.vbproj"
@@ -0,0 +1,111 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {38B24C89-91A6-4495-A3DF-3D98FB7BF254}
+ WinExe
+ _95_5.My.MyApplication
+ _95_5
+ 95-5
+ 512
+ WindowsForms
+ v2.0
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 95-5.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 95-5.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/95/95-5(VB.net)/95-5/Form1.Designer.vb b/95/95-5(VB.net)/95-5/Form1.Designer.vb
new file mode 100644
index 0000000..a19fda2
--- /dev/null
+++ b/95/95-5(VB.net)/95-5/Form1.Designer.vb
@@ -0,0 +1,72 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.Button1 = New System.Windows.Forms.Button
+ Me.InputBox = New System.Windows.Forms.TextBox
+ Me.OutputBox = New System.Windows.Forms.TextBox
+ Me.SuspendLayout()
+ '
+ 'Button1
+ '
+ Me.Button1.Location = New System.Drawing.Point(78, 38)
+ Me.Button1.Name = "Button1"
+ Me.Button1.Size = New System.Drawing.Size(121, 23)
+ Me.Button1.TabIndex = 0
+ Me.Button1.Text = "計算處理費"
+ Me.Button1.UseVisualStyleBackColor = True
+ '
+ 'InputBox
+ '
+ Me.InputBox.Location = New System.Drawing.Point(12, 12)
+ Me.InputBox.Name = "InputBox"
+ Me.InputBox.Size = New System.Drawing.Size(268, 20)
+ Me.InputBox.TabIndex = 1
+ '
+ 'OutputBox
+ '
+ Me.OutputBox.Location = New System.Drawing.Point(12, 74)
+ Me.OutputBox.Name = "OutputBox"
+ Me.OutputBox.Size = New System.Drawing.Size(268, 20)
+ Me.OutputBox.TabIndex = 2
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(292, 106)
+ Me.Controls.Add(Me.OutputBox)
+ Me.Controls.Add(Me.InputBox)
+ Me.Controls.Add(Me.Button1)
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "95年工科技藝競賽第5題"
+ Me.ResumeLayout(False)
+ Me.PerformLayout()
+
+ End Sub
+ Friend WithEvents Button1 As System.Windows.Forms.Button
+ Friend WithEvents InputBox As System.Windows.Forms.TextBox
+ Friend WithEvents OutputBox As System.Windows.Forms.TextBox
+
+End Class
diff --git a/95/95-5(VB.net)/95-5/Form1.resx b/95/95-5(VB.net)/95-5/Form1.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/95/95-5(VB.net)/95-5/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-5(VB.net)/95-5/Form1.vb b/95/95-5(VB.net)/95-5/Form1.vb
new file mode 100644
index 0000000..a30ae7e
--- /dev/null
+++ b/95/95-5(VB.net)/95-5/Form1.vb
@@ -0,0 +1,41 @@
+Public Class Form1
+
+ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
+ Dim StrAry() As String = InputBox.Text.Split(" ")
+ Dim Data1 As Integer = Val(StrAry(0))
+ Dim Data2 As Integer = Val(StrAry(1))
+ Dim Answer As Integer = 0
+ If WaterLevel(Data1) + ElectricLevel(Data2) = 2 Then
+ Answer = (Data1 + Data2) * 5 * 0.6 / 2
+ ElseIf WaterLevel(Data1) + ElectricLevel(Data2) = 3 Then
+ Answer = (Data1 + Data2) * 5 * 0.8 / 2
+ ElseIf WaterLevel(Data1) + ElectricLevel(Data2) = 6 Then
+ Answer = (Data1 + Data2) * 5 * 1.4 / 2
+ ElseIf WaterLevel(Data1) + ElectricLevel(Data2) = 5 Then
+ Answer = (Data1 + Data2) * 5 * 1.2 / 2
+ Else
+ Answer = (Data1 + Data2) * 5 / 2
+ End If
+ OutputBox.Text = Str(Answer)
+ End Sub
+ Private Function WaterLevel(ByVal a As Integer) As Integer
+ Select Case a
+ Case Is < 50
+ Return 1
+ Case Is <= 100
+ Return 2
+ Case Else
+ Return 3
+ End Select
+ End Function
+ Private Function ElectricLevel(ByVal a As Integer) As Integer
+ Select Case a
+ Case Is < 100
+ Return 1
+ Case Is <= 200
+ Return 2
+ Case Else
+ Return 3
+ End Select
+ End Function
+End Class
diff --git a/95/95-5(VB.net)/95-5/My Project/Application.Designer.vb b/95/95-5(VB.net)/95-5/My Project/Application.Designer.vb
new file mode 100644
index 0000000..23b7acf
--- /dev/null
+++ b/95/95-5(VB.net)/95-5/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._95_5.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/95/95-5(VB.net)/95-5/My Project/Application.myapp b/95/95-5(VB.net)/95-5/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/95/95-5(VB.net)/95-5/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/95/95-5(VB.net)/95-5/My Project/AssemblyInfo.vb b/95/95-5(VB.net)/95-5/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..17762a3
--- /dev/null
+++ b/95/95-5(VB.net)/95-5/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/95/95-5(VB.net)/95-5/My Project/Resources.Designer.vb b/95/95-5(VB.net)/95-5/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..77085b4
--- /dev/null
+++ b/95/95-5(VB.net)/95-5/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_95_5.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-5(VB.net)/95-5/My Project/Resources.resx b/95/95-5(VB.net)/95-5/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/95/95-5(VB.net)/95-5/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-5(VB.net)/95-5/My Project/Settings.Designer.vb b/95/95-5(VB.net)/95-5/My Project/Settings.Designer.vb
new file mode 100644
index 0000000..f83ef5f
--- /dev/null
+++ b/95/95-5(VB.net)/95-5/My Project/Settings.Designer.vb
@@ -0,0 +1,73 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+Namespace My
+
+ _
+ 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
+
+ _
+ Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal 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
+
+ _
+ Friend Module MySettingsProperty
+
+ _
+ Friend ReadOnly Property Settings() As Global._95_5.My.MySettings
+ Get
+ Return Global._95_5.My.MySettings.Default
+ End Get
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-5(VB.net)/95-5/My Project/Settings.settings b/95/95-5(VB.net)/95-5/My Project/Settings.settings
new file mode 100644
index 0000000..85b890b
--- /dev/null
+++ b/95/95-5(VB.net)/95-5/My Project/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git "a/95/95-5(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.sln" "b/95/95-5(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.sln"
new file mode 100644
index 0000000..e2af07c
--- /dev/null
+++ "b/95/95-5(VB.net)/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2545\351\241\214.sln"
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "95年工科技藝競賽第5題", "95-5\95年工科技藝競賽第5題.vbproj", "{38B24C89-91A6-4495-A3DF-3D98FB7BF254}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {38B24C89-91A6-4495-A3DF-3D98FB7BF254}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {38B24C89-91A6-4495-A3DF-3D98FB7BF254}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {38B24C89-91A6-4495-A3DF-3D98FB7BF254}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {38B24C89-91A6-4495-A3DF-3D98FB7BF254}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/95/95-6(VB.net)/2009-07-18_150427.png b/95/95-6(VB.net)/2009-07-18_150427.png
new file mode 100644
index 0000000..0e0c7bc
Binary files /dev/null and b/95/95-6(VB.net)/2009-07-18_150427.png differ
diff --git "a/95/95-6(VB.net)/95-6/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2546\351\241\214.vbproj" "b/95/95-6(VB.net)/95-6/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2546\351\241\214.vbproj"
new file mode 100644
index 0000000..dcd4ccb
--- /dev/null
+++ "b/95/95-6(VB.net)/95-6/95\345\271\264\345\267\245\347\247\221\346\212\200\350\227\235\347\253\266\350\263\275\347\254\2546\351\241\214.vbproj"
@@ -0,0 +1,111 @@
+
+
+
+ Debug
+ AnyCPU
+ 9.0.30729
+ 2.0
+ {555BEDC9-7BB7-4D11-A928-2513E8E194F8}
+ WinExe
+ _95_6.My.MyApplication
+ _95_6
+ 95-6
+ 512
+ WindowsForms
+ v2.0
+ On
+ Binary
+ Off
+ On
+
+
+ true
+ full
+ true
+ true
+ bin\Debug\
+ 95-6.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+ pdbonly
+ false
+ true
+ true
+ bin\Release\
+ 95-6.xml
+ 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Form1.vb
+ Form
+
+
+
+ True
+ Application.myapp
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ Form1.vb
+
+
+ VbMyResourcesResXFileCodeGenerator
+ Resources.Designer.vb
+ My.Resources
+ Designer
+
+
+
+
+ MyApplicationCodeGenerator
+ Application.Designer.vb
+
+
+ SettingsSingleFileGenerator
+ My
+ Settings.Designer.vb
+
+
+
+
+
\ No newline at end of file
diff --git a/95/95-6(VB.net)/95-6/Form1.Designer.vb b/95/95-6(VB.net)/95-6/Form1.Designer.vb
new file mode 100644
index 0000000..e1945dd
--- /dev/null
+++ b/95/95-6(VB.net)/95-6/Form1.Designer.vb
@@ -0,0 +1,74 @@
+ _
+Partial Class Form1
+ Inherits System.Windows.Forms.Form
+
+ 'Form 覆寫 Dispose 以清除元件清單。
+ _
+ 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
+
+ '為 Windows Form 設計工具的必要項
+ Private components As System.ComponentModel.IContainer
+
+ '注意: 以下為 Windows Form 設計工具所需的程序
+ '可以使用 Windows Form 設計工具進行修改。
+ '請不要使用程式碼編輯器進行修改。
+ _
+ Private Sub InitializeComponent()
+ Me.InputBox = New System.Windows.Forms.TextBox
+ Me.Button1 = New System.Windows.Forms.Button
+ Me.OutputBox = New System.Windows.Forms.RichTextBox
+ Me.SuspendLayout()
+ '
+ 'InputBox
+ '
+ Me.InputBox.Location = New System.Drawing.Point(12, 12)
+ Me.InputBox.Name = "InputBox"
+ Me.InputBox.Size = New System.Drawing.Size(606, 20)
+ Me.InputBox.TabIndex = 0
+ Me.InputBox.Text = "Conventional approaches for encoding technique"
+ '
+ 'Button1
+ '
+ Me.Button1.Location = New System.Drawing.Point(12, 38)
+ Me.Button1.Name = "Button1"
+ Me.Button1.Size = New System.Drawing.Size(75, 23)
+ Me.Button1.TabIndex = 1
+ Me.Button1.Text = "計算"
+ Me.Button1.UseVisualStyleBackColor = True
+ '
+ 'OutputBox
+ '
+ Me.OutputBox.Location = New System.Drawing.Point(12, 72)
+ Me.OutputBox.Name = "OutputBox"
+ Me.OutputBox.Size = New System.Drawing.Size(605, 160)
+ Me.OutputBox.TabIndex = 2
+ Me.OutputBox.Text = ""
+ '
+ 'Form1
+ '
+ Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
+ Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
+ Me.ClientSize = New System.Drawing.Size(630, 247)
+ Me.Controls.Add(Me.OutputBox)
+ Me.Controls.Add(Me.Button1)
+ Me.Controls.Add(Me.InputBox)
+ Me.Name = "Form1"
+ Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
+ Me.Text = "95年工科技藝競賽第6題"
+ Me.ResumeLayout(False)
+ Me.PerformLayout()
+
+ End Sub
+ Friend WithEvents InputBox As System.Windows.Forms.TextBox
+ Friend WithEvents Button1 As System.Windows.Forms.Button
+ Friend WithEvents OutputBox As System.Windows.Forms.RichTextBox
+
+End Class
diff --git a/95/95-6(VB.net)/95-6/Form1.resx b/95/95-6(VB.net)/95-6/Form1.resx
new file mode 100644
index 0000000..19dc0dd
--- /dev/null
+++ b/95/95-6(VB.net)/95-6/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/95/95-6(VB.net)/95-6/Form1.vb b/95/95-6(VB.net)/95-6/Form1.vb
new file mode 100644
index 0000000..c54b8d5
--- /dev/null
+++ b/95/95-6(VB.net)/95-6/Form1.vb
@@ -0,0 +1,42 @@
+Public Class Form1
+
+ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
+ Dim s As String = InputBox.Text
+ Dim StrAry(100) As String
+ Dim TotalAry(100) As Integer
+ Dim MaxChar As Integer = 0
+ Dim isHave As Boolean
+ For i = 1 To InputBox.Text.Length
+ isHave = False
+ For j = 1 To MaxChar
+ If StrAry(j) = Mid(InputBox.Text, i, 1) Then
+ isHave = True
+ TotalAry(j) += 1
+ Exit For
+ End If
+ Next
+ If isHave = False Then
+ MaxChar += 1
+ StrAry(MaxChar) = Mid(InputBox.Text, i, 1)
+ TotalAry(MaxChar) = 1
+ End If
+ Next
+ For i = 1 To MaxChar
+ For j = 1 To MaxChar - i
+ If TotalAry(j) < TotalAry(j + 1) Then
+ Dim tmp As Integer = TotalAry(j)
+ TotalAry(j) = TotalAry(j + 1)
+ TotalAry(j + 1) = tmp
+ Dim tmpp As String = StrAry(j)
+ StrAry(j) = StrAry(j + 1)
+ StrAry(j + 1) = tmpp
+ End If
+ Next
+ Next
+ OutputBox.Text = ""
+ For i = 1 To MaxChar
+ OutputBox.Text += """" & StrAry(i) & """" & "=" & Str(TotalAry(i)) & "; "
+ Next
+
+ End Sub
+End Class
diff --git a/95/95-6(VB.net)/95-6/My Project/Application.Designer.vb b/95/95-6(VB.net)/95-6/My Project/Application.Designer.vb
new file mode 100644
index 0000000..6d79533
--- /dev/null
+++ b/95/95-6(VB.net)/95-6/My Project/Application.Designer.vb
@@ -0,0 +1,38 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+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
+
+ _
+ 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.AfterMainFormCloses
+ End Sub
+
+ _
+ Protected Overrides Sub OnCreateMainForm()
+ Me.MainForm = Global._95_6.Form1
+ End Sub
+ End Class
+End Namespace
diff --git a/95/95-6(VB.net)/95-6/My Project/Application.myapp b/95/95-6(VB.net)/95-6/My Project/Application.myapp
new file mode 100644
index 0000000..1243847
--- /dev/null
+++ b/95/95-6(VB.net)/95-6/My Project/Application.myapp
@@ -0,0 +1,11 @@
+
+
+ true
+ Form1
+ false
+ 0
+ true
+ 0
+ 0
+ true
+
diff --git a/95/95-6(VB.net)/95-6/My Project/AssemblyInfo.vb b/95/95-6(VB.net)/95-6/My Project/AssemblyInfo.vb
new file mode 100644
index 0000000..d00afad
--- /dev/null
+++ b/95/95-6(VB.net)/95-6/My Project/AssemblyInfo.vb
@@ -0,0 +1,35 @@
+Imports System
+Imports System.Reflection
+Imports System.Runtime.InteropServices
+
+' 組件的一般資訊是由下列的屬性集控制。
+' 變更這些屬性的值即可修改組件的相關
+' 資訊。
+
+' 檢閱組件屬性的值
+
+
+
+
+
+
+
+
+
+
+'下列 GUID 為專案公開 (Expose) 至 COM 時所要使用的 typelib ID
+
+
+' 組件的版本資訊是由下列四項值構成:
+'
+' 主要版本
+' 次要版本
+' 組建編號
+' 修訂編號
+'
+' 您可以指定所有的值,也可以依照以下的方式,使用 '*' 將組建和修訂編號
+' 指定為預設值:
+'
+
+
+
diff --git a/95/95-6(VB.net)/95-6/My Project/Resources.Designer.vb b/95/95-6(VB.net)/95-6/My Project/Resources.Designer.vb
new file mode 100644
index 0000000..addbc57
--- /dev/null
+++ b/95/95-6(VB.net)/95-6/My Project/Resources.Designer.vb
@@ -0,0 +1,62 @@
+'------------------------------------------------------------------------------
+'
+' This code was generated by a tool.
+' Runtime Version:2.0.50727.4013
+'
+' Changes to this file may cause incorrect behavior and will be lost if
+' the code is regenerated.
+'
+'------------------------------------------------------------------------------
+
+Option Strict On
+Option Explicit On
+
+
+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.
+ '
+ ' A strongly-typed resource class, for looking up localized strings, etc.
+ '
+ _
+ Friend Module Resources
+
+ Private resourceMan As Global.System.Resources.ResourceManager
+
+ Private resourceCulture As Global.System.Globalization.CultureInfo
+
+ '
+ ' Returns the cached ResourceManager instance used by this class.
+ '
+ _
+ 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("_95_6.Resources", GetType(Resources).Assembly)
+ resourceMan = temp
+ End If
+ Return resourceMan
+ End Get
+ End Property
+
+ '
+ ' Overrides the current thread's CurrentUICulture property for all
+ ' resource lookups using this strongly typed resource class.
+ '
+ _
+ Friend Property Culture() As Global.System.Globalization.CultureInfo
+ Get
+ Return resourceCulture
+ End Get
+ Set(ByVal value As Global.System.Globalization.CultureInfo)
+ resourceCulture = value
+ End Set
+ End Property
+ End Module
+End Namespace
diff --git a/95/95-6(VB.net)/95-6/My Project/Resources.resx b/95/95-6(VB.net)/95-6/My Project/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/95/95-6(VB.net)/95-6/My Project/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+