Selasa, 25 Juni 2019

Membuat Aplikasi Kamus Sederhana dengan Menggunakan Microsoft Visual C++

Disini saya akan menunjukkan hasil pembuatan aplikasi kamus sederhana dengan menggunakan microsoft visual C++ dari tugas mata kuliah pemrograman visual di universitas ahmad dahlan yogyakarta dan mungkin teman-teman yang melihat blog ini bisa di Like comment dan bisa juga di subscribe jika mau.
Link youtube saya:  https://www.youtube.com/channel/UCKNr5cQSHrtU5cLZtC56zRQ?view_as=subscriber




APLIKASI KAMUS SEDERHANA
Pada tugas ini saya akan membuat aplikasi kamus sederhana dengan menggunakan Microsoft Visual C++ 2010. Kamus ini akan menampilkan kata-kata bahasa inggris atau bisa juga untuk kamus teknologi dan memberikan terjemahan atau definisi dari kata tersebut. Supaya sedikit memudahkan kita untuk mengartikan kata kata yang sulit dipahami atau dimengerti. Pada aplikasi kamus sederhana ini tidak memakai database jadi aplikasi ini hanya memasukkan kata atau kalimat di coding yang ingin kita terjemah untuk memudahkan dan mengingat. Terjemahannya dari bahasa indonesia ke bahasa inggris atau sebaliknya.

1.     Spesifikasi aplikasi
Komponen yang diperlukan adalah sebagai berikut:
1.      Label                 
2.      Button               
3.      Radio Button 
4.      TextBox 
5.      ListBox          
6.      Beberapa icon yang ditampilkan 

Komponen
Property
Nilai
Form
Text
Kamus Bahasa Inggris

Image
TextBox 1
Name
textBox1

Multiline
True

Text
-
TextBox 2
Name
textBox2

Multiline
True

Text
-
ListBox
Name
listBox2
Button
Name
button1

Image

Text
-


Radio Button
Text
Terjemahkan

Name
radioButton1
Label 1
Name
label1

Text
Detail Kata
Label 2
Name
label2

Text
List Kata
Label 3
Name
label3

Text
Terjemahan
Label 4
Name
label4

Text
ALFAN HABIBILLAH

2.     Listing program
Listing program sebagai berikut:

#pragma once

namespace TUGASAKHIRALFAN {

       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
       /// </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;
                     }
              }

       protected:
       private: System::Windows::Forms::TextBox^  textBox2;
       private: System::Windows::Forms::Button^  button1;


       private: System::Windows::Forms::RadioButton^  radioButton1;
       private: System::Windows::Forms::Label^  label2;
       private: System::Windows::Forms::ListBox^  listBox2;
       private: System::Windows::Forms::TextBox^  textBox1;
       private: System::Windows::Forms::Label^  label1;
       private: System::Windows::Forms::Label^  label3;
       private: System::Windows::Forms::Label^  label4;




       private:
              /// <summary>
              /// Required designer variable.
              /// </summary>
              System::ComponentModel::Container ^components;

#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->textBox2 = (gcnew System::Windows::Forms::TextBox());
                     this->button1 = (gcnew System::Windows::Forms::Button());
                     this->radioButton1 = (gcnew System::Windows::Forms::RadioButton());
                     this->label2 = (gcnew System::Windows::Forms::Label());
                     this->listBox2 = (gcnew System::Windows::Forms::ListBox());
                     this->textBox1 = (gcnew System::Windows::Forms::TextBox());
                     this->label1 = (gcnew System::Windows::Forms::Label());
                     this->label3 = (gcnew System::Windows::Forms::Label());
                     this->label4 = (gcnew System::Windows::Forms::Label());
                     this->SuspendLayout();
                     //
                     // textBox2
                     //
                     this->textBox2->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->textBox2->Location = System::Drawing::Point(83, 109);
                     this->textBox2->Multiline = true;
                     this->textBox2->Name = L"textBox2";
                     this->textBox2->Size = System::Drawing::Size(235, 188);
                     this->textBox2->TabIndex = 1;
                     //
                     // button1
                     //
                     this->button1->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"button1.BackgroundImage")));
                     this->button1->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
                     this->button1->Font = (gcnew System::Drawing::Font(L"Times New Roman", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->button1->Location = System::Drawing::Point(422, 28);
                     this->button1->Name = L"button1";
                     this->button1->Size = System::Drawing::Size(64, 42);
                     this->button1->TabIndex = 2;
                     this->button1->UseVisualStyleBackColor = true;
                     this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
                     //
                     // radioButton1
                     //
                     this->radioButton1->AutoSize = true;
                     this->radioButton1->BackColor = System::Drawing::Color::Transparent;
                     this->radioButton1->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->radioButton1->ForeColor = System::Drawing::SystemColors::ControlLightLight;
                     this->radioButton1->Location = System::Drawing::Point(490, 27);
                     this->radioButton1->Name = L"radioButton1";
                     this->radioButton1->Size = System::Drawing::Size(171, 35);
                     this->radioButton1->TabIndex = 5;
                     this->radioButton1->TabStop = true;
                     this->radioButton1->Text = L"Terjemahkan";
                     this->radioButton1->UseVisualStyleBackColor = false;
                     this->radioButton1->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton1_CheckedChanged);
                     //
                     // label2
                     //
                     this->label2->AutoSize = true;
                     this->label2->BackColor = System::Drawing::Color::Transparent;
                     this->label2->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->label2->ForeColor = System::Drawing::SystemColors::ControlLightLight;
                     this->label2->Location = System::Drawing::Point(77, 29);
                     this->label2->Name = L"label2";
                     this->label2->Size = System::Drawing::Size(113, 31);
                     this->label2->TabIndex = 6;
                     this->label2->Text = L"List Kata";
                     //
                     // listBox2
                     //
                     this->listBox2->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->listBox2->FormattingEnabled = true;
                     this->listBox2->ItemHeight = 31;
                     this->listBox2->Items->AddRange(gcnew cli::array< System::Object^  >(25) {L"Buku", L"Kamu", L"Pensil", L"Pulpen", L"Mobil",
                           L"Motor", L"Pesawat", L"Jembatan", L"Ikan", L"Tolong", L"Udara", L"Lemari", L"Cuaca", L"Listrik", L"Pesta", L"Langit", L"Sapu",
                           L"Kebahagiaan", L"Dompet", L"Petir", L"Suhu", L"Daerah", L"Apakah Kamu Bisa Bahasa Inggris", L"Darimana Kamu Berasal", L"Senang Bertemu Denganmu"});
                     this->listBox2->Location = System::Drawing::Point(194, 29);
                     this->listBox2->Name = L"listBox2";
                     this->listBox2->Size = System::Drawing::Size(222, 35);
                     this->listBox2->TabIndex = 7;
                     this->listBox2->SelectedIndexChanged += gcnew System::EventHandler(this, &Form1::listBox2_SelectedIndexChanged);
                     //
                     // textBox1
                     //
                     this->textBox1->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->textBox1->Location = System::Drawing::Point(352, 109);
                     this->textBox1->Multiline = true;
                     this->textBox1->Name = L"textBox1";
                     this->textBox1->Size = System::Drawing::Size(235, 188);
                     this->textBox1->TabIndex = 8;
                     //
                     // label1
                     //
                     this->label1->AutoSize = true;
                     this->label1->BackColor = System::Drawing::Color::Transparent;
                     this->label1->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->label1->ForeColor = System::Drawing::SystemColors::ControlLightLight;
                     this->label1->Location = System::Drawing::Point(77, 75);
                     this->label1->Name = L"label1";
                     this->label1->Size = System::Drawing::Size(138, 31);
                     this->label1->TabIndex = 9;
                     this->label1->Text = L"Detail Kata";
                     //
                     // label3
                     //
                     this->label3->AutoSize = true;
                     this->label3->BackColor = System::Drawing::Color::Transparent;
                     this->label3->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->label3->ForeColor = System::Drawing::SystemColors::ButtonHighlight;
                     this->label3->Location = System::Drawing::Point(346, 75);
                     this->label3->Name = L"label3";
                     this->label3->Size = System::Drawing::Size(140, 31);
                     this->label3->TabIndex = 10;
                     this->label3->Text = L"Terjemahan";
                     //
                     // label4
                     //
                     this->label4->AutoSize = true;
                     this->label4->BackColor = System::Drawing::Color::Transparent;
                     this->label4->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->label4->ForeColor = System::Drawing::SystemColors::ButtonHighlight;
                     this->label4->Location = System::Drawing::Point(206, 305);
                     this->label4->Name = L"label4";
                     this->label4->Size = System::Drawing::Size(267, 31);
                     this->label4->TabIndex = 11;
                     this->label4->Text = L"ALFAN HABIBILLAH";
                     //
                     // Form1
                     //
                     this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
                     this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
                     this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"$this.BackgroundImage")));
                     this->ClientSize = System::Drawing::Size(673, 345);
                     this->Controls->Add(this->label4);
                     this->Controls->Add(this->label3);
                     this->Controls->Add(this->label1);
                     this->Controls->Add(this->textBox1);
                     this->Controls->Add(this->listBox2);
                     this->Controls->Add(this->label2);
                     this->Controls->Add(this->radioButton1);
                     this->Controls->Add(this->button1);
                     this->Controls->Add(this->textBox2);
                     this->Name = L"Form1";
                     this->Text = L"Kamus Bahasa Inggris";
                     this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
                     this->ResumeLayout(false);
                     this->PerformLayout();

              }
#pragma endregion
       private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e)
                      {
//===================================================================
     if (listBox2->Text == "Kamu")
                           {
                                  textBox2->Text ="Kamu";
                            if (radioButton1->Checked){     
                                   textBox1->Text = "You";
                            }}
//===================================================================
        if (listBox2->Text == "Buku")
                           {
                             textBox2->Text ="Buku";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Book";
                            }}
//===================================================================
        if (listBox2->Text == "Pensil")
                           {
                             textBox2->Text ="Pensil";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Pencil";
                            }}
//===================================================================
         if (listBox2->Text == "Pulpen")
                           {
                             textBox2->Text ="Pulpen";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Pen";
                            }}
//===================================================================
         if (listBox2->Text == "Mobil")
                           {
                             textBox2->Text ="Mobil";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Car";
                            }}
//===================================================================
         if (listBox2->Text == "Motor")
                           {
                             textBox2->Text ="Motor";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Motorcycle";
                            }}
//===================================================================
         if (listBox2->Text == "Pesawat")
                           {
                             textBox2->Text ="Pesawat";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Plane";
                            }}
//===================================================================
         if (listBox2->Text == "Jembatan")
                           {
                             textBox2->Text ="Jembatan";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Bridge";
                            }}
//===================================================================
          if (listBox2->Text == "Ikan")
                           {
                             textBox2->Text ="Ikan";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Fish";
                            }}
//===================================================================
           if (listBox2->Text == "Tolong")
                           {
                             textBox2->Text ="Tolong";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Help";
                            }}
//===================================================================
              if (listBox2->Text == "Udara")
                           {
                             textBox2->Text ="Udara";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Air";
                            }}
//===================================================================
              if (listBox2->Text == "Lemari")
                           {
                             textBox2->Text ="Lemari";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Cupboard";
                            }}
//===================================================================
              if (listBox2->Text == "Cuaca")
                           {
                             textBox2->Text ="Cuaca";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Weather";
                            }}
//===================================================================
              if (listBox2->Text == "Listrik")
                           {
                             textBox2->Text ="Listrik";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Electricity";
                            }}
//===================================================================
              if (listBox2->Text == "Petir")
                           {
                             textBox2->Text ="Petir";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="ThunderBolt";
                            }}
//===================================================================
              if (listBox2->Text == "Suhu")
                           {
                             textBox2->Text ="Suhu";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Temperature";
                            }}
//===================================================================
              if (listBox2->Text == "Daerah")
                           {
                             textBox2->Text ="Daerah";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Area";
                            }}
//===================================================================
              if (listBox2->Text == "Pesta")
                           {
                             textBox2->Text ="Pesta";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Party";
                            }}
//===================================================================
              if (listBox2->Text == "Langit")
                           {
                             textBox2->Text ="Langit";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Sky";
                            }}
//===================================================================
              if (listBox2->Text == "Sapu")
                           {
                             textBox2->Text ="Sapu";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Broom";
                            }}
//===================================================================
              if (listBox2->Text == "Kebahagiaan")
                           {
                             textBox2->Text ="Kebahagiaan";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Happinest";
                            }}
//===================================================================
              if (listBox2->Text == "Dompet")
                           {
                             textBox2->Text ="Dompet";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Wallet";
                            }}
//===================================================================
              if (listBox2->Text == "Apakah Kamu Bisa Bahasa Inggris")
                           {
                             textBox2->Text ="Apakah Kamu Bisa Bahasa Inggris";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Do You Speak English";
                            }}
//===================================================================
              if (listBox2->Text == "Darimana Kamu Berasal")
                           {
                             textBox2->Text ="Darimana Kamu Berasal";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Where Are You From";
                            }}
//===================================================================
              if (listBox2->Text == "Senang Bertemu Denganmu")
                           {
                             textBox2->Text ="Senang Bertemu Denganmu";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Nice To Meet You";
                            }}
//===================================================================
                      }
       private: System::Void label1_Click(System::Object^  sender, System::EventArgs^  e) {
                      }
private: System::Void radioButton1_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
               }
private: System::Void listBox2_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
               }
private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
               }
};
}



APLIKASI KAMUS SEDERHANA
Pada tugas ini saya akan membuat aplikasi kamus sederhana dengan menggunakan Microsoft Visual C++ 2010. Kamus ini akan menampilkan kata-kata bahasa inggris atau bisa juga untuk kamus teknologi dan memberikan terjemahan atau definisi dari kata tersebut. Supaya sedikit memudahkan kita untuk mengartikan kata kata yang sulit dipahami atau dimengerti. Pada aplikasi kamus sederhana ini tidak memakai database jadi aplikasi ini hanya memasukkan kata atau kalimat di coding yang ingin kita terjemah untuk memudahkan dan mengingat. Terjemahannya dari bahasa indonesia ke bahasa inggris atau sebaliknya.
1.     Spesifikasi aplikasi
Komponen yang diperlukan adalah sebagai berikut:
1.      Label                 
2.      Button               
3.      Radio Button 
4.      TextBox 
5.      ListBox          
6.      Beberapa icon yang ditampilkan 

Komponen
Property
Nilai
Form
Text
Kamus Bahasa Inggris

Image
TextBox 1
Name
textBox1

Multiline
True

Text
-
TextBox 2
Name
textBox2

Multiline
True

Text
-
ListBox
Name
listBox2
Button
Name
button1

Image

Text
-


Radio Button
Text
Terjemahkan

Name
radioButton1
Label 1
Name
label1

Text
Detail Kata
Label 2
Name
label2

Text
List Kata
Label 3
Name
label3

Text
Terjemahan
Label 4
Name
label4

Text
ALFAN HABIBILLAH

2.     Listing program
Listing program sebagai berikut:

#pragma once

namespace TUGASAKHIRALFAN {

       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
       /// </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;
                     }
              }

       protected:
       private: System::Windows::Forms::TextBox^  textBox2;
       private: System::Windows::Forms::Button^  button1;


       private: System::Windows::Forms::RadioButton^  radioButton1;
       private: System::Windows::Forms::Label^  label2;
       private: System::Windows::Forms::ListBox^  listBox2;
       private: System::Windows::Forms::TextBox^  textBox1;
       private: System::Windows::Forms::Label^  label1;
       private: System::Windows::Forms::Label^  label3;
       private: System::Windows::Forms::Label^  label4;




       private:
              /// <summary>
              /// Required designer variable.
              /// </summary>
              System::ComponentModel::Container ^components;

#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->textBox2 = (gcnew System::Windows::Forms::TextBox());
                     this->button1 = (gcnew System::Windows::Forms::Button());
                     this->radioButton1 = (gcnew System::Windows::Forms::RadioButton());
                     this->label2 = (gcnew System::Windows::Forms::Label());
                     this->listBox2 = (gcnew System::Windows::Forms::ListBox());
                     this->textBox1 = (gcnew System::Windows::Forms::TextBox());
                     this->label1 = (gcnew System::Windows::Forms::Label());
                     this->label3 = (gcnew System::Windows::Forms::Label());
                     this->label4 = (gcnew System::Windows::Forms::Label());
                     this->SuspendLayout();
                     //
                     // textBox2
                     //
                     this->textBox2->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->textBox2->Location = System::Drawing::Point(83, 109);
                     this->textBox2->Multiline = true;
                     this->textBox2->Name = L"textBox2";
                     this->textBox2->Size = System::Drawing::Size(235, 188);
                     this->textBox2->TabIndex = 1;
                     //
                     // button1
                     //
                     this->button1->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"button1.BackgroundImage")));
                     this->button1->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
                     this->button1->Font = (gcnew System::Drawing::Font(L"Times New Roman", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->button1->Location = System::Drawing::Point(422, 28);
                     this->button1->Name = L"button1";
                     this->button1->Size = System::Drawing::Size(64, 42);
                     this->button1->TabIndex = 2;
                     this->button1->UseVisualStyleBackColor = true;
                     this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
                     //
                     // radioButton1
                     //
                     this->radioButton1->AutoSize = true;
                     this->radioButton1->BackColor = System::Drawing::Color::Transparent;
                     this->radioButton1->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->radioButton1->ForeColor = System::Drawing::SystemColors::ControlLightLight;
                     this->radioButton1->Location = System::Drawing::Point(490, 27);
                     this->radioButton1->Name = L"radioButton1";
                     this->radioButton1->Size = System::Drawing::Size(171, 35);
                     this->radioButton1->TabIndex = 5;
                     this->radioButton1->TabStop = true;
                     this->radioButton1->Text = L"Terjemahkan";
                     this->radioButton1->UseVisualStyleBackColor = false;
                     this->radioButton1->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton1_CheckedChanged);
                     //
                     // label2
                     //
                     this->label2->AutoSize = true;
                     this->label2->BackColor = System::Drawing::Color::Transparent;
                     this->label2->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->label2->ForeColor = System::Drawing::SystemColors::ControlLightLight;
                     this->label2->Location = System::Drawing::Point(77, 29);
                     this->label2->Name = L"label2";
                     this->label2->Size = System::Drawing::Size(113, 31);
                     this->label2->TabIndex = 6;
                     this->label2->Text = L"List Kata";
                     //
                     // listBox2
                     //
                     this->listBox2->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->listBox2->FormattingEnabled = true;
                     this->listBox2->ItemHeight = 31;
                     this->listBox2->Items->AddRange(gcnew cli::array< System::Object^  >(25) {L"Buku", L"Kamu", L"Pensil", L"Pulpen", L"Mobil",
                           L"Motor", L"Pesawat", L"Jembatan", L"Ikan", L"Tolong", L"Udara", L"Lemari", L"Cuaca", L"Listrik", L"Pesta", L"Langit", L"Sapu",
                           L"Kebahagiaan", L"Dompet", L"Petir", L"Suhu", L"Daerah", L"Apakah Kamu Bisa Bahasa Inggris", L"Darimana Kamu Berasal", L"Senang Bertemu Denganmu"});
                     this->listBox2->Location = System::Drawing::Point(194, 29);
                     this->listBox2->Name = L"listBox2";
                     this->listBox2->Size = System::Drawing::Size(222, 35);
                     this->listBox2->TabIndex = 7;
                     this->listBox2->SelectedIndexChanged += gcnew System::EventHandler(this, &Form1::listBox2_SelectedIndexChanged);
                     //
                     // textBox1
                     //
                     this->textBox1->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->textBox1->Location = System::Drawing::Point(352, 109);
                     this->textBox1->Multiline = true;
                     this->textBox1->Name = L"textBox1";
                     this->textBox1->Size = System::Drawing::Size(235, 188);
                     this->textBox1->TabIndex = 8;
                     //
                     // label1
                     //
                     this->label1->AutoSize = true;
                     this->label1->BackColor = System::Drawing::Color::Transparent;
                     this->label1->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->label1->ForeColor = System::Drawing::SystemColors::ControlLightLight;
                     this->label1->Location = System::Drawing::Point(77, 75);
                     this->label1->Name = L"label1";
                     this->label1->Size = System::Drawing::Size(138, 31);
                     this->label1->TabIndex = 9;
                     this->label1->Text = L"Detail Kata";
                     //
                     // label3
                     //
                     this->label3->AutoSize = true;
                     this->label3->BackColor = System::Drawing::Color::Transparent;
                     this->label3->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->label3->ForeColor = System::Drawing::SystemColors::ButtonHighlight;
                     this->label3->Location = System::Drawing::Point(346, 75);
                     this->label3->Name = L"label3";
                     this->label3->Size = System::Drawing::Size(140, 31);
                     this->label3->TabIndex = 10;
                     this->label3->Text = L"Terjemahan";
                     //
                     // label4
                     //
                     this->label4->AutoSize = true;
                     this->label4->BackColor = System::Drawing::Color::Transparent;
                     this->label4->Font = (gcnew System::Drawing::Font(L"Times New Roman", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
                           static_cast<System::Byte>(0)));
                     this->label4->ForeColor = System::Drawing::SystemColors::ButtonHighlight;
                     this->label4->Location = System::Drawing::Point(206, 305);
                     this->label4->Name = L"label4";
                     this->label4->Size = System::Drawing::Size(267, 31);
                     this->label4->TabIndex = 11;
                     this->label4->Text = L"ALFAN HABIBILLAH";
                     //
                     // Form1
                     //
                     this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
                     this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
                     this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"$this.BackgroundImage")));
                     this->ClientSize = System::Drawing::Size(673, 345);
                     this->Controls->Add(this->label4);
                     this->Controls->Add(this->label3);
                     this->Controls->Add(this->label1);
                     this->Controls->Add(this->textBox1);
                     this->Controls->Add(this->listBox2);
                     this->Controls->Add(this->label2);
                     this->Controls->Add(this->radioButton1);
                     this->Controls->Add(this->button1);
                     this->Controls->Add(this->textBox2);
                     this->Name = L"Form1";
                     this->Text = L"Kamus Bahasa Inggris";
                     this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
                     this->ResumeLayout(false);
                     this->PerformLayout();

              }
#pragma endregion
       private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e)
                      {
//===================================================================
     if (listBox2->Text == "Kamu")
                           {
                                  textBox2->Text ="Kamu";
                            if (radioButton1->Checked){     
                                   textBox1->Text = "You";
                            }}
//===================================================================
        if (listBox2->Text == "Buku")
                           {
                             textBox2->Text ="Buku";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Book";
                            }}
//===================================================================
        if (listBox2->Text == "Pensil")
                           {
                             textBox2->Text ="Pensil";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Pencil";
                            }}
//===================================================================
         if (listBox2->Text == "Pulpen")
                           {
                             textBox2->Text ="Pulpen";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Pen";
                            }}
//===================================================================
         if (listBox2->Text == "Mobil")
                           {
                             textBox2->Text ="Mobil";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Car";
                            }}
//===================================================================
         if (listBox2->Text == "Motor")
                           {
                             textBox2->Text ="Motor";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Motorcycle";
                            }}
//===================================================================
         if (listBox2->Text == "Pesawat")
                           {
                             textBox2->Text ="Pesawat";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Plane";
                            }}
//===================================================================
         if (listBox2->Text == "Jembatan")
                           {
                             textBox2->Text ="Jembatan";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Bridge";
                            }}
//===================================================================
          if (listBox2->Text == "Ikan")
                           {
                             textBox2->Text ="Ikan";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Fish";
                            }}
//===================================================================
           if (listBox2->Text == "Tolong")
                           {
                             textBox2->Text ="Tolong";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Help";
                            }}
//===================================================================
              if (listBox2->Text == "Udara")
                           {
                             textBox2->Text ="Udara";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Air";
                            }}
//===================================================================
              if (listBox2->Text == "Lemari")
                           {
                             textBox2->Text ="Lemari";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Cupboard";
                            }}
//===================================================================
              if (listBox2->Text == "Cuaca")
                           {
                             textBox2->Text ="Cuaca";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Weather";
                            }}
//===================================================================
              if (listBox2->Text == "Listrik")
                           {
                             textBox2->Text ="Listrik";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Electricity";
                            }}
//===================================================================
              if (listBox2->Text == "Petir")
                           {
                             textBox2->Text ="Petir";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="ThunderBolt";
                            }}
//===================================================================
              if (listBox2->Text == "Suhu")
                           {
                             textBox2->Text ="Suhu";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Temperature";
                            }}
//===================================================================
              if (listBox2->Text == "Daerah")
                           {
                             textBox2->Text ="Daerah";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Area";
                            }}
//===================================================================
              if (listBox2->Text == "Pesta")
                           {
                             textBox2->Text ="Pesta";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Party";
                            }}
//===================================================================
              if (listBox2->Text == "Langit")
                           {
                             textBox2->Text ="Langit";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Sky";
                            }}
//===================================================================
              if (listBox2->Text == "Sapu")
                           {
                             textBox2->Text ="Sapu";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Broom";
                            }}
//===================================================================
              if (listBox2->Text == "Kebahagiaan")
                           {
                             textBox2->Text ="Kebahagiaan";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Happinest";
                            }}
//===================================================================
              if (listBox2->Text == "Dompet")
                           {
                             textBox2->Text ="Dompet";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Wallet";
                            }}
//===================================================================
              if (listBox2->Text == "Apakah Kamu Bisa Bahasa Inggris")
                           {
                             textBox2->Text ="Apakah Kamu Bisa Bahasa Inggris";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Do You Speak English";
                            }}
//===================================================================
              if (listBox2->Text == "Darimana Kamu Berasal")
                           {
                             textBox2->Text ="Darimana Kamu Berasal";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Where Are You From";
                            }}
//===================================================================
              if (listBox2->Text == "Senang Bertemu Denganmu")
                           {
                             textBox2->Text ="Senang Bertemu Denganmu";
                            if (radioButton1->Checked){     
                                   textBox1->Text ="Nice To Meet You";
                            }}
//===================================================================
                      }
       private: System::Void label1_Click(System::Object^  sender, System::EventArgs^  e) {
                      }
private: System::Void radioButton1_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
               }
private: System::Void listBox2_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
               }
private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
               }
};
}

1.     HASIL AKHIR DESAIN APLIKASI