[C++]Erstes Programm!

09/03/2009 18:48 Axocoma#1
Code:
#pragma once


namespace xD {

	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>
	/// Zusammenfassung für Form1
	///
	/// Warnung: Wenn Sie den Namen dieser Klasse ändern, müssen Sie auch
	///          die Ressourcendateiname-Eigenschaft für das Tool zur Kompilierung verwalteter Ressourcen ändern,
	///          das allen RESX-Dateien zugewiesen ist, von denen diese Klasse abhängt.
	///          Anderenfalls können die Designer nicht korrekt mit den lokalisierten Ressourcen
	///          arbeiten, die diesem Formular zugewiesen sind.
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: Konstruktorcode hier hinzufügen.
			//
		}

	protected:
		/// <summary>
		/// Verwendete Ressourcen bereinigen.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::Button^  b1;
	private: System::Windows::Forms::Button^  button1;
	private: System::Windows::Forms::Button^  button2;
	private: System::Windows::Forms::Button^  button3;
	private: System::Windows::Forms::Button^  button4;
	private: System::Windows::Forms::Button^  button5;
	private: System::Windows::Forms::Button^  button6;
	private: System::Windows::Forms::Button^  Schilder;
	private: System::Windows::Forms::Button^  button7;

















	private: System::ComponentModel::IContainer^  components;
	protected: 

	protected: 

	private:
		/// <summary>
		/// Erforderliche Designervariable.
		/// </summary>


#pragma region Windows Form Designer generated code
		/// <summary>
		/// Erforderliche Methode für die Designerunterstützung.
		/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
		/// </summary>
		void InitializeComponent(void)
		{
			this->b1 = (gcnew System::Windows::Forms::Button());
			this->button1 = (gcnew System::Windows::Forms::Button());
			this->button2 = (gcnew System::Windows::Forms::Button());
			this->button3 = (gcnew System::Windows::Forms::Button());
			this->button4 = (gcnew System::Windows::Forms::Button());
			this->button5 = (gcnew System::Windows::Forms::Button());
			this->button6 = (gcnew System::Windows::Forms::Button());
			this->Schilder = (gcnew System::Windows::Forms::Button());
			this->button7 = (gcnew System::Windows::Forms::Button());
			this->SuspendLayout();
			// 
			// b1
			// 
			this->b1->Location = System::Drawing::Point(1, 3);
			this->b1->Name = L"b1";
			this->b1->Size = System::Drawing::Size(91, 21);
			this->b1->TabIndex = 0;
			this->b1->Text = L"Alles in einem";
			this->b1->UseVisualStyleBackColor = true;
			this->b1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
			// 
			// button1
			// 
			this->button1->Location = System::Drawing::Point(1, 30);
			this->button1->Name = L"button1";
			this->button1->Size = System::Drawing::Size(90, 21);
			this->button1->TabIndex = 1;
			this->button1->Text = L"GM Befehle";
			this->button1->UseVisualStyleBackColor = true;
			// 
			// button2
			// 
			this->button2->Location = System::Drawing::Point(1, 57);
			this->button2->Name = L"button2";
			this->button2->Size = System::Drawing::Size(89, 19);
			this->button2->TabIndex = 2;
			this->button2->Text = L"Monster ID\'s";
			this->button2->UseVisualStyleBackColor = true;
			// 
			// button3
			// 
			this->button3->Location = System::Drawing::Point(1, 82);
			this->button3->Name = L"button3";
			this->button3->Size = System::Drawing::Size(89, 19);
			this->button3->TabIndex = 3;
			this->button3->Text = L"Waffen";
			this->button3->UseVisualStyleBackColor = true;
			// 
			// button4
			// 
			this->button4->Location = System::Drawing::Point(1, 132);
			this->button4->Name = L"button4";
			this->button4->Size = System::Drawing::Size(91, 20);
			this->button4->TabIndex = 4;
			this->button4->Text = L"Rüstung (Sets)";
			this->button4->UseVisualStyleBackColor = true;
			// 
			// button5
			// 
			this->button5->Location = System::Drawing::Point(1, 159);
			this->button5->Name = L"button5";
			this->button5->Size = System::Drawing::Size(91, 19);
			this->button5->TabIndex = 5;
			this->button5->Text = L"Schmuck";
			this->button5->UseVisualStyleBackColor = true;
			// 
			// button6
			// 
			this->button6->Location = System::Drawing::Point(2, 184);
			this->button6->Name = L"button6";
			this->button6->Size = System::Drawing::Size(90, 21);
			this->button6->TabIndex = 6;
			this->button6->Text = L"Cashshop (CS)";
			this->button6->UseVisualStyleBackColor = true;
			// 
			// Schilder
			// 
			this->Schilder->Location = System::Drawing::Point(1, 107);
			this->Schilder->Name = L"Schilder";
			this->Schilder->Size = System::Drawing::Size(88, 19);
			this->Schilder->TabIndex = 7;
			this->Schilder->Text = L"Schilder";
			this->Schilder->UseVisualStyleBackColor = true;
			// 
			// button7
			// 
			this->button7->Location = System::Drawing::Point(1, 211);
			this->button7->Name = L"button7";
			this->button7->Size = System::Drawing::Size(94, 19);
			this->button7->TabIndex = 8;
			this->button7->Text = L"Tele ID\'s";
			this->button7->UseVisualStyleBackColor = true;
			// 
			// Form1
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(283, 271);
			this->Controls->Add(this->button7);
			this->Controls->Add(this->Schilder);
			this->Controls->Add(this->button6);
			this->Controls->Add(this->button5);
			this->Controls->Add(this->button4);
			this->Controls->Add(this->button3);
			this->Controls->Add(this->button2);
			this->Controls->Add(this->button1);
			this->Controls->Add(this->b1);
			this->Name = L"Form1";
			this->Text = L"[Beta 0.1]Flyff ID Machine";
			this->ResumeLayout(false);

		}
#pragma endregion
	private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
			 }
	private: System::Void bindingSource2_CurrentChanged(System::Object^  sender, System::EventArgs^  e) {
			 }
private: System::Void bindingNavigator1_RefreshItems(System::Object^  sender, System::EventArgs^  e) {
		 }
private: System::Void bindingNavigatorMoveNextItem_Click(System::Object^  sender, System::EventArgs^  e) {
		 }
};
}
Nun möchte Ich gerne zu den Buttons Cs Items und sowas ein weiteres Fenster öffnen lassen mit dem Inhalt..
&nd Wenn ich einen Close Button einfüge dann wenn man Ihn betätigt dass sich dann dass Progreamm schließet.
Also
1.) (Beispiel vom Index also mit Button auswahl,
So ..

-----------------
Cashshop -
-----------------
Nach dem Betätigen dieses Buttons möchte Ich ein neues Feld sehen und dort steht dann alles drinne..
Wer kann helfen?
09/03/2009 18:54 the| snep#2
[Only registered and activated users can see links. Click Here To Register...]
09/03/2009 19:33 -= Re@p3r =-#3
# moved
09/03/2009 20:15 Axocoma#4
Danke brauch aber immernoch hilfe :(
09/03/2009 22:30 link#5
Der Code sieht mir stark danach aus, dass er ausschließlich aus dem des Form Designers besteht. In Kombination mit deiner Liste an Erwartungen an die Hilfe, die hier jemand leisten soll, würde ich sagen, dass du erst einmal programmieren lernen solltest.

Außerdem ist meiner Meinung nach C++/CLI ziemlicher Murks.
"[C++]Erstes Programm!"
Mit C++ hat das auch nicht mehr viel zu tun.