diff --git a/BaseConverter/Form1.Designer.cs b/BaseConverter/Form1.Designer.cs
index 00ae9a1..de7fec1 100644
--- a/BaseConverter/Form1.Designer.cs
+++ b/BaseConverter/Form1.Designer.cs
@@ -38,12 +38,12 @@
this.decimalTextBox = new System.Windows.Forms.TextBox();
this.exitButton = new System.Windows.Forms.Button();
this.groupBox3 = new System.Windows.Forms.GroupBox();
+ this.octalRadioButton = new System.Windows.Forms.RadioButton();
this.decimalRadioButton = new System.Windows.Forms.RadioButton();
this.hexRadioButton = new System.Windows.Forms.RadioButton();
this.binaryRadioButton = new System.Windows.Forms.RadioButton();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.octalTextBox = new System.Windows.Forms.TextBox();
- this.octalRadioButton = new System.Windows.Forms.RadioButton();
this.groupBox1.SuspendLayout();
this.binaryGroupBox.SuspendLayout();
this.groupBox2.SuspendLayout();
@@ -151,6 +151,18 @@
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Which Base would you like to convert from?";
//
+ // octalRadioButton
+ //
+ this.octalRadioButton.AutoSize = true;
+ this.octalRadioButton.Location = new System.Drawing.Point(159, 19);
+ this.octalRadioButton.Name = "octalRadioButton";
+ this.octalRadioButton.Size = new System.Drawing.Size(50, 17);
+ this.octalRadioButton.TabIndex = 3;
+ this.octalRadioButton.TabStop = true;
+ this.octalRadioButton.Text = "Octal";
+ this.octalRadioButton.UseVisualStyleBackColor = true;
+ this.octalRadioButton.CheckedChanged += new System.EventHandler(this.octalRadioButton_CheckedChanged);
+ //
// decimalRadioButton
//
this.decimalRadioButton.AutoSize = true;
@@ -206,18 +218,6 @@
this.octalTextBox.TabIndex = 0;
this.octalTextBox.Text = "0";
//
- // octalRadioButton
- //
- this.octalRadioButton.AutoSize = true;
- this.octalRadioButton.Location = new System.Drawing.Point(159, 19);
- this.octalRadioButton.Name = "octalRadioButton";
- this.octalRadioButton.Size = new System.Drawing.Size(50, 17);
- this.octalRadioButton.TabIndex = 3;
- this.octalRadioButton.TabStop = true;
- this.octalRadioButton.Text = "Octal";
- this.octalRadioButton.UseVisualStyleBackColor = true;
- this.octalRadioButton.CheckedChanged += new System.EventHandler(this.octalRadioButton_CheckedChanged);
- //
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -232,7 +232,7 @@
this.Controls.Add(this.clearButton);
this.Controls.Add(this.computeButton);
this.Name = "Form1";
- this.Text = "Base Converter";
+ this.Text = "Base Converter - Caleb Fontenot";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.binaryGroupBox.ResumeLayout(false);
diff --git a/BaseConverter/Form1.cs b/BaseConverter/Form1.cs
index 821949f..8ef28d6 100644
--- a/BaseConverter/Form1.cs
+++ b/BaseConverter/Form1.cs
@@ -27,7 +27,7 @@ namespace WindowsFormsApplication1
case "hexTextBox":
hexTextBox.Focus();
break;
- case "octalRadioButton":
+ case "octalTextBox":
octalTextBox.Focus();
break;
case "decimalTextBox":
@@ -72,12 +72,16 @@ namespace WindowsFormsApplication1
hexNum = decimalNum;
binNum = decimalNum;
octalNum = decimalNum;
+ //Refocus the textbox when done.
+ currentFocus("decimalTextBox");
}
if (octalRadioButton.Checked) {
// The octal radio button is pressed.
hexNum = octalNum;
binNum = octalNum;
decimalNum = octalNum;
+ //Refocus the textbox when done.
+ currentFocus("octalTextBox");
}
if (hexRadioButton.Checked)
@@ -86,7 +90,8 @@ namespace WindowsFormsApplication1
binNum = hexNum;
decimalNum = hexNum;
octalNum = hexNum;
-
+ //Refocus the textbox when done.
+ currentFocus("hexTextBox");
}
if (binaryRadioButton.Checked)
{
@@ -94,12 +99,17 @@ namespace WindowsFormsApplication1
hexNum = binNum;
decimalNum = binNum;
octalNum = binNum;
+ //Refocus the textbox when done.
+ currentFocus("binaryTextBox");
}
// Print output
decimalTextBox.Text = decimalNum.ToString();
hexTextBox.Text = hexNum.ToString("X");
binaryTextBox.Text = Convert.ToString(binNum, 2);
octalTextBox.Text = Convert.ToString(octalNum, 8);
+
+
+
}
private void clearButton_Click(object sender, EventArgs e)
diff --git a/BaseConverter/bin/Debug/BaseConverter.application b/BaseConverter/bin/Debug/BaseConverter.application
new file mode 100644
index 0000000..a5285e8
--- /dev/null
+++ b/BaseConverter/bin/Debug/BaseConverter.application
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cEX9hsGiiCx0dr+SNR+Qk8kAYHI=
+
+
+
+
\ No newline at end of file
diff --git a/BaseConverter/bin/Debug/BaseConverter.exe b/BaseConverter/bin/Debug/BaseConverter.exe
index bfaf180..3912c7f 100644
Binary files a/BaseConverter/bin/Debug/BaseConverter.exe and b/BaseConverter/bin/Debug/BaseConverter.exe differ
diff --git a/BaseConverter/bin/Debug/BaseConverter.exe.manifest b/BaseConverter/bin/Debug/BaseConverter.exe.manifest
new file mode 100644
index 0000000..17897ce
--- /dev/null
+++ b/BaseConverter/bin/Debug/BaseConverter.exe.manifest
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dZXLG29YzjAwtfDgkFQyhpdG14U=
+
+
+
+
\ No newline at end of file
diff --git a/BaseConverter/bin/Debug/BaseConverter.pdb b/BaseConverter/bin/Debug/BaseConverter.pdb
index 037b7f8..5ec71b6 100644
Binary files a/BaseConverter/bin/Debug/BaseConverter.pdb and b/BaseConverter/bin/Debug/BaseConverter.pdb differ
diff --git a/BaseConverter/bin/Debug/BaseConverter.vshost.application b/BaseConverter/bin/Debug/BaseConverter.vshost.application
new file mode 100644
index 0000000..a5285e8
--- /dev/null
+++ b/BaseConverter/bin/Debug/BaseConverter.vshost.application
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cEX9hsGiiCx0dr+SNR+Qk8kAYHI=
+
+
+
+
\ No newline at end of file
diff --git a/BaseConverter/bin/Debug/BaseConverter.vshost.exe.manifest b/BaseConverter/bin/Debug/BaseConverter.vshost.exe.manifest
deleted file mode 100644
index 061c9ca..0000000
--- a/BaseConverter/bin/Debug/BaseConverter.vshost.exe.manifest
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BaseConverter/obj/Debug/BaseConverter.application b/BaseConverter/obj/Debug/BaseConverter.application
new file mode 100644
index 0000000..a5285e8
--- /dev/null
+++ b/BaseConverter/obj/Debug/BaseConverter.application
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ cEX9hsGiiCx0dr+SNR+Qk8kAYHI=
+
+
+
+
\ No newline at end of file
diff --git a/BaseConverter/obj/Debug/BaseConverter.csproj.FileListAbsolute.txt b/BaseConverter/obj/Debug/BaseConverter.csproj.FileListAbsolute.txt
index bff5bc8..f38ec6a 100644
--- a/BaseConverter/obj/Debug/BaseConverter.csproj.FileListAbsolute.txt
+++ b/BaseConverter/obj/Debug/BaseConverter.csproj.FileListAbsolute.txt
@@ -6,3 +6,7 @@ C:\Documents and Settings\Caleb Fontenot\My Documents\Visual Studio 2008\Project
C:\Documents and Settings\Caleb Fontenot\My Documents\Visual Studio 2008\Projects\BaseConverter\BaseConverter\bin\Debug\BaseConverter.pdb
C:\Documents and Settings\Caleb Fontenot\My Documents\Visual Studio 2008\Projects\BaseConverter\BaseConverter\obj\Debug\BaseConverter.exe
C:\Documents and Settings\Caleb Fontenot\My Documents\Visual Studio 2008\Projects\BaseConverter\BaseConverter\obj\Debug\BaseConverter.pdb
+C:\Documents and Settings\Caleb Fontenot\My Documents\Visual Studio 2008\Projects\BaseConverter\BaseConverter\bin\Debug\BaseConverter.exe.manifest
+C:\Documents and Settings\Caleb Fontenot\My Documents\Visual Studio 2008\Projects\BaseConverter\BaseConverter\bin\Debug\BaseConverter.application
+C:\Documents and Settings\Caleb Fontenot\My Documents\Visual Studio 2008\Projects\BaseConverter\BaseConverter\obj\Debug\BaseConverter.exe.manifest
+C:\Documents and Settings\Caleb Fontenot\My Documents\Visual Studio 2008\Projects\BaseConverter\BaseConverter\obj\Debug\BaseConverter.application
diff --git a/BaseConverter/obj/Debug/BaseConverter.csproj.GenerateResource.Cache b/BaseConverter/obj/Debug/BaseConverter.csproj.GenerateResource.Cache
index f46681e..35a65f5 100644
Binary files a/BaseConverter/obj/Debug/BaseConverter.csproj.GenerateResource.Cache and b/BaseConverter/obj/Debug/BaseConverter.csproj.GenerateResource.Cache differ
diff --git a/BaseConverter/obj/Debug/BaseConverter.exe b/BaseConverter/obj/Debug/BaseConverter.exe
index bfaf180..3912c7f 100644
Binary files a/BaseConverter/obj/Debug/BaseConverter.exe and b/BaseConverter/obj/Debug/BaseConverter.exe differ
diff --git a/BaseConverter/obj/Debug/BaseConverter.exe.manifest b/BaseConverter/obj/Debug/BaseConverter.exe.manifest
new file mode 100644
index 0000000..17897ce
--- /dev/null
+++ b/BaseConverter/obj/Debug/BaseConverter.exe.manifest
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dZXLG29YzjAwtfDgkFQyhpdG14U=
+
+
+
+
\ No newline at end of file
diff --git a/BaseConverter/obj/Debug/BaseConverter.pdb b/BaseConverter/obj/Debug/BaseConverter.pdb
index 037b7f8..5ec71b6 100644
Binary files a/BaseConverter/obj/Debug/BaseConverter.pdb and b/BaseConverter/obj/Debug/BaseConverter.pdb differ