Code:
#pragma once
namespace Calc {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for Form1
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::TextBox^ textBox1;
private: System::Windows::Forms::TextBox^ textBox2;
private: System::Windows::Forms::TextBox^ textBox3;
private: System::Windows::Forms::TextBox^ textBox4;
private: System::Windows::Forms::TextBox^ textBox5;
private: System::Windows::Forms::TextBox^ textBox6;
private: System::Windows::Forms::TextBox^ textBox7;
private: System::Windows::Forms::TextBox^ textBox8;
private: System::Windows::Forms::CheckedListBox^ checkedListBox1;
private: System::Windows::Forms::TextBox^ textBox9;
private: System::Windows::Forms::NumericUpDown^ numericUpDown1;
private: System::Windows::Forms::TextBox^ textBox10;
private: System::Windows::Forms::TextBox^ textBox11;
private: System::Windows::Forms::TextBox^ textBox12;
private: System::Windows::Forms::TextBox^ textBox13;
private: System::Windows::Forms::TextBox^ textBox14;
private: System::Windows::Forms::Button^ button1;
private: System::Windows::Forms::ProgressBar^ progressBar1;
private: System::ComponentModel::IContainer^ components;
protected:
private:
/// <summary>
/// Required designer variable.
/// </summary>
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->textBox2 = (gcnew System::Windows::Forms::TextBox());
this->textBox3 = (gcnew System::Windows::Forms::TextBox());
this->textBox4 = (gcnew System::Windows::Forms::TextBox());
this->textBox5 = (gcnew System::Windows::Forms::TextBox());
this->textBox6 = (gcnew System::Windows::Forms::TextBox());
this->textBox7 = (gcnew System::Windows::Forms::TextBox());
this->textBox8 = (gcnew System::Windows::Forms::TextBox());
this->checkedListBox1 = (gcnew System::Windows::Forms::CheckedListBox());
this->textBox9 = (gcnew System::Windows::Forms::TextBox());
this->numericUpDown1 = (gcnew System::Windows::Forms::NumericUpDown());
this->textBox10 = (gcnew System::Windows::Forms::TextBox());
this->textBox11 = (gcnew System::Windows::Forms::TextBox());
this->textBox12 = (gcnew System::Windows::Forms::TextBox());
this->textBox13 = (gcnew System::Windows::Forms::TextBox());
this->textBox14 = (gcnew System::Windows::Forms::TextBox());
this->button1 = (gcnew System::Windows::Forms::Button());
this->progressBar1 = (gcnew System::Windows::Forms::ProgressBar());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown1))->BeginInit();
this->SuspendLayout();
//
// textBox1
//
this->textBox1->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox1->Font = (gcnew System::Drawing::Font(L"Batik Regular", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox1->Location = System::Drawing::Point(25, 27);
this->textBox1->Name = L"textBox1";
this->textBox1->ReadOnly = true;
this->textBox1->Size = System::Drawing::Size(57, 32);
this->textBox1->TabIndex = 1;
this->textBox1->Text = L"INT";
//
// textBox2
//
this->textBox2->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox2->Font = (gcnew System::Drawing::Font(L"Batik Regular", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox2->Location = System::Drawing::Point(169, 27);
this->textBox2->Name = L"textBox2";
this->textBox2->Size = System::Drawing::Size(57, 32);
this->textBox2->TabIndex = 2;
//
// textBox3
//
this->textBox3->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox3->Font = (gcnew System::Drawing::Font(L"Batik Regular", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox3->Location = System::Drawing::Point(25, 76);
this->textBox3->Name = L"textBox3";
this->textBox3->ReadOnly = true;
this->textBox3->Size = System::Drawing::Size(135, 24);
this->textBox3->TabIndex = 3;
this->textBox3->Text = L"Magic attack";
//
// textBox4
//
this->textBox4->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox4->Font = (gcnew System::Drawing::Font(L"Batik Regular", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox4->Location = System::Drawing::Point(169, 70);
this->textBox4->Name = L"textBox4";
this->textBox4->Size = System::Drawing::Size(57, 32);
this->textBox4->TabIndex = 4;
//
// textBox5
//
this->textBox5->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox5->Font = (gcnew System::Drawing::Font(L"Batik Regular", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox5->Location = System::Drawing::Point(25, 119);
this->textBox5->Name = L"textBox5";
this->textBox5->ReadOnly = true;
this->textBox5->Size = System::Drawing::Size(135, 24);
this->textBox5->TabIndex = 5;
this->textBox5->Text = L"Spell Attack";
this->textBox5->TextChanged += gcnew System::EventHandler(this, &Form1::textBox5_TextChanged);
//
// textBox6
//
this->textBox6->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox6->Font = (gcnew System::Drawing::Font(L"Batik Regular", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox6->Location = System::Drawing::Point(169, 113);
this->textBox6->Name = L"textBox6";
this->textBox6->Size = System::Drawing::Size(57, 32);
this->textBox6->TabIndex = 6;
//
// textBox7
//
this->textBox7->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox7->Font = (gcnew System::Drawing::Font(L"Batik Regular", 11.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox7->Location = System::Drawing::Point(25, 162);
this->textBox7->Name = L"textBox7";
this->textBox7->ReadOnly = true;
this->textBox7->Size = System::Drawing::Size(135, 23);
this->textBox7->TabIndex = 7;
this->textBox7->Text = L"Spell Mastery";
//
// textBox8
//
this->textBox8->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox8->Font = (gcnew System::Drawing::Font(L"Batik Regular", 18, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox8->Location = System::Drawing::Point(169, 155);
this->textBox8->Name = L"textBox8";
this->textBox8->Size = System::Drawing::Size(57, 32);
this->textBox8->TabIndex = 8;
//
// checkedListBox1
//
this->checkedListBox1->BackColor = System::Drawing::SystemColors::ScrollBar;
this->checkedListBox1->CheckOnClick = true;
this->checkedListBox1->Cursor = System::Windows::Forms::Cursors::Cross;
this->checkedListBox1->FormattingEnabled = true;
this->checkedListBox1->Items->AddRange(gcnew cli::array< System::Object^ >(5) {L".50", L".75", L"1.00", L"1.25", L"1.50"});
this->checkedListBox1->Location = System::Drawing::Point(232, 37);
this->checkedListBox1->Name = L"checkedListBox1";
this->checkedListBox1->Size = System::Drawing::Size(154, 99);
this->checkedListBox1->TabIndex = 1;
this->checkedListBox1->ThreeDCheckBoxes = true;
this->checkedListBox1->SelectedIndexChanged += gcnew System::EventHandler(this, &Form1::checkedListBox1_SelectedIndexChanged);
//
// textBox9
//
this->textBox9->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox9->Font = (gcnew System::Drawing::Font(L"Stereofidelic", 15, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox9->Location = System::Drawing::Point(232, 3);
this->textBox9->Name = L"textBox9";
this->textBox9->ReadOnly = true;
this->textBox9->Size = System::Drawing::Size(165, 28);
this->textBox9->TabIndex = 10;
this->textBox9->Text = L"Element damage (Tick \'1\' if none)";
this->textBox9->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
//
// numericUpDown1
//
this->numericUpDown1->BackColor = System::Drawing::SystemColors::ScrollBar;
this->numericUpDown1->Font = (gcnew System::Drawing::Font(L"Stereofidelic", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->numericUpDown1->Location = System::Drawing::Point(295, 180);
this->numericUpDown1->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {134, 0, 0, 0});
this->numericUpDown1->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
this->numericUpDown1->Name = L"numericUpDown1";
this->numericUpDown1->Size = System::Drawing::Size(47, 35);
this->numericUpDown1->TabIndex = 11;
this->numericUpDown1->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
this->numericUpDown1->ValueChanged += gcnew System::EventHandler(this, &Form1::numericUpDown1_ValueChanged);
//
// textBox10
//
this->textBox10->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox10->Font = (gcnew System::Drawing::Font(L"Stereofidelic", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox10->Location = System::Drawing::Point(234, 139);
this->textBox10->Name = L"textBox10";
this->textBox10->ReadOnly = true;
this->textBox10->Size = System::Drawing::Size(163, 35);
this->textBox10->TabIndex = 12;
this->textBox10->Text = L"Amp, choose 100 if none";
//
// textBox11
//
this->textBox11->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox11->Font = (gcnew System::Drawing::Font(L"Stereofidelic", 24, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox11->Location = System::Drawing::Point(28, 197);
this->textBox11->Name = L"textBox11";
this->textBox11->ReadOnly = true;
this->textBox11->Size = System::Drawing::Size(41, 40);
this->textBox11->TabIndex = 13;
this->textBox11->Text = L"Min";
//
// textBox12
//
this->textBox12->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox12->Font = (gcnew System::Drawing::Font(L"Stereofidelic", 24, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox12->Location = System::Drawing::Point(28, 243);
this->textBox12->Name = L"textBox12";
this->textBox12->ReadOnly = true;
this->textBox12->Size = System::Drawing::Size(41, 40);
this->textBox12->TabIndex = 14;
this->textBox12->Text = L"Max";
//
// textBox13
//
this->textBox13->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox13->Font = (gcnew System::Drawing::Font(L"Batik Regular", 20.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox13->Location = System::Drawing::Point(86, 197);
this->textBox13->Name = L"textBox13";
this->textBox13->Size = System::Drawing::Size(99, 35);
this->textBox13->TabIndex = 15;
//
// textBox14
//
this->textBox14->BackColor = System::Drawing::SystemColors::ScrollBar;
this->textBox14->Font = (gcnew System::Drawing::Font(L"Batik Regular", 20.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->textBox14->Location = System::Drawing::Point(86, 243);
this->textBox14->Name = L"textBox14";
this->textBox14->Size = System::Drawing::Size(99, 35);
this->textBox14->TabIndex = 16;
//
// button1
//
this->button1->Font = (gcnew System::Drawing::Font(L"Planet Benson 2", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->button1->Location = System::Drawing::Point(221, 224);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(140, 53);
this->button1->TabIndex = 17;
this->button1->Text = L"Calculate!";
this->button1->UseVisualStyleBackColor = true;
//
// progressBar1
//
this->progressBar1->Location = System::Drawing::Point(400, -1);
this->progressBar1->Name = L"progressBar1";
this->progressBar1->Size = System::Drawing::Size(27, 285);
this->progressBar1->TabIndex = 18;
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(9, 14);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"$this.BackgroundImage")));
this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Center;
this->ClientSize = System::Drawing::Size(426, 284);
this->Controls->Add(this->progressBar1);
this->Controls->Add(this->button1);
this->Controls->Add(this->textBox14);
this->Controls->Add(this->textBox13);
this->Controls->Add(this->textBox12);
this->Controls->Add(this->textBox11);
this->Controls->Add(this->textBox10);
this->Controls->Add(this->numericUpDown1);
this->Controls->Add(this->textBox9);
this->Controls->Add(this->checkedListBox1);
this->Controls->Add(this->textBox8);
this->Controls->Add(this->textBox7);
this->Controls->Add(this->textBox6);
this->Controls->Add(this->textBox5);
this->Controls->Add(this->textBox4);
this->Controls->Add(this->textBox3);
this->Controls->Add(this->textBox2);
this->Controls->Add(this->textBox1);
this->Cursor = System::Windows::Forms::Cursors::Cross;
this->DoubleBuffered = true;
this->Font = (gcnew System::Drawing::Font(L"Australian Sunrise", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
this->Margin = System::Windows::Forms::Padding(4);
this->Name = L"Form1";
this->Opacity = 0.9;
this->Text = L"Mage damage calculator by Brad Szymanski";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown1))->EndInit();
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void textBox1_TextChanged(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void textBox5_TextChanged(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void checkedListBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void numericUpDown1_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
}
};
}
Any help? Thanks in advance.