Jeszcze nie zaczołem pisać bo potrzebuje tej informacji, to ma byc mały dodatek do gry, otwierać będzie mi linki odp za np zakup bron iitp, bez wchodzenie na stronke :DD
KOD Form-a:
#pragma once
namespace DarkOrbitQuickStart {
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;
}
}
private: System::Windows::Forms::Button^ Wypo;
protected:
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)
{
this->Wypo = (gcnew System::Windows::Forms::Button());
this->SuspendLayout();
//
// Wypo
//
this->Wypo->BackColor = System::Drawing::SystemColors::ActiveCaptionText;
this->Wypo->Cursor = System::Windows::Forms::Cursors::Arrow;
this->Wypo->ForeColor = System::Drawing::SystemColors::ControlText;
this->Wypo->Location = System::Drawing::Point(12, 12);
this->Wypo->Name = L"Wypo";
this->Wypo->Size = System::Drawing::Size(160, 25);
this->Wypo->TabIndex = 0;
this->Wypo->Text = L"Wyposarzenie";
this->Wypo->UseVisualStyleBackColor = false;
this->Wypo->Click += gcnew System::EventHandler(this, &Form1::Wypo_Click);
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackColor = System::Drawing::SystemColors::ActiveBorder;
this->ClientSize = System::Drawing::Size(184, 396);
this->Controls->Add(this->Wypo);
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::Fixed3D;
this->MaximizeBox = false;
this->MinimizeBox = false;
this->Name = L"Form1";
this->Text = L"DarkOrbit Quick Menu";
this->ResumeLayout(false);
}
#pragma endregion
private: System::Void Wypo_Click(System::Object^ sender, System::EventArgs^ e)
{
LONG r = ShellExecute(NULL, "open", "http://www.microsoft.com", NULL, NULL, SW_SHOWNORMAL);
}
private: System::Void linkLabel1_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) {
}
};
}
Do tymona: