IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası
  sohbet

 Kayıt ol  Topluluk
Yeni Konu aç Cevapla
 
LinkBack Seçenekler Stil
Alt 18 Şubat 2012, 23:54   #1
Çevrimdışı
aSi
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Batak için puan tutucu program (C++ Form App)





Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.


Bir arkadaşla konuşurken bana böyle bir fikir verdi ve çok hoşuma gitti C++ form uygulamasına başlarken güzel bir örnek olacağını düşündüm ve sonuç olarak…. Batak oynarken lazım olan güzel bir program

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
#pragma once //ibrahim Erkaplan namespace Puan { 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 { private: int Kisi1Puan; int Kisi2Puan; int Kisi3Puan; private: System::Windows::Forms::Button^ button1; int Kisi4Puan; public: Form1(void) { Kisi1Puan=0; Kisi2Puan=0; Kisi3Puan=0; Kisi4Puan=0; 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::Button^ btnSecim; private: System::Windows::Forms::Label^ lblKisi1; private: System::Windows::Forms::ComboBox^ cbSecim; private: System::Windows::Forms::TextBox^ tbisim1; private: System::Windows::Forms::TextBox^ tbisim2; private: System::Windows::Forms::TextBox^ tbisim3; private: System::Windows::Forms::TextBox^ tbisim4; private: System::Windows::Forms::Button^ btnisim; private: System::Windows::Forms::Label^ lblKisi2; private: System::Windows::Forms::Label^ lblKisi3; private: System::Windows::Forms::Label^ lblKisi4; private: System::Windows::Forms::TextBox^ tbPuan1; private: System::Windows::Forms::TextBox^ tbPuan2; private: System::Windows::Forms::TextBox^ tbPuan3; private: System::Windows::Forms::TextBox^ tbPuan4; private: System::Windows::Forms::Label^ lblPuan1; private: System::Windows::Forms::Label^ lblPuan2; private: System::Windows::Forms::Label^ lblPuan3; private: System::Windows::Forms::Label^ lblPuan4; private: System::Windows::Forms::StatusStrip^ statusStrip1; private: System::Windows::Forms::ToolStripProgressBar^ toolStripProgressBar1; private: System::ComponentModel::IContainer^ components; 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->btnSecim = (gcnew System::Windows::Forms::Button()); this->cbSecim = (gcnew System::Windows::Forms::ComboBox()); this->tbisim1 = (gcnew System::Windows::Forms::TextBox()); this->tbisim2 = (gcnew System::Windows::Forms::TextBox()); this->tbisim3 = (gcnew System::Windows::Forms::TextBox()); this->tbisim4 = (gcnew System::Windows::Forms::TextBox()); this->btnisim = (gcnew System::Windows::Forms::Button()); this->lblKisi1 = (gcnew System::Windows::Forms::Label()); this->lblKisi2 = (gcnew System::Windows::Forms::Label()); this->lblKisi3 = (gcnew System::Windows::Forms::Label()); this->lblKisi4 = (gcnew System::Windows::Forms::Label()); this->tbPuan1 = (gcnew System::Windows::Forms::TextBox()); this->tbPuan2 = (gcnew System::Windows::Forms::TextBox()); this->tbPuan3 = (gcnew System::Windows::Forms::TextBox()); this->tbPuan4 = (gcnew System::Windows::Forms::TextBox()); this->lblPuan1 = (gcnew System::Windows::Forms::Label()); this->lblPuan2 = (gcnew System::Windows::Forms::Label()); this->lblPuan3 = (gcnew System::Windows::Forms::Label()); this->lblPuan4 = (gcnew System::Windows::Forms::Label()); this->statusStrip1 = (gcnew System::Windows::Forms::StatusStrip()); this->toolStripProgressBar1 = (gcnew System::Windows::Forms::ToolStripProgressBar()); this->button1 = (gcnew System::Windows::Forms::Button()); this->statusStrip1->SuspendLayout(); this->SuspendLayout(); // // btnSecim // this->btnSecim->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->btnSecim->ForeColor = System::Drawing::SystemColors::HotTrack; this->btnSecim->Location = System::Drawing::Point(12, 181); this->btnSecim->Name = L"btnSecim"; this->btnSecim->Size = System::Drawing::Size(171, 23); this->btnSecim->TabIndex = 1; this->btnSecim->Text = L"Devam..."; this->btnSecim->UseVisualStyleBackColor = true; this->btnSecim->Click += gcnew System::EventHandler(this, &Form1::button1_Click); // // cbSecim // this->cbSecim->DropDownStyle = System::Windows::Forms::ComboBoxStyle::Simple; this->cbSecim->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->cbSecim->ForeColor = System::Drawing::SystemColors::ActiveCaptionText; this->cbSecim->FormattingEnabled = true; this->cbSecim->Items->AddRange(gcnew cli::array< System::Object^ >(3) {L"Normal Batak", L"Eşli Batak", L"Gömmeli Batak"}); this->cbSecim->Location = System::Drawing::Point(15, 25); this->cbSecim->Name = L"cbSecim"; this->cbSecim->Size = System::Drawing::Size(168, 150); this->cbSecim->TabIndex = 3; this->cbSecim->Text = L"Lütfen Oyun Tipini Seçiniz..."; // // tbisim1 // this->tbisim1->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->tbisim1->ForeColor = System::Drawing::SystemColors::ActiveCaptionText; this->tbisim1->Location = System::Drawing::Point(43, 36); this->tbisim1->Name = L"tbisim1"; this->tbisim1->Size = System::Drawing::Size(110, 23); this->tbisim1->TabIndex = 4; this->tbisim1->Text = L"Oyuncu 1\'in İsmi"; // // tbisim2 // this->tbisim2->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->tbisim2->ForeColor = System::Drawing::SystemColors::ActiveCaptionText; this->tbisim2->Location = System::Drawing::Point(43, 62); this->tbisim2->Name = L"tbisim2"; this->tbisim2->Size = System::Drawing::Size(110, 23); this->tbisim2->TabIndex = 5; this->tbisim2->Text = L"Oyuncu 2\'nin İsmi"; // // tbisim3 // this->tbisim3->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->tbisim3->ForeColor = System::Drawing::SystemColors::ActiveCaptionText; this->tbisim3->Location = System::Drawing::Point(43, 89); this->tbisim3->Name = L"tbisim3"; this->tbisim3->Size = System::Drawing::Size(110, 23); this->tbisim3->TabIndex = 6; this->tbisim3->Text = L"Oyuncu 3\'ün İsmi"; // // tbisim4 // this->tbisim4->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->tbisim4->ForeColor = System::Drawing::SystemColors::ActiveCaptionText; this->tbisim4->Location = System::Drawing::Point(43, 116); this->tbisim4->Name = L"tbisim4"; this->tbisim4->Size = System::Drawing::Size(110, 23); this->tbisim4->TabIndex = 7; this->tbisim4->Text = L"Oyuncu 4\'ün İsmi"; // // btnisim // this->btnisim->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->btnisim->ForeColor = System::Drawing::SystemColors::HotTrack; this->btnisim->Location = System::Drawing::Point(43, 142); this->btnisim->Name = L"btnisim"; this->btnisim->Size = System::Drawing::Size(110, 51); this->btnisim->TabIndex = 8; this->btnisim->Text = L"Puanlamaya Geç..."; this->btnisim->UseVisualStyleBackColor = true; this->btnisim->Click += gcnew System::EventHandler(this, &Form1::btnisim_Click); // // lblKisi1 // this->lblKisi1->AutoSize = true; this->lblKisi1->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 10, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->lblKisi1->ForeColor = System::Drawing::SystemColors::HotTrack; this->lblKisi1->Location = System::Drawing::Point(28, 7); this->lblKisi1->Name = L"lblKisi1"; this->lblKisi1->Size = System::Drawing::Size(29, 19); this->lblKisi1->TabIndex = 2; this->lblKisi1->Text = L"O1"; // // lblKisi2 // this->lblKisi2->AutoSize = true; this->lblKisi2->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 10, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->lblKisi2->ForeColor = System::Drawing::SystemColors::HotTrack; this->lblKisi2->Location = System::Drawing::Point(28, 119); this->lblKisi2->Name = L"lblKisi2"; this->lblKisi2->Size = System::Drawing::Size(29, 19); this->lblKisi2->TabIndex = 9; this->lblKisi2->Text = L"O2"; // // lblKisi3 // this->lblKisi3->AutoSize = true; this->lblKisi3->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 10, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->lblKisi3->ForeColor = System::Drawing::SystemColors::HotTrack; this->lblKisi3->Location = System::Drawing::Point(130, 7); this->lblKisi3->Name = L"lblKisi3"; this->lblKisi3->Size = System::Drawing::Size(29, 19); this->lblKisi3->TabIndex = 10; this->lblKisi3->Text = L"O3"; // // lblKisi4 // this->lblKisi4->AutoSize = true; this->lblKisi4->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 10, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->lblKisi4->ForeColor = System::Drawing::SystemColors::HotTrack; this->lblKisi4->Location = System::Drawing::Point(130, 118); this->lblKisi4->Name = L"lblKisi4"; this->lblKisi4->Size = System::Drawing::Size(29, 19); this->lblKisi4->TabIndex = 11; this->lblKisi4->Text = L"O4"; // // tbPuan1 // this->tbPuan1->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->tbPuan1->Location = System::Drawing::Point(32, 87); this->tbPuan1->Name = L"tbPuan1"; this->tbPuan1->Size = System::Drawing::Size(37, 23); this->tbPuan1->TabIndex = 12; this->tbPuan1->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &Form1::tbPuan1_KeyDown); // // tbPuan2 // this->tbPuan2->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->tbPuan2->Location = System::Drawing::Point(32, 199); this->tbPuan2->Name = L"tbPuan2"; this->tbPuan2->Size = System::Drawing::Size(37, 23); this->tbPuan2->TabIndex = 13; this->tbPuan2->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &Form1::tbPuan2_KeyDown); // // tbPuan3 // this->tbPuan3->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->tbPuan3->Location = System::Drawing::Point(134, 87); this->tbPuan3->Name = L"tbPuan3"; this->tbPuan3->Size = System::Drawing::Size(37, 23); this->tbPuan3->TabIndex = 14; this->tbPuan3->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &Form1::tbPuan3_KeyDown); // // tbPuan4 // this->tbPuan4->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->tbPuan4->Location = System::Drawing::Point(134, 199); this->tbPuan4->Name = L"tbPuan4"; this->tbPuan4->Size = System::Drawing::Size(37, 23); this->tbPuan4->TabIndex = 15; this->tbPuan4->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &Form1::tbPuan4_KeyDown); // // lblPuan1 // this->lblPuan1->AutoSize = true; this->lblPuan1->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 20, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->lblPuan1->Location = System::Drawing::Point(25, 44); this->lblPuan1->Name = L"lblPuan1"; this->lblPuan1->Size = System::Drawing::Size(33, 38); this->lblPuan1->TabIndex = 24; this->lblPuan1->Text = L"0"; // // lblPuan2 // this->lblPuan2->AutoSize = true; this->lblPuan2->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 20, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->lblPuan2->Location = System::Drawing::Point(25, 153); this->lblPuan2->Name = L"lblPuan2"; this->lblPuan2->Size = System::Drawing::Size(33, 38); this->lblPuan2->TabIndex = 25; this->lblPuan2->Text = L"0"; // // lblPuan3 // this->lblPuan3->AutoSize = true; this->lblPuan3->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 20, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->lblPuan3->Location = System::Drawing::Point(127, 44); this->lblPuan3->Name = L"lblPuan3"; this->lblPuan3->Size = System::Drawing::Size(33, 38); this->lblPuan3->TabIndex = 26; this->lblPuan3->Text = L"0"; // // lblPuan4 // this->lblPuan4->AutoSize = true; this->lblPuan4->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 20, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(162))); this->lblPuan4->Location = System::Drawing::Point(127, 153); this->lblPuan4->Name = L"lblPuan4"; this->lblPuan4->Size = System::Drawing::Size(33, 38); this->lblPuan4->TabIndex = 27; this->lblPuan4->Text = L"0"; // // statusStrip1 // this->statusStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->toolStripProgressBar1}); this->statusStrip1->Location = System::Drawing::Point(0, 235); this->statusStrip1->Name = L"statusStrip1"; this->statusStrip1->Size = System::Drawing::Size(202, 22); this->statusStrip1->TabIndex = 28; this->statusStrip1->Text = L"statusStrip1"; // // toolStripProgressBar1 // this->toolStripProgressBar1->Name = L"toolStripProgressBar1"; this->toolStripProgressBar1->Size = System::Drawing::Size(100, 16); this->toolStripProgressBar1->Click += gcnew System::EventHandler(this, &Form1::toolStripProgressBar1_Click); // // button1 // this->button1->Font = (gcnew System::Drawing::Font(L"Forte", 8, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0))); this->button1->ForeColor = System::Drawing::SystemColors::ControlText; this->button1->Location = System::Drawing::Point(106, 235); this->button1->Name = L"button1"; this->button1->Size = System::Drawing::Size(96, 22); this->button1->TabIndex = 29; this->button1->Text = L"ibrahimErkaplan"; this->button1->UseVisualStyleBackColor = true; // // Form1 // this->AutoScaleDimensions = System::Drawing::SizeF(6, 13); this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; this->ClientSize = System::Drawing::Size(202, 257); this->Controls->Add(this->button1); this->Controls->Add(this->statusStrip1); this->Controls->Add(this->lblPuan4); this->Controls->Add(this->lblPuan3); this->Controls->Add(this->lblPuan2); this->Controls->Add(this->lblPuan1); this->Controls->Add(this->tbPuan4); this->Controls->Add(this->tbPuan3); this->Controls->Add(this->tbPuan2); this->Controls->Add(this->tbPuan1); this->Controls->Add(this->lblKisi4); this->Controls->Add(this->lblKisi3); this->Controls->Add(this->lblKisi2); this->Controls->Add(this->btnisim); this->Controls->Add(this->tbisim4); this->Controls->Add(this->tbisim3); this->Controls->Add(this->tbisim2); this->Controls->Add(this->tbisim1); this->Controls->Add(this->cbSecim); this->Controls->Add(this->lblKisi1); this->Controls->Add(this->btnSecim); this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon"))); this->MaximizeBox = false; this->Name = L"Form1"; this->Text = L"Puanlama"; this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load); this->statusStrip1->ResumeLayout(false); this->statusStrip1->PerformLayout(); this->ResumeLayout(false); this->PerformLayout(); } #pragma endregion private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { if(cbSecim->SelectedIndex==0) { tbisim1->Visible=true; tbisim2->Visible=true; tbisim3->Visible=true; tbisim4->Visible=true; btnisim->Visible=true; btnSecim->Visible=false; cbSecim->Visible=false; toolStripProgressBar1->Value+=50; } if(cbSecim->SelectedIndex==1) { tbisim1->Visible=true; tbisim2->Visible=true; tbisim3->Visible=true; tbisim4->Visible=true; btnisim->Visible=true; btnSecim->Visible=false; cbSecim->Visible=false; toolStripProgressBar1->Value+=50; } if(cbSecim->SelectedIndex==2) { tbisim1->Visible=true; tbisim2->Visible=true; tbisim3->Visible=true; //tbisim4->Visible=true; btnisim->Visible=true; btnSecim->Visible=false; cbSecim->Visible=false; toolStripProgressBar1->Value+=50; } } private: System::Void btnisim_Click(System::Object^ sender, System::EventArgs^ e) { lblKisi1->Text=tbisim1->Text; lblKisi2->Text=tbisim2->Text; lblKisi3->Text=tbisim3->Text; lblKisi4->Text=tbisim4->Text; if(lblKisi1->Text!="Oyuncu 1'in İsmi") { tbisim1->Visible=false; } if(lblKisi2->Text!="Oyuncu 2'nin İsmi") { tbisim2->Visible=false; } if(lblKisi3->Text!="Oyuncu 3'ün İsmi") { tbisim3->Visible=false; } if(lblKisi4->Text!="Oyuncu 4'ün İsmi") { tbisim4->Visible=false; } if(cbSecim->SelectedIndex==0) if(lblKisi1->Text!="Oyuncu 1'in İsmi") if(lblKisi2->Text!="Oyuncu 2'nin İsmi") if(lblKisi3->Text!="Oyuncu 3'ün İsmi") if(lblKisi4->Text!="Oyuncu 4'ün İsmi") { btnisim->Visible=false; lblKisi1->Visible=true; lblKisi2->Visible=true; lblKisi3->Visible=true; lblKisi4->Visible=true; tbPuan1->Visible=true; tbPuan2->Visible=true; tbPuan3->Visible=true; tbPuan4->Visible=true; lblPuan1->Visible=true; lblPuan2->Visible=true; lblPuan3->Visible=true; lblPuan4->Visible=true; toolStripProgressBar1->Value+=50; } if(cbSecim->SelectedIndex==1) if(lblKisi1->Text!="Oyuncu 1'in İsmi") if(lblKisi2->Text!="Oyuncu 2'nin İsmi") if(lblKisi3->Text!="Oyuncu 3'ün İsmi") if(lblKisi4->Text!="Oyuncu 4'ün İsmi") { btnisim->Visible=false; lblKisi1->Text= lblKisi1->Text + "\n" + lblKisi2->Text; lblKisi3->Text= lblKisi3->Text + "\n" + lblKisi4->Text; this->lblKisi1->Location = System::Drawing::Point(28, 57); this->lblKisi3->Location = System::Drawing::Point(130, 57); this->lblPuan1->Location = System::Drawing::Point(25, 94); this->lblPuan3->Location = System::Drawing::Point(127, 94); this->tbPuan1->Location = System::Drawing::Point(32, 137); this->tbPuan3->Location = System::Drawing::Point(134, 137); lblKisi1->Visible=true; //lblKisi2->Visible=true; lblKisi3->Visible=true; //lblKisi4->Visible=true; tbPuan1->Visible=true; //tbPuan2->Visible=true; tbPuan3->Visible=true; //tbPuan4->Visible=true; lblPuan1->Visible=true; //lblPuan2->Visible=true; lblPuan3->Visible=true; //lblPuan4->Visible=true; toolStripProgressBar1->Value+=50; } if(cbSecim->SelectedIndex==2) if(lblKisi1->Text!="Oyuncu 1'in İsmi") if(lblKisi2->Text!="Oyuncu 2'nin İsmi") if(lblKisi3->Text!="Oyuncu 3'ün İsmi") { btnisim->Visible=false; this->lblKisi2->Location = System::Drawing::Point(78, 119); this->tbPuan2->Location = System::Drawing::Point(82, 199); this->lblPuan2->Location = System::Drawing::Point(75, 153); lblKisi1->Visible=true; lblKisi2->Visible=true; lblKisi3->Visible=true; //lblKisi4->Visible=true; tbPuan1->Visible=true; tbPuan2->Visible=true; tbPuan3->Visible=true; //tbPuan4->Visible=true; lblPuan1->Visible=true; lblPuan2->Visible=true; lblPuan3->Visible=true; //lblPuan4->Visible=true; toolStripProgressBar1->Value+=50; } } private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) { lblPuan1->Text=""+Kisi1Puan; lblPuan2->Text=""+Kisi2Puan; lblPuan3->Text=""+Kisi3Puan; lblPuan4->Text=""+Kisi4Puan; btnSecim->Visible=true; cbSecim->Visible=true; tbisim1->Visible=false; tbisim2->Visible=false; tbisim3->Visible=false; tbisim4->Visible=false; btnisim->Visible=false; lblKisi1->Visible=false; lblKisi2->Visible=false; lblKisi3->Visible=false; lblKisi4->Visible=false; tbPuan1->Visible=false; tbPuan2->Visible=false; tbPuan3->Visible=false; tbPuan4->Visible=false; lblPuan1->Visible=false; lblPuan2->Visible=false; lblPuan3->Visible=false; lblPuan4->Visible=false; } private: System::Void toolStripProgressBar1_Click(System::Object^ sender, System::EventArgs^ e) { } private: System::Void tbPuan4_Enter(System::Object^ sender, System::EventArgs^ e) { try { int ekle=System::Convert::ToInt32(tbPuan4->Text); Kisi4Puan=Kisi4Puan+ekle; lblPuan4->Text=""+Kisi4Puan; tbPuan4->Text=""; } catch(...) { } } private: System::Void tbPuan1_KeyDown(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e) { if(e->KeyCode == Keys::Enter) { try { int ekle=System::Convert::ToInt32(tbPuan1->Text); Kisi1Puan=Kisi1Puan+ekle; lblPuan1->Text=""+Kisi1Puan; tbPuan1->Text=""; } catch(...) { } } } private: System::Void tbPuan2_KeyDown(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e) { if(e->KeyCode == Keys::Enter) { try { int ekle=System::Convert::ToInt32(tbPuan2->Text); Kisi2Puan=Kisi2Puan+ekle; lblPuan2->Text=""+Kisi2Puan; tbPuan2->Text=""; } catch(...) { } } } private: System::Void tbPuan3_KeyDown(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e) { if(e->KeyCode == Keys::Enter) { try { int ekle=System::Convert::ToInt32(tbPuan3->Text); Kisi3Puan=Kisi3Puan+ekle; lblPuan3->Text=""+Kisi3Puan; tbPuan3->Text=""; } catch(...) { } } } private: System::Void tbPuan4_KeyDown(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e) { if(e->KeyCode == Keys::Enter) { try { int ekle=System::Convert::ToInt32(tbPuan4->Text); Kisi4Puan=Kisi4Puan+ekle; lblPuan4->Text=""+Kisi4Puan; tbPuan4->Text=""; } catch(...) { } } } }; }


__________________
Doğruları biliyorsan, yalanları dinlemek eğlencelidir.
 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları reklam ver Benimmekan Mobil Sohbet
Cevapla

Etiketler
app, batak, form, için, program, puan, tutucu


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Açık
Refbacks are Açık