Muhammad al-xorazmiy nomidagi toshkent axborot texnologiyalari universiteti dasturlash 2(C++)fanidan



Download 159,19 Kb.
Sana14.07.2022
Hajmi159,19 Kb.
#801252
Bog'liq
Титулка1111



MUHAMMAD AL-XORAZMIY NOMIDAGI
TOSHKENT AXBOROT TEXNOLOGIYALARI UNIVERSITETI
Dasturlash 2(C++)fanidan


5-Labaratoriya ishi


Guruh: SWD015-L1
Bajardi: Azamatov Mexrojbek
Tekshirdi: Qurbonov Feruz, Babajanov Mo’min

TOSHKENT-2022
6-variant:

6. Dastur natijalarini ko‘rsatish uchun formaga bir nechta komponentalarni (5 TextBox komponentasi, 5 Label komponentasi, 3 Button komponentasi va bitta Chart komponenti) joylashtiring Shu bilan birga, Anchor xususiyatidan foydalanib (asosiy komponentga bog‘lash) formaning chapdan chap chetiga joylashgan komponentlarni mahkamlang va o‘ngda joylashgan kompomentalarni o‘ng tomonga bog‘lang. "Shakl", "Hisoblash" va "Chiqish" tugmalari pastki qismiga bog‘langan bo‘lishi kerak. Formaning o‘lchamini o‘zgartirganda, tugmalar kengligini qayta hisoblash yaxshidir, shunda ular formaning pastki chetiga "mahkamlangan" holda, mutanosib ravishda oshadi.?


Dastur kodi:


#pragma once
namespace amaliyot2 {
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 for forma
///

public ref class forma : public System::Windows::Forms::Form
{
public:
forma(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
///
/// Clean up any resources being used.
///

~forma()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ start;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::TextBox^ textBox1;
private: System::Windows::Forms::TextBox^ textBox2;
private: System::Windows::Forms::CheckBox^ checkBox1;
private: System::Windows::Forms::Label^ label3;
private: System::Windows::Forms::Label^ label4;
protected:
protected:
private:
///
/// Required designer variable.
///

System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///

void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(forma::typeid));
this->start = (gcnew System::Windows::Forms::Button());
this->label1 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->textBox2 = (gcnew System::Windows::Forms::TextBox());
this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
this->label3 = (gcnew System::Windows::Forms::Label());
this->label4 = (gcnew System::Windows::Forms::Label());
this->SuspendLayout();
//
// start
//
this->start->BackColor = System::Drawing::Color::FromArgb(static_cast(static_cast(128)), static_cast(static_cast(255)),
static_cast(static_cast(128)));
this->start->Font = (gcnew System::Drawing::Font(L"Algerian", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast(0)));
this->start->Location = System::Drawing::Point(12, 114);
this->start->Name = L"start";
this->start->Size = System::Drawing::Size(108, 40);
this->start->TabIndex = 0;
this->start->Text = L"start";
this->start->UseVisualStyleBackColor = false;
this->start->Click += gcnew System::EventHandler(this, &forma::button1_Click);
//
// label1
//
this->label1->AutoSize = true;
this->label1->BackColor = System::Drawing::SystemColors::ButtonFace;
this->label1->Font = (gcnew System::Drawing::Font(L"Agency FB", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast(0)));
this->label1->Location = System::Drawing::Point(12, 18);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(57, 32);
this->label1->TabIndex = 1;
this->label1->Text = L"Login";
//
// label2
//
this->label2->AutoSize = true;
this->label2->BackColor = System::Drawing::SystemColors::ButtonFace;
this->label2->BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D;
this->label2->Font = (gcnew System::Drawing::Font(L"Agency FB", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast(0)));
this->label2->Location = System::Drawing::Point(12, 63);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(61, 34);
this->label2->TabIndex = 2;
this->label2->Text = L"Parol";
//
// textBox1
//
this->textBox1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast(204)));
this->textBox1->Location = System::Drawing::Point(75, 15);
this->textBox1->Name = L"textBox1";
this->textBox1->Size = System::Drawing::Size(259, 38);
this->textBox1->TabIndex = 3;
this->textBox1->TextChanged += gcnew System::EventHandler(this, &forma::textBox1_TextChanged);
//
// textBox2
//
this->textBox2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast(204)));
this->textBox2->Location = System::Drawing::Point(75, 60);
this->textBox2->Name = L"textBox2";
this->textBox2->Size = System::Drawing::Size(259, 38);
this->textBox2->TabIndex = 4;
this->textBox2->TextChanged += gcnew System::EventHandler(this, &forma::textBox2_TextChanged);
//
// checkBox1
//
this->checkBox1->AutoSize = true;
this->checkBox1->BackColor = System::Drawing::Color::White;
this->checkBox1->Font = (gcnew System::Drawing::Font(L"Algerian", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast(0)));
this->checkBox1->Location = System::Drawing::Point(149, 118);
this->checkBox1->Name = L"checkBox1";
this->checkBox1->Size = System::Drawing::Size(176, 34);
this->checkBox1->TabIndex = 5;
this->checkBox1->Text = L"belgilang";
this->checkBox1->UseVisualStyleBackColor = false;
this->checkBox1->CheckedChanged += gcnew System::EventHandler(this, &forma::checkBox1_CheckedChanged);
//
// label3
//
this->label3->AutoSize = true;
this->label3->BackColor = System::Drawing::Color::FromArgb(static_cast(static_cast(0)), static_cast(static_cast(192)),
static_cast(static_cast(192)));
this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast(204)));
this->label3->Location = System::Drawing::Point(41, 194);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(149, 31);
this->label3->TabIndex = 6;
this->label3->Text = L"ism famliya";
this->label3->Click += gcnew System::EventHandler(this, &forma::label3_Click);
//
// label4
//
this->label4->AutoSize = true;
this->label4->BackColor = System::Drawing::Color::Aqua;
this->label4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 20.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast(204)));
this->label4->Location = System::Drawing::Point(41, 252);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(87, 31);
this->label4->TabIndex = 7;
this->label4->Text = L"guruxi";
this->label4->Click += gcnew System::EventHandler(this, &forma::label4_Click);
//
// forma
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->BackgroundImage = (cli::safe_cast(resources->GetObject(L"$this.BackgroundImage")));
this->ClientSize = System::Drawing::Size(622, 304);
this->Controls->Add(this->label4);
this->Controls->Add(this->label3);
this->Controls->Add(this->checkBox1);
this->Controls->Add(this->textBox2);
this->Controls->Add(this->textBox1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->start);
this->Name = L"forma";
this->Text = L"forma";
this->Load += gcnew System::EventHandler(this, &forma::forma_Load);
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
if(textBox1->Text=="Xayotjon" && textBox2->Text=="Umaraliyev")
label3->Text="Xayotjon Umaraliyev 216-21-gurux";
else
label3->Text="ERROR";
}
private: System::Void forma_Load(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void textBox1_TextChanged(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void checkBox1_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
label4->Text="SWD-003";
}
private: System::Void label3_Click(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void label4_Click(System::Object^ sender, System::EventArgs^ e) {
}
private: System::Void textBox2_TextChanged(System::Object^ sender, System::EventArgs^ e) {
}
};
}

Dastur kodi:



Download 159,19 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish