Visual Studio dasturining Visual C++ dasturlash tilida kichik loyihalar yaratish Loyiha bu
Download 1.55 Mb.
|
Visual Studio dasturida MB ni vizuallashtirish
// tabPage1 // this->tabPage1->BackColor = System::Drawing::Color::WhiteSmoke; this->tabPage1->Controls->Add(this->textBox6); this->tabPage1->Controls->Add(this->label8); this->tabPage1->Controls->Add(this->label7); this->tabPage1->Controls->Add(this->textBox8); this->tabPage1->Controls->Add(this->label6); this->tabPage1->Controls->Add(this->textBox7); this->tabPage1->Controls->Add(this->label5); this->tabPage1->Controls->Add(this->textBox5); this->tabPage1->Controls->Add(this->label4); this->tabPage1->Controls->Add(this->textBox4); this->tabPage1->Controls->Add(this->label3); this->tabPage1->Controls->Add(this->textBox3); this->tabPage1->Controls->Add(this->label2); this->tabPage1->Controls->Add(this->textBox2); this->tabPage1->Controls->Add(this->label1); this->tabPage1->Controls->Add(this->textBox1); this->tabPage1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->tabPage1->Location = System::Drawing::Point(4, 26); this->tabPage1->Name = L"tabPage1"; this->tabPage1->Padding = System::Windows::Forms::Padding(3); this->tabPage1->Size = System::Drawing::Size(527, 345); this->tabPage1->TabIndex = 0; this->tabPage1->Text = L"Asosiy ma`lumotlar"; // // textBox6 // this->textBox6->Location = System::Drawing::Point(168, 225); this->textBox6->Multiline = true; this->textBox6->Name = L"textBox6"; this->textBox6->Size = System::Drawing::Size(353, 33); this->textBox6->TabIndex = 5; this->textBox6->Text = L"A,B,V"; this->textBox6->TextChanged += gcnew System::EventHandler(this, &Studentlarni_yangilash::textBox6_TextChanged); // // label8 // this->label8->AutoSize = true; this->label8->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label8->Location = System::Drawing::Point(12, 308); this->label8->Name = L"label8"; this->label8->Size = System::Drawing::Size(83, 24); this->label8->TabIndex = 3; this->label8->Text = L"Telefoni:"; // // label7 // this->label7->AutoSize = true; this->label7->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label7->Location = System::Drawing::Point(12, 267); this->label7->Name = L"label7"; this->label7->Size = System::Drawing::Size(132, 24); this->label7->TabIndex = 3; this->label7->Text = L"Qavat_nomeri:"; // // textBox8 // this->textBox8->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox8->Location = System::Drawing::Point(169, 305); this->textBox8->Multiline = true; this->textBox8->Name = L"textBox8"; this->textBox8->Size = System::Drawing::Size(354, 34); this->textBox8->TabIndex = 7; // // label6 // this->label6->AutoSize = true; this->label6->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label6->Location = System::Drawing::Point(12, 227); this->label6->Name = L"label6"; this->label6->Size = System::Drawing::Size(100, 24); this->label6->TabIndex = 3; this->label6->Text = L"Bino nomi:"; // // textBox7 // this->textBox7->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox7->Location = System::Drawing::Point(169, 264); this->textBox7->Multiline = true; this->textBox7->Name = L"textBox7"; this->textBox7->Size = System::Drawing::Size(354, 34); this->textBox7->TabIndex = 6; // // label5 // this->label5->AutoSize = true; this->label5->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label5->Location = System::Drawing::Point(12, 188); this->label5->Name = L"label5"; this->label5->Size = System::Drawing::Size(125, 24); this->label5->TabIndex = 3; this->label5->Text = L"Xona nomeri:"; // // textBox5 // this->textBox5->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox5->Location = System::Drawing::Point(169, 185); this->textBox5->Multiline = true; this->textBox5->Name = L"textBox5"; this->textBox5->Size = System::Drawing::Size(354, 34); this->textBox5->TabIndex = 4; this->textBox5->TextChanged += gcnew System::EventHandler(this, &Studentlarni_yangilash::textBox5_TextChanged); // // label4 // this->label4->AutoSize = true; this->label4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label4->Location = System::Drawing::Point(12, 149); this->label4->Name = L"label4"; this->label4->Size = System::Drawing::Size(72, 24); this->label4->TabIndex = 1; this->label4->Text = L"Guruhi:"; // // textBox4 // this->textBox4->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox4->Location = System::Drawing::Point(169, 146); this->textBox4->Multiline = true; this->textBox4->Name = L"textBox4"; this->textBox4->Size = System::Drawing::Size(354, 34); this->textBox4->TabIndex = 3; this->textBox4->TextChanged += gcnew System::EventHandler(this, &Studentlarni_yangilash::textBox4_TextChanged); // // label3 // this->label3->AutoSize = true; this->label3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label3->Location = System::Drawing::Point(12, 109); this->label3->Name = L"label3"; this->label3->Size = System::Drawing::Size(62, 24); this->label3->TabIndex = 1; this->label3->Text = L"Sharfi:"; // // textBox3 // this->textBox3->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox3->Location = System::Drawing::Point(169, 106); this->textBox3->Multiline = true; this->textBox3->Name = L"textBox3"; this->textBox3->Size = System::Drawing::Size(354, 34); this->textBox3->TabIndex = 2; // // label2 // this->label2->AutoSize = true; this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label2->Location = System::Drawing::Point(12, 69); this->label2->Name = L"label2"; this->label2->Size = System::Drawing::Size(48, 24); this->label2->TabIndex = 1; this->label2->Text = L"Ismi:"; // // textBox2 // this->textBox2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox2->Location = System::Drawing::Point(169, 66); this->textBox2->Multiline = true; this->textBox2->Name = L"textBox2"; this->textBox2->Size = System::Drawing::Size(354, 34); this->textBox2->TabIndex = 1; // // label1 // this->label1->AutoSize = true; this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label1->Location = System::Drawing::Point(12, 28); this->label1->Name = L"label1"; this->label1->Size = System::Drawing::Size(53, 24); this->label1->TabIndex = 1; this->label1->Text = L"Fam:"; // // textBox1 // this->textBox1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox1->Location = System::Drawing::Point(169, 25); this->textBox1->Multiline = true; this->textBox1->Name = L"textBox1"; this->textBox1->Size = System::Drawing::Size(354, 34); this->textBox1->TabIndex = 0; // // tabPage2 // this->tabPage2->BackColor = System::Drawing::Color::WhiteSmoke; this->tabPage2->Controls->Add(this->label9); this->tabPage2->Controls->Add(this->label10); this->tabPage2->Controls->Add(this->textBox9); this->tabPage2->Controls->Add(this->label11); this->tabPage2->Controls->Add(this->textBox10); this->tabPage2->Controls->Add(this->textBox11); this->tabPage2->Controls->Add(this->label13); this->tabPage2->Controls->Add(this->textBox13); this->tabPage2->Controls->Add(this->label14); this->tabPage2->Controls->Add(this->textBox14); this->tabPage2->Controls->Add(this->label15); this->tabPage2->Controls->Add(this->textBox15); this->tabPage2->Controls->Add(this->label16); this->tabPage2->Controls->Add(this->textBox16); this->tabPage2->Location = System::Drawing::Point(4, 26); this->tabPage2->Name = L"tabPage2"; this->tabPage2->Padding = System::Windows::Forms::Padding(3); this->tabPage2->Size = System::Drawing::Size(527, 345); this->tabPage2->TabIndex = 1; this->tabPage2->Text = L"Qo`shimcha ma`lumotlar_1"; // // label9 // this->label9->AutoSize = true; this->label9->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label9->Location = System::Drawing::Point(15, 265); this->label9->Name = L"label9"; this->label9->Size = System::Drawing::Size(129, 24); this->label9->TabIndex = 16; this->label9->Text = L"Tugilgan kuni:"; // // label10 // this->label10->AutoSize = true; this->label10->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label10->Location = System::Drawing::Point(15, 224); this->label10->Name = L"label10"; this->label10->Size = System::Drawing::Size(118, 24); this->label10->TabIndex = 17; this->label10->Text = L"Tugilgan oyi:"; // // textBox9 // this->textBox9->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox9->Location = System::Drawing::Point(167, 19); this->textBox9->Multiline = true; this->textBox9->Name = L"textBox9"; this->textBox9->Size = System::Drawing::Size(333, 34); this->textBox9->TabIndex = 0; // // label11 // this->label11->AutoSize = true; this->label11->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label11->Location = System::Drawing::Point(15, 184); this->label11->Name = L"label11"; this->label11->Size = System::Drawing::Size(115, 24); this->label11->TabIndex = 18; this->label11->Text = L"Tugilgan yili:"; // // textBox10 // this->textBox10->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox10->Location = System::Drawing::Point(167, 59); this->textBox10->Multiline = true; this->textBox10->Name = L"textBox10"; this->textBox10->Size = System::Drawing::Size(333, 34); this->textBox10->TabIndex = 1; // // textBox11 // this->textBox11->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox11->Location = System::Drawing::Point(167, 100); this->textBox11->Multiline = true; this->textBox11->Name = L"textBox11"; this->textBox11->Size = System::Drawing::Size(333, 34); this->textBox11->TabIndex = 2; this->textBox11->Text = L"12.12.1998"; this->textBox11->TextChanged += gcnew System::EventHandler(this, &Studentlarni_yangilash::textBox11_TextChanged); // // label13 // this->label13->AutoSize = true; this->label13->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label13->Location = System::Drawing::Point(15, 143); this->label13->Name = L"label13"; this->label13->Size = System::Drawing::Size(142, 24); this->label13->TabIndex = 8; this->label13->Text = L"Pasport nomeri:"; // // textBox13 // this->textBox13->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox13->Location = System::Drawing::Point(167, 140); this->textBox13->Multiline = true; this->textBox13->Name = L"textBox13"; this->textBox13->Size = System::Drawing::Size(333, 34); this->textBox13->TabIndex = 3; // // label14 // this->label14->AutoSize = true; this->label14->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label14->Location = System::Drawing::Point(15, 103); this->label14->Name = L"label14"; this->label14->Size = System::Drawing::Size(134, 24); this->label14->TabIndex = 9; this->label14->Text = L"Tugilgan sana:"; // // textBox14 // this->textBox14->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox14->Location = System::Drawing::Point(167, 180); this->textBox14->Multiline = true; this->textBox14->Name = L"textBox14"; this->textBox14->Size = System::Drawing::Size(333, 34); this->textBox14->TabIndex = 4; // // label15 // this->label15->AutoSize = true; this->label15->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label15->Location = System::Drawing::Point(15, 63); this->label15->Name = L"label15"; this->label15->Size = System::Drawing::Size(136, 24); this->label15->TabIndex = 10; this->label15->Text = L"Pasport seriasi:"; // // textBox15 // this->textBox15->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox15->Location = System::Drawing::Point(167, 220); this->textBox15->Multiline = true; this->textBox15->Name = L"textBox15"; this->textBox15->Size = System::Drawing::Size(333, 34); this->textBox15->TabIndex = 5; // // label16 // this->label16->AutoSize = true; this->label16->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label16->Location = System::Drawing::Point(12, 22); this->label16->Name = L"label16"; this->label16->Size = System::Drawing::Size(149, 24); this->label16->TabIndex = 11; this->label16->Text = L"Tugilgan viloyati:"; // // textBox16 // this->textBox16->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox16->Location = System::Drawing::Point(167, 260); this->textBox16->Multiline = true; this->textBox16->Name = L"textBox16"; this->textBox16->Size = System::Drawing::Size(333, 34); this->textBox16->TabIndex = 6; // // tabPage3 // this->tabPage3->BackColor = System::Drawing::Color::WhiteSmoke; this->tabPage3->Controls->Add(this->label17); this->tabPage3->Controls->Add(this->label12); this->tabPage3->Controls->Add(this->label20); this->tabPage3->Controls->Add(this->textBox20); this->tabPage3->Controls->Add(this->label21); this->tabPage3->Controls->Add(this->textBox21); this->tabPage3->Controls->Add(this->label22); this->tabPage3->Controls->Add(this->textBox22); this->tabPage3->Controls->Add(this->label23); this->tabPage3->Controls->Add(this->textBox17); this->tabPage3->Controls->Add(this->textBox23); this->tabPage3->Controls->Add(this->textBox12); this->tabPage3->Controls->Add(this->label24); this->tabPage3->Controls->Add(this->textBox24); this->tabPage3->Location = System::Drawing::Point(4, 26); this->tabPage3->Name = L"tabPage3"; this->tabPage3->Padding = System::Windows::Forms::Padding(3); this->tabPage3->Size = System::Drawing::Size(527, 345); this->tabPage3->TabIndex = 2; this->tabPage3->Text = L"Qo`shimcha ma`lumotlar_2"; // // label17 // this->label17->AutoSize = true; this->label17->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label17->Location = System::Drawing::Point(10, 275); this->label17->Name = L"label17"; this->label17->Size = System::Drawing::Size(87, 24); this->label17->TabIndex = 35; this->label17->Text = L"Bosqichi:"; // // label12 // this->label12->AutoSize = true; this->label12->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label12->Location = System::Drawing::Point(10, 233); this->label12->Name = L"label12"; this->label12->Size = System::Drawing::Size(150, 24); this->label12->TabIndex = 35; this->label12->Text = L"Yashash manzili:"; // // label20 // this->label20->AutoSize = true; this->label20->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label20->Location = System::Drawing::Point(10, 192); this->label20->Name = L"label20"; this->label20->Size = System::Drawing::Size(84, 24); this->label20->TabIndex = 35; this->label20->Text = L"Lavozim:"; // // textBox20 // this->textBox20->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox20->Location = System::Drawing::Point(175, 23); this->textBox20->Multiline = true; this->textBox20->Name = L"textBox20"; this->textBox20->Size = System::Drawing::Size(333, 34); this->textBox20->TabIndex = 0; // // label21 // this->label21->AutoSize = true; this->label21->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label21->Location = System::Drawing::Point(10, 153); this->label21->Name = L"label21"; this->label21->Size = System::Drawing::Size(52, 24); this->label21->TabIndex = 24; this->label21->Text = L"Jinsi:"; // // textBox21 // this->textBox21->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox21->Location = System::Drawing::Point(175, 63); this->textBox21->Multiline = true; this->textBox21->Name = L"textBox21"; this->textBox21->Size = System::Drawing::Size(333, 34); this->textBox21->TabIndex = 1; // // label22 // this->label22->AutoSize = true; this->label22->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label22->Location = System::Drawing::Point(10, 113); this->label22->Name = L"label22"; this->label22->Size = System::Drawing::Size(154, 24); this->label22->TabIndex = 25; this->label22->Text = L"Tug\'ilgan tumani:"; // // textBox22 // this->textBox22->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox22->Location = System::Drawing::Point(175, 103); this->textBox22->Multiline = true; this->textBox22->Name = L"textBox22"; this->textBox22->Size = System::Drawing::Size(333, 34); this->textBox22->TabIndex = 2; // // label23 // this->label23->AutoSize = true; this->label23->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label23->Location = System::Drawing::Point(10, 73); this->label23->Name = L"label23"; this->label23->Size = System::Drawing::Size(91, 24); this->label23->TabIndex = 26; this->label23->Text = L"Yonalishi:"; // // textBox17 // this->textBox17->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox17->Location = System::Drawing::Point(175, 265); this->textBox17->Multiline = true; this->textBox17->Name = L"textBox17"; this->textBox17->Size = System::Drawing::Size(333, 34); this->textBox17->TabIndex = 6; // // textBox23 // this->textBox23->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox23->Location = System::Drawing::Point(175, 143); this->textBox23->Multiline = true; this->textBox23->Name = L"textBox23"; this->textBox23->Size = System::Drawing::Size(333, 34); this->textBox23->TabIndex = 3; // // textBox12 // this->textBox12->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox12->Location = System::Drawing::Point(175, 223); this->textBox12->Multiline = true; this->textBox12->Name = L"textBox12"; this->textBox12->Size = System::Drawing::Size(333, 34); this->textBox12->TabIndex = 5; // // label24 // this->label24->AutoSize = true; this->label24->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->label24->Location = System::Drawing::Point(7, 32); this->label24->Name = L"label24"; this->label24->Size = System::Drawing::Size(84, 24); this->label24->TabIndex = 27; this->label24->Text = L"Fakulteti:"; // // textBox24 // this->textBox24->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->textBox24->Location = System::Drawing::Point(175, 182); this->textBox24->Multiline = true; this->textBox24->Name = L"textBox24"; this->textBox24->Size = System::Drawing::Size(333, 34); this->textBox24->TabIndex = 4; // // button1 // this->button1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->button1->Location = System::Drawing::Point(351, 387); this->button1->Name = L"button1"; this->button1->Size = System::Drawing::Size(131, 38); this->button1->TabIndex = 1; this->button1->Text = L"Yangilash"; this->button1->UseVisualStyleBackColor = true; this->button1->Click += gcnew System::EventHandler(this, &Studentlarni_yangilash::button1_Click); // // label18 // this->label18->AutoSize = true; this->label18->Location = System::Drawing::Point(180, 402); this->label18->Name = L"label18"; this->label18->Size = System::Drawing::Size(41, 13); this->label18->TabIndex = 8; this->label18->Text = L"label18"; this->label18->Visible = false; // // button2 // this->button2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 14.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast this->button2->Location = System::Drawing::Point(576, 385); this->button2->Name = L"button2"; this->button2->Size = System::Drawing::Size(132, 38); this->button2->TabIndex = 9; this->button2->Text = L"Saqlash"; this->button2->UseVisualStyleBackColor = true; this->button2->Click += gcnew System::EventHandler(this, &Studentlarni_yangilash::button2_Click); // // dataGridView1 // this->dataGridView1->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize; this->dataGridView1->Location = System::Drawing::Point(28, 235); this->dataGridView1->Name = L"dataGridView1"; this->dataGridView1->Size = System::Drawing::Size(132, 76); this->dataGridView1->TabIndex = 10; this->dataGridView1->Visible = false; // // Studentlarni_yangilash // this->AutoScaleDimensions = System::Drawing::SizeF(6, 13); this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; this->ClientSize = System::Drawing::Size(721, 430); this->Controls->Add(this->dataGridView1); this->Controls->Add(this->button2); this->Controls->Add(this->label18); this->Controls->Add(this->button1); this->Controls->Add(this->tabControl1); this->Controls->Add(this->pictureBox1); this->MaximizeBox = false; this->Name = L"Studentlarni_yangilash"; this->StartPosition = System::Windows::Forms::FormStartPosition::Manual; this->Text = L"Studentlarning ma\'lumotlarini yangilash oynasi"; this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &Studentlarni_yangilash::Studentlarni_yangilash_FormClosed); this->Load += gcnew System::EventHandler(this, &Studentlarni_yangilash::Studentlarni_yangilash_Load); (cli::safe_cast this->tabControl1->ResumeLayout(false); this->tabPage1->ResumeLayout(false); this->tabPage1->PerformLayout(); this->tabPage2->ResumeLayout(false); this->tabPage2->PerformLayout(); this->tabPage3->ResumeLayout(false); this->tabPage3->PerformLayout(); (cli::safe_cast this->ResumeLayout(false); this->PerformLayout(); } #pragma endregion private: array<unsigned char>^ SaveRasm(){ MemoryStream^ ms=gcnew MemoryStream(); pictureBox1->Image->Save(ms,pictureBox1->Image->RawFormat); return ms->GetBuffer(); } DataSet ^ НаборДанных; OleDb::OleDbDataAdapter ^ Адаптер; OleDb::OleDbConnection ^ Ulanish; OleDb::OleDbCommand ^ Команда; public: static int Id, Kornat; private: void ornatish(int h){ //ulanish_new(); OleDbConnection^ con = gcnew OleDbConnection("Data Source=\"TTJ.mdb\";User " + "ID=Admin;Provider=\"Microsoft.Jet.OLEDB.4.0\";"); con->Open(); if(h==1){ try{ //if(DialogResult.Equals( MessageBox::Show("Ma'lumotlarni yangilash", "Haqiqatdan ham ushbu talabani yangilamoqchimisiz?", //MessageBoxButtons::OKCancel, MessageBoxIcon::Information))!=0) Команда = gcnew OleDb::OleDbCommand("Select * From [Talabalar]", con); Команда->CommandText = "UPDATE Talabalar SET Fam = @Fam, Ism = @Ism, Sharf = @Sharf, Guruh = @Guruh, Xona_nomeri = @Xona_nomeri, Blok_nomi = @Blok_nomi,"+ "Qavat_nomeri = @Qavat_nomeri, Telefoni = @Telefoni, Tugilgan_viloyati = @Tugilgan_viloyati, Pasport_seriasi = @Pasport_seriasi, "+ " Tugilgan_Sana = @Tugilgan_Sana, Pasport_nomeri = @Pasport_nomeri, Tugilgan_yili = @Tugilgan_yili, Tugilgan_oyi = @Tugilgan_oyi,"+ " Tugilgan_kuni = @Tugilgan_kuni, Fakulteti = @Fakulteti, Yonalishi = @Yonalishi, Tugilgan_tumani = @Tugilgan_tumani,"+ " Jinsi = @Jinsi, Lavozim = @Lavozim, Yashash_manzili = @Yashash_manzili, Bosqich = @Bosqich, Rasm = @Rasm WHERE id = @Id"; Команда->Parameters->AddWithValue("@Fam",textBox1->Text); Команда->Parameters->AddWithValue("@Ism",textBox2->Text); Команда->Parameters->AddWithValue("@Sharf",textBox3->Text); Команда->Parameters->AddWithValue("@Guruh",textBox4->Text); Команда->Parameters->AddWithValue("@Xona_nomeri",textBox5->Text); Команда->Parameters->AddWithValue("@Blok_nomi",textBox6->Text); Команда->Parameters->AddWithValue("@Qavat_nomeri",textBox7->Text); Команда->Parameters->AddWithValue("@Telefoni",textBox8->Text); Команда->Parameters->AddWithValue("@Tugilgan_viloyati",textBox9->Text); Команда->Parameters->AddWithValue("@Pasport_seriasi",textBox10->Text); Команда->Parameters->AddWithValue("@Tugilgan_Sana",textBox11->Text); Команда->Parameters->AddWithValue("@Pasport_nomeri",textBox13->Text); Команда->Parameters->AddWithValue("@Tugilgan_yili",textBox14->Text); Команда->Parameters->AddWithValue("@Tugilgan_oyi",textBox15->Text); Команда->Parameters->AddWithValue("@Tugilgan_kuni",textBox16->Text); Команда->Parameters->AddWithValue("@Fakulteti",textBox20->Text); Команда->Parameters->AddWithValue("@Yonalishi",textBox21->Text); Команда->Parameters->AddWithValue("@Tugilgan_tumani",textBox22->Text); Команда->Parameters->AddWithValue("@Jinsi",textBox23->Text); Команда->Parameters->AddWithValue("@Lavozim",textBox24->Text); Команда->Parameters->AddWithValue("@Yashash_manzili",textBox12->Text); Команда->Parameters->AddWithValue("@Bosqich",textBox17->Text); Команда->Parameters->AddWithValue("@Rasm",SaveRasm()); Download 1.55 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling