1
  1. Этот сайт использует файлы cookie. Продолжая пользоваться данным сайтом, Вы соглашаетесь на использование нами Ваших файлов cookie. Узнать больше.
Приветствуем вас,Гость, на форуме IFUD.WS. Обязательно рекомендуется к прочтению правила форума http://ifud.ws/threads/obnovleno-pravila-foruma.7759

Window Maker By ponchic

Тема в разделе "Наш Софт", создана пользователем ponchic, 19 окт 2015.

  1. TopicStarter Overlay
    ponchic

    ponchic юзверь

    Регистрация:
    15 дек 2013
    Сообщения:
    407
    Симпатии:
    276
    Создал прогу которая вызывает окна ошибок/предупреждение с вашим текстом и иконками и кнопками на выбор. Бесплатно.
    [​IMG]

    Form1.h:
    Код:
    #pragma once
    #include <io.h>
    bool FileExists(const char *fname)
    {
        return access(fname, 0) != -1;
    }
    /*
         ____          _____                 _     _              __ ___        ____ ____        __  ___        __  ___        ___   ___  __ _____ 
        |  _ \        |  __ \               | |   (_)            /_ |__ \   _  |___ \___ \      /_ |/ _ \      /_ |/ _ \      |__ \ / _ \/_ | ____|
        | |_) |_   _  | |__) |__  _ __   ___| |__  _  ___         | |  ) | (_)   __) |__) |      | | (_) |      | | | | |        ) | | | || | |__  
        |  _ <| | | | |  ___/ _ \| '_ \ / __| '_ \| |/ __|        | | / /       |__ <|__ <       | |\__, |      | | | | |       / /| | | || |___ \ 
        | |_) | |_| | | |  | (_) | | | | (__| | | | | (__         | |/ /_   _   ___) |__) |      | |  / /   _   | | |_| |  _   / /_| |_| || |___) |
        |____/ \__, | |_|   \___/|_| |_|\___|_| |_|_|\___|        |_|____| (_) |____/____/       |_| /_/   (_)  |_|\___/  (_) |____|\___/ |_|____/ 
               __/ |                                                                                                                              
              |___/     _                ___  __            _       _                                                                      
    \ \    / /          (_)              / _ \/_ |     /\   | |     | |                                                                      
     \ \  / /__ _ __ ___ _  ___  _ __   | | | || |    /  \  | |_ __ | |__   __ _                                                            
      \ \/ / _ \ '__/ __| |/ _ \| '_ \  | | | || |   / /\ \ | | '_ \| '_ \ / _` |                                                            
       \  /  __/ |  \__ \ | (_) | | | | | |_| || |  / ____ \| | |_) | | | | (_| |                                                            
        \/ \___|_|  |___/_|\___/|_| |_|  \___(_)_| /_/    \_\_| .__/|_| |_|\__,_|                                                            
        | |                                                                            
        |_|                              
        */
    
    namespace window_maker {
    
        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>
        /// Сводка для Form1
        /// </summary>
        public ref class Form1 : public System::Windows::Forms::Form
        {
        public:
            Form1(void)
            {
                InitializeComponent();
                //
                //TODO: добавьте код конструктора
                //
            }
    
        protected:
            /// <summary>
            /// Освободить все используемые ресурсы.
            /// </summary>
            ~Form1()
            {
                if (components)
                {
                    delete components;
                }
            }
        private: System::Windows::Forms::Button^  button1;
        private: System::Windows::Forms::TextBox^  textBox1;
        private: System::Windows::Forms::TextBox^  textBox2;
        private: System::Windows::Forms::Label^  label1;
        private: System::Windows::Forms::Label^  label2;
    
    
        private: System::Windows::Forms::RadioButton^  radioButton1;
        private: System::Windows::Forms::RadioButton^  radioButton2;
        private: System::Windows::Forms::RadioButton^  radioButton3;
        private: System::Windows::Forms::RadioButton^  radioButton4;
        private: System::Windows::Forms::RadioButton^  radioButton5;
        private: System::Windows::Forms::RadioButton^  radioButton6;
        private: System::Windows::Forms::RadioButton^  radioButton7;
        private: System::Windows::Forms::RadioButton^  radioButton8;
        private: System::Windows::Forms::GroupBox^  groupBox1;
        private: System::Windows::Forms::GroupBox^  groupBox2;
        private: System::Windows::Forms::RadioButton^  radioButton15;
        private: System::Windows::Forms::RadioButton^  radioButton14;
        private: System::Windows::Forms::RadioButton^  radioButton13;
        private: System::Windows::Forms::RadioButton^  radioButton12;
        private: System::Windows::Forms::RadioButton^  radioButton11;
        private: System::Windows::Forms::RadioButton^  radioButton10;
        private: System::Windows::Forms::RadioButton^  radioButton9;
        private: System::Windows::Forms::CheckBox^  checkBox1;
        private: System::Windows::Forms::Label^  label3;
    
    
    
    
    
        private: System::ComponentModel::IContainer^  components;
        protected: 
    
        private:
            /// <summary>
            /// Требуется переменная конструктора.
            /// </summary>
    
    
    #pragma region Windows Form Designer generated code
            /// <summary>
            /// Обязательный метод для поддержки конструктора - не изменяйте
            /// содержимое данного метода при помощи редактора кода.
            /// </summary>
            void InitializeComponent(void)
            {
                System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
                this->button1 = (gcnew System::Windows::Forms::Button());
                this->textBox1 = (gcnew System::Windows::Forms::TextBox());
                this->textBox2 = (gcnew System::Windows::Forms::TextBox());
                this->label1 = (gcnew System::Windows::Forms::Label());
                this->label2 = (gcnew System::Windows::Forms::Label());
                this->radioButton1 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton2 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton3 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton4 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton5 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton6 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton7 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton8 = (gcnew System::Windows::Forms::RadioButton());
                this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
                this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
                this->radioButton15 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton14 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton13 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton12 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton11 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton10 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton9 = (gcnew System::Windows::Forms::RadioButton());
                this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
                this->label3 = (gcnew System::Windows::Forms::Label());
                this->groupBox1->SuspendLayout();
                this->groupBox2->SuspendLayout();
                this->SuspendLayout();
                // 
                // button1
                // 
                this->button1->Location = System::Drawing::Point(18, 387);
                this->button1->Name = L"button1";
                this->button1->Size = System::Drawing::Size(189, 63);
                this->button1->TabIndex = 0;
                this->button1->Text = L"Вызвать ошибку";
                this->button1->UseVisualStyleBackColor = true;
                this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
                // 
                // textBox1
                // 
                this->textBox1->Location = System::Drawing::Point(172, 15);
                this->textBox1->Multiline = true;
                this->textBox1->Name = L"textBox1";
                this->textBox1->Size = System::Drawing::Size(168, 20);
                this->textBox1->TabIndex = 1;
                this->textBox1->Text = L"Error";
                // 
                // textBox2
                // 
                this->textBox2->Location = System::Drawing::Point(172, 41);
                this->textBox2->Multiline = true;
                this->textBox2->Name = L"textBox2";
                this->textBox2->Size = System::Drawing::Size(168, 48);
                this->textBox2->TabIndex = 2;
                this->textBox2->Text = L"Error text";
                // 
                // label1
                // 
                this->label1->AutoSize = true;
                this->label1->Location = System::Drawing::Point(25, 15);
                this->label1->Name = L"label1";
                this->label1->Size = System::Drawing::Size(103, 13);
                this->label1->TabIndex = 3;
                this->label1->Text = L"Title of MessageBox";
                this->label1->Click += gcnew System::EventHandler(this, &Form1::label1_Click);
                // 
                // label2
                // 
                this->label2->AutoSize = true;
                this->label2->Location = System::Drawing::Point(25, 41);
                this->label2->Name = L"label2";
                this->label2->Size = System::Drawing::Size(104, 13);
                this->label2->TabIndex = 4;
                this->label2->Text = L"Text of MessageBox";
                // 
                // radioButton1
                // 
                this->radioButton1->AutoSize = true;
                this->radioButton1->Location = System::Drawing::Point(7, 13);
                this->radioButton1->Name = L"radioButton1";
                this->radioButton1->Size = System::Drawing::Size(105, 17);
                this->radioButton1->TabIndex = 5;
                this->radioButton1->TabStop = true;
                this->radioButton1->Text = L"AbortRetryIgnore";
                this->radioButton1->UseVisualStyleBackColor = true;
                this->radioButton1->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton1_CheckedChanged);
                // 
                // radioButton2
                // 
                this->radioButton2->AutoSize = true;
                this->radioButton2->Location = System::Drawing::Point(7, 36);
                this->radioButton2->Name = L"radioButton2";
                this->radioButton2->Size = System::Drawing::Size(40, 17);
                this->radioButton2->TabIndex = 6;
                this->radioButton2->TabStop = true;
                this->radioButton2->Text = L"OK";
                this->radioButton2->UseVisualStyleBackColor = true;
                this->radioButton2->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton2_CheckedChanged);
                // 
                // radioButton3
                // 
                this->radioButton3->AutoSize = true;
                this->radioButton3->Location = System::Drawing::Point(7, 59);
                this->radioButton3->Name = L"radioButton3";
                this->radioButton3->Size = System::Drawing::Size(73, 17);
                this->radioButton3->TabIndex = 7;
                this->radioButton3->TabStop = true;
                this->radioButton3->Text = L"OKCancel";
                this->radioButton3->UseVisualStyleBackColor = true;
                this->radioButton3->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton3_CheckedChanged);
                // 
                // radioButton4
                // 
                this->radioButton4->AutoSize = true;
                this->radioButton4->Location = System::Drawing::Point(7, 82);
                this->radioButton4->Name = L"radioButton4";
                this->radioButton4->Size = System::Drawing::Size(83, 17);
                this->radioButton4->TabIndex = 8;
                this->radioButton4->TabStop = true;
                this->radioButton4->Text = L"RetryCancel";
                this->radioButton4->UseVisualStyleBackColor = true;
                this->radioButton4->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton4_CheckedChanged);
                // 
                // radioButton5
                // 
                this->radioButton5->AutoSize = true;
                this->radioButton5->Location = System::Drawing::Point(7, 106);
                this->radioButton5->Name = L"radioButton5";
                this->radioButton5->Size = System::Drawing::Size(57, 17);
                this->radioButton5->TabIndex = 9;
                this->radioButton5->TabStop = true;
                this->radioButton5->Text = L"YesNo";
                this->radioButton5->UseVisualStyleBackColor = true;
                this->radioButton5->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton5_CheckedChanged);
                // 
                // radioButton6
                // 
                this->radioButton6->AutoSize = true;
                this->radioButton6->Location = System::Drawing::Point(7, 129);
                this->radioButton6->Name = L"radioButton6";
                this->radioButton6->Size = System::Drawing::Size(90, 17);
                this->radioButton6->TabIndex = 10;
                this->radioButton6->TabStop = true;
                this->radioButton6->Text = L"YesNoCancel";
                this->radioButton6->UseVisualStyleBackColor = true;
                this->radioButton6->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton6_CheckedChanged);
                // 
                // radioButton7
                // 
                this->radioButton7->AutoSize = true;
                this->radioButton7->Location = System::Drawing::Point(0, 31);
                this->radioButton7->Name = L"radioButton7";
                this->radioButton7->Size = System::Drawing::Size(62, 17);
                this->radioButton7->TabIndex = 11;
                this->radioButton7->TabStop = true;
                this->radioButton7->Text = L"Asterisk";
                this->radioButton7->UseVisualStyleBackColor = true;
                this->radioButton7->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton7_CheckedChanged);
                // 
                // radioButton8
                // 
                this->radioButton8->AutoSize = true;
                this->radioButton8->Location = System::Drawing::Point(0, 54);
                this->radioButton8->Name = L"radioButton8";
                this->radioButton8->Size = System::Drawing::Size(47, 17);
                this->radioButton8->TabIndex = 12;
                this->radioButton8->TabStop = true;
                this->radioButton8->Text = L"Error";
                this->radioButton8->UseVisualStyleBackColor = true;
                this->radioButton8->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton8_CheckedChanged);
                // 
                // groupBox1
                // 
                this->groupBox1->Controls->Add(this->radioButton6);
                this->groupBox1->Controls->Add(this->radioButton5);
                this->groupBox1->Controls->Add(this->radioButton4);
                this->groupBox1->Controls->Add(this->radioButton3);
                this->groupBox1->Controls->Add(this->radioButton2);
                this->groupBox1->Controls->Add(this->radioButton1);
                this->groupBox1->Location = System::Drawing::Point(18, 95);
                this->groupBox1->Name = L"groupBox1";
                this->groupBox1->Size = System::Drawing::Size(126, 157);
                this->groupBox1->TabIndex = 13;
                this->groupBox1->TabStop = false;
                this->groupBox1->Text = L"Select Buttons:";
                // 
                // groupBox2
                // 
                this->groupBox2->Controls->Add(this->radioButton15);
                this->groupBox2->Controls->Add(this->radioButton14);
                this->groupBox2->Controls->Add(this->radioButton13);
                this->groupBox2->Controls->Add(this->radioButton12);
                this->groupBox2->Controls->Add(this->radioButton11);
                this->groupBox2->Controls->Add(this->radioButton10);
                this->groupBox2->Controls->Add(this->radioButton9);
                this->groupBox2->Controls->Add(this->radioButton8);
                this->groupBox2->Controls->Add(this->radioButton7);
                this->groupBox2->Location = System::Drawing::Point(172, 95);
                this->groupBox2->Name = L"groupBox2";
                this->groupBox2->Size = System::Drawing::Size(106, 227);
                this->groupBox2->TabIndex = 14;
                this->groupBox2->TabStop = false;
                this->groupBox2->Text = L"Select Icon fo window:";
                // 
                // radioButton15
                // 
                this->radioButton15->AutoSize = true;
                this->radioButton15->Location = System::Drawing::Point(4, 206);
                this->radioButton15->Name = L"radioButton15";
                this->radioButton15->Size = System::Drawing::Size(65, 17);
                this->radioButton15->TabIndex = 19;
                this->radioButton15->TabStop = true;
                this->radioButton15->Text = L"Warning";
                this->radioButton15->UseVisualStyleBackColor = true;
                // 
                // radioButton14
                // 
                this->radioButton14->AutoSize = true;
                this->radioButton14->Location = System::Drawing::Point(3, 185);
                this->radioButton14->Name = L"radioButton14";
                this->radioButton14->Size = System::Drawing::Size(47, 17);
                this->radioButton14->TabIndex = 18;
                this->radioButton14->TabStop = true;
                this->radioButton14->Text = L"Stop";
                this->radioButton14->UseVisualStyleBackColor = true;
                // 
                // radioButton13
                // 
                this->radioButton13->AutoSize = true;
                this->radioButton13->Location = System::Drawing::Point(4, 164);
                this->radioButton13->Name = L"radioButton13";
                this->radioButton13->Size = System::Drawing::Size(67, 17);
                this->radioButton13->TabIndex = 17;
                this->radioButton13->TabStop = true;
                this->radioButton13->Text = L"Question";
                this->radioButton13->UseVisualStyleBackColor = true;
                // 
                // radioButton12
                // 
                this->radioButton12->AutoSize = true;
                this->radioButton12->Location = System::Drawing::Point(3, 142);
                this->radioButton12->Name = L"radioButton12";
                this->radioButton12->Size = System::Drawing::Size(97, 17);
                this->radioButton12->TabIndex = 16;
                this->radioButton12->TabStop = true;
                this->radioButton12->Text = L"None (No icon)";
                this->radioButton12->UseVisualStyleBackColor = true;
                // 
                // radioButton11
                // 
                this->radioButton11->AutoSize = true;
                this->radioButton11->Location = System::Drawing::Point(1, 120);
                this->radioButton11->Name = L"radioButton11";
                this->radioButton11->Size = System::Drawing::Size(77, 17);
                this->radioButton11->TabIndex = 15;
                this->radioButton11->TabStop = true;
                this->radioButton11->Text = L"Information";
                this->radioButton11->UseVisualStyleBackColor = true;
                // 
                // radioButton10
                // 
                this->radioButton10->AutoSize = true;
                this->radioButton10->Location = System::Drawing::Point(1, 98);
                this->radioButton10->Name = L"radioButton10";
                this->radioButton10->Size = System::Drawing::Size(51, 17);
                this->radioButton10->TabIndex = 14;
                this->radioButton10->TabStop = true;
                this->radioButton10->Text = L"Hand";
                this->radioButton10->UseVisualStyleBackColor = true;
                // 
                // radioButton9
                // 
                this->radioButton9->AutoSize = true;
                this->radioButton9->Location = System::Drawing::Point(2, 75);
                this->radioButton9->Name = L"radioButton9";
                this->radioButton9->Size = System::Drawing::Size(76, 17);
                this->radioButton9->TabIndex = 13;
                this->radioButton9->TabStop = true;
                this->radioButton9->Text = L"Exlamation";
                this->radioButton9->UseVisualStyleBackColor = true;
                this->radioButton9->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton9_CheckedChanged);
                // 
                // checkBox1
                // 
                this->checkBox1->AutoSize = true;
                this->checkBox1->Location = System::Drawing::Point(18, 325);
                this->checkBox1->Name = L"checkBox1";
                this->checkBox1->Size = System::Drawing::Size(127, 17);
                this->checkBox1->TabIndex = 15;
                this->checkBox1->Text = L"Запустить ножницы";
                this->checkBox1->UseVisualStyleBackColor = true;
                // 
                // label3
                // 
                this->label3->AutoSize = true;
                this->label3->Location = System::Drawing::Point(151, 325);
                this->label3->Name = L"label3";
                this->label3->Size = System::Drawing::Size(35, 13);
                this->label3->TabIndex = 16;
                this->label3->Text = L"label3";
                // 
                // Form1
                // 
                this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
                this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
                this->ClientSize = System::Drawing::Size(352, 462);
                this->Controls->Add(this->label3);
                this->Controls->Add(this->checkBox1);
                this->Controls->Add(this->groupBox2);
                this->Controls->Add(this->groupBox1);
                this->Controls->Add(this->label2);
                this->Controls->Add(this->label1);
                this->Controls->Add(this->textBox2);
                this->Controls->Add(this->textBox1);
                this->Controls->Add(this->button1);
                this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
                this->Name = L"Form1";
                this->Text = L"Window Maker 0.1 Alpha  By ponchic";
                this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
                this->groupBox1->ResumeLayout(false);
                this->groupBox1->PerformLayout();
                this->groupBox2->ResumeLayout(false);
                this->groupBox2->PerformLayout();
                this->ResumeLayout(false);
                this->PerformLayout();
    
            }
    #pragma endregion
           
            //MessageBoxButtons buttons;
            static MessageBoxIcon icon;
            MessageBoxIcon iconget () {
                if (radioButton7->Checked) return MessageBoxIcon::Asterisk;
                if (radioButton8->Checked) return MessageBoxIcon::Error;
                if (radioButton9->Checked) return MessageBoxIcon::Exclamation;
                if (radioButton10->Checked) return MessageBoxIcon::Hand;
                if (radioButton11->Checked) return MessageBoxIcon::Information;
                if (radioButton12->Checked) return MessageBoxIcon::None;
                if (radioButton13->Checked) return MessageBoxIcon::Question;
                if (radioButton14->Checked) return MessageBoxIcon::Stop;
                if (radioButton15->Checked) return MessageBoxIcon::Warning;
    
            }
    
        private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) { 
    
                    if (checkBox1->Checked)
                        {
                             // System::Threading::Thread::Sleep(2000);
                            if (FileExists("c:\\Windows\system32\SnippingTool.exe"))
                             {
                                 Diagnostics::Process::Start("C:\\Windows\system32\SnippingTool.exe", ""); 
                            } 
                        }
    
                   
    
                    if (radioButton1->Checked) { MessageBox::Show(textBox2->Text, textBox1->Text,  MessageBoxButtons::AbortRetryIgnore, iconget ()); }
                    if (radioButton2->Checked) { MessageBox::Show(textBox2->Text, textBox1->Text, MessageBoxButtons::OK, iconget ()); }
                    if (radioButton3->Checked) { MessageBox::Show(textBox2->Text, textBox1->Text, MessageBoxButtons::OKCancel, iconget ()); }
                    if (radioButton4->Checked) { MessageBox::Show(textBox2->Text, textBox1->Text, MessageBoxButtons::RetryCancel, iconget ()); }
                    if (radioButton5->Checked) { MessageBox::Show(textBox2->Text, textBox1->Text, MessageBoxButtons::YesNo, iconget ()); }
                    if (radioButton6->Checked) { MessageBox::Show(textBox2->Text, textBox1->Text, MessageBoxButtons::YesNoCancel, iconget ()); }  
    
                         
                         
    
                }
        private: System::Void label1_Click(System::Object^  sender, System::EventArgs^  e) {
                }
    private: System::Void toolTip1_Popup(System::Object^  sender, System::Windows::Forms::PopupEventArgs^  e) {
            }
    
    private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
                if (!FileExists("c:\\Windows\system32\SnippingTool.exe"))
                {  
                    checkBox1->Enabled = false;
                    this->label3->ForeColor = System::Drawing::Color::Red;
                    this->label3->Font = gcnew System::Drawing::Font("Courier New", 9.0F, FontStyle::Bold);
                    this->label3->Text = L"Ножницы не найдены,\n выкеньте свой комп\n из окна";
                     
                } 
            }
    
    
    private: System::Void radioButton1_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
            MessageBoxButtons buttons = MessageBoxButtons::AbortRetryIgnore;             
            }
    private: System::Void radioButton2_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                MessageBoxButtons buttons = MessageBoxButtons::OK;
            }
    private: System::Void radioButton3_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                MessageBoxButtons buttons = MessageBoxButtons::OKCancel;
            }
    
    private: System::Void radioButton4_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                MessageBoxButtons buttons = MessageBoxButtons::RetryCancel;
            }
    private: System::Void radioButton5_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                MessageBoxButtons buttons = MessageBoxButtons::YesNo;
            }
    private: System::Void radioButton6_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                MessageBoxButtons buttons = MessageBoxButtons::YesNoCancel;
            }
    private: System::Void radioButton7_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
            }
    private: System::Void radioButton8_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
            }
    private: System::Void radioButton9_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
            }
    };
    }
    
    Полный исходник:
    Please login or register to view links
    Моя первая прога на C++, не судите строго, если есть пожелания/идеи пишите.
     
    • Like Like x 7
    Метки:
  2. EEjester

    EEjester hack_the_god

    Регистрация:
    25 окт 2012
    Сообщения:
    1.326
    Симпатии:
    941
    Зачем она?
     
  3. asq00

    asq00

    Регистрация:
    9 окт 2013
    Сообщения:
    41
    Симпатии:
    25
    учится ведь человек)
     
  4. 3v1L

    3v1L

    Регистрация:
    15 май 2013
    Сообщения:
    92
    Симпатии:
    34
    Начнем, что не С++ а С#
     
    • Like Like x 1
  5. TopicStarter Overlay
    ponchic

    ponchic юзверь

    Регистрация:
    15 дек 2013
    Сообщения:
    407
    Симпатии:
    276
    Закончим тем что все фичи там на С++, а форма (как я понял) на Net Fraimwork 4.0
     
  6. 3v1L

    3v1L

    Регистрация:
    15 май 2013
    Сообщения:
    92
    Симпатии:
    34
    Ааааа. Те 3 строки кода и столько понтов ? Там от ++ только пара символов ) Высер защита )
     
  7. TopicStarter Overlay
    ponchic

    ponchic юзверь

    Регистрация:
    15 дек 2013
    Сообщения:
    407
    Симпатии:
    276
    Ок, буду писать консольные приложухи - гемора меньше в разы
    --- Добавил сообщение, 21 окт 2015 ---
    Если кто то попробует то проверьте, у всех ли будет надпись: Ножницы не найдены, выкеньте комп
     
  8. TopicStarter Overlay
    ponchic

    ponchic юзверь

    Регистрация:
    15 дек 2013
    Сообщения:
    407
    Симпатии:
    276
    UPDATE!!!!!!!!!!!!!!!!!!
    WindowMaker 1.0
    Изменения: По воле Аллаха && Иисуса справил фичу запуска ножниц
    Form1.h:
    Код:
    #pragma once
    #include <cstring>
    #include <io.h>
    bool FileExists(const char *fname)
    {
        return access(fname, 0) != -1;
    }
    /*
         ____          _____                 _     _              __ ___        ____ ____        __  ___        __  ___        ___   ___  __ _____ 
        |  _ \        |  __ \               | |   (_)            /_ |__ \   _  |___ \___ \      /_ |/ _ \      /_ |/ _ \      |__ \ / _ \/_ | ____|
        | |_) |_   _  | |__) |__  _ __   ___| |__  _  ___         | |  ) | (_)   __) |__) |      | | (_) |      | | | | |        ) | | | || | |__  
        |  _ <| | | | |  ___/ _ \| '_ \ / __| '_ \| |/ __|        | | / /       |__ <|__ <       | |\__, |      | | | | |       / /| | | || |___ \ 
        | |_) | |_| | | |  | (_) | | | | (__| | | | | (__         | |/ /_   _   ___) |__) |      | |  / /   _   | | |_| |  _   / /_| |_| || |___) |
        |____/ \__, | |_|   \___/|_| |_|\___|_| |_|_|\___|        |_|____| (_) |____/____/       |_| /_/   (_)  |_|\___/  (_) |____|\___/ |_|____/ 
               __/ |                                                                                                                              
              |___/     _                ___  __            _       _                                                                      
    \ \    / /          (_)              / _ \/_ |     /\   | |     | |                                                                      
     \ \  / /__ _ __ ___ _  ___  _ __   | | | || |    /  \  | |_ __ | |__   __ _                                                            
      \ \/ / _ \ '__/ __| |/ _ \| '_ \  | | | || |   / /\ \ | | '_ \| '_ \ / _` |                                                            
       \  /  __/ |  \__ \ | (_) | | | | | |_| || |  / ____ \| | |_) | | | | (_| |                                                            
        \/ \___|_|  |___/_|\___/|_| |_|  \___(_)_| /_/    \_\_| .__/|_| |_|\__,_|                                                            
        | |                                                                            
        |_|                              
        */
    
    namespace window_maker {
    
        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>
        /// Сводка для Form1
        /// </summary>
        public ref class Form1 : public System::Windows::Forms::Form
        {
        public:
            Form1(void)
            {
                InitializeComponent();
                //
                //TODO: добавьте код конструктора
                //
            }
    
        protected:
            /// <summary>
            /// Освободить все используемые ресурсы.
            /// </summary>
            ~Form1()
            {
                if (components)
                {
                    delete components;
                }
            }
        private: System::Windows::Forms::Button^  button1;
        private: System::Windows::Forms::TextBox^  textBox1;
        private: System::Windows::Forms::TextBox^  textBox2;
        private: System::Windows::Forms::Label^  label1;
        private: System::Windows::Forms::Label^  label2;
    
    
        private: System::Windows::Forms::RadioButton^  radioButton1;
        private: System::Windows::Forms::RadioButton^  radioButton2;
        private: System::Windows::Forms::RadioButton^  radioButton3;
        private: System::Windows::Forms::RadioButton^  radioButton4;
        private: System::Windows::Forms::RadioButton^  radioButton5;
        private: System::Windows::Forms::RadioButton^  radioButton6;
        private: System::Windows::Forms::RadioButton^  radioButton7;
        private: System::Windows::Forms::RadioButton^  radioButton8;
        private: System::Windows::Forms::GroupBox^  groupBox1;
        private: System::Windows::Forms::GroupBox^  groupBox2;
        private: System::Windows::Forms::RadioButton^  radioButton15;
        private: System::Windows::Forms::RadioButton^  radioButton14;
        private: System::Windows::Forms::RadioButton^  radioButton13;
        private: System::Windows::Forms::RadioButton^  radioButton12;
        private: System::Windows::Forms::RadioButton^  radioButton11;
        private: System::Windows::Forms::RadioButton^  radioButton10;
        private: System::Windows::Forms::RadioButton^  radioButton9;
        private: System::Windows::Forms::CheckBox^  checkBox1;
        private: System::Windows::Forms::Label^  label3;
    
    
    
    
    
    
    
        private: System::ComponentModel::IContainer^  components;
        protected: 
    
        private:
            /// <summary>
            /// Требуется переменная конструктора.
            /// </summary>
    
    
    #pragma region Windows Form Designer generated code
            /// <summary>
            /// Обязательный метод для поддержки конструктора - не изменяйте
            /// содержимое данного метода при помощи редактора кода.
            /// </summary>
            void InitializeComponent(void)
            {
                System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
                this->button1 = (gcnew System::Windows::Forms::Button());
                this->textBox1 = (gcnew System::Windows::Forms::TextBox());
                this->textBox2 = (gcnew System::Windows::Forms::TextBox());
                this->label1 = (gcnew System::Windows::Forms::Label());
                this->label2 = (gcnew System::Windows::Forms::Label());
                this->radioButton1 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton2 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton3 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton4 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton5 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton6 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton7 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton8 = (gcnew System::Windows::Forms::RadioButton());
                this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
                this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
                this->radioButton15 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton14 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton13 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton12 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton11 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton10 = (gcnew System::Windows::Forms::RadioButton());
                this->radioButton9 = (gcnew System::Windows::Forms::RadioButton());
                this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
                this->label3 = (gcnew System::Windows::Forms::Label());
                this->groupBox1->SuspendLayout();
                this->groupBox2->SuspendLayout();
                this->SuspendLayout();
                // 
                // button1
                // 
                this->button1->Location = System::Drawing::Point(18, 387);
                this->button1->Name = L"button1";
                this->button1->Size = System::Drawing::Size(189, 63);
                this->button1->TabIndex = 0;
                this->button1->Text = L"Вызвать ошибку";
                this->button1->UseVisualStyleBackColor = true;
                this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
                // 
                // textBox1
                // 
                this->textBox1->Location = System::Drawing::Point(172, 15);
                this->textBox1->Multiline = true;
                this->textBox1->Name = L"textBox1";
                this->textBox1->Size = System::Drawing::Size(168, 20);
                this->textBox1->TabIndex = 1;
                this->textBox1->Text = L"Error";
                // 
                // textBox2
                // 
                this->textBox2->Location = System::Drawing::Point(172, 41);
                this->textBox2->Multiline = true;
                this->textBox2->Name = L"textBox2";
                this->textBox2->Size = System::Drawing::Size(168, 48);
                this->textBox2->TabIndex = 2;
                this->textBox2->Text = L"Error text";
                // 
                // label1
                // 
                this->label1->AutoSize = true;
                this->label1->Location = System::Drawing::Point(25, 15);
                this->label1->Name = L"label1";
                this->label1->Size = System::Drawing::Size(103, 13);
                this->label1->TabIndex = 3;
                this->label1->Text = L"Title of MessageBox";
                this->label1->Click += gcnew System::EventHandler(this, &Form1::label1_Click);
                // 
                // label2
                // 
                this->label2->AutoSize = true;
                this->label2->Location = System::Drawing::Point(25, 41);
                this->label2->Name = L"label2";
                this->label2->Size = System::Drawing::Size(104, 13);
                this->label2->TabIndex = 4;
                this->label2->Text = L"Text of MessageBox";
                // 
                // radioButton1
                // 
                this->radioButton1->AutoSize = true;
                this->radioButton1->Location = System::Drawing::Point(7, 13);
                this->radioButton1->Name = L"radioButton1";
                this->radioButton1->Size = System::Drawing::Size(105, 17);
                this->radioButton1->TabIndex = 5;
                this->radioButton1->TabStop = true;
                this->radioButton1->Text = L"AbortRetryIgnore";
                this->radioButton1->UseVisualStyleBackColor = true;
                this->radioButton1->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton1_CheckedChanged);
                // 
                // radioButton2
                // 
                this->radioButton2->AutoSize = true;
                this->radioButton2->Location = System::Drawing::Point(7, 36);
                this->radioButton2->Name = L"radioButton2";
                this->radioButton2->Size = System::Drawing::Size(40, 17);
                this->radioButton2->TabIndex = 6;
                this->radioButton2->TabStop = true;
                this->radioButton2->Text = L"OK";
                this->radioButton2->UseVisualStyleBackColor = true;
                this->radioButton2->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton2_CheckedChanged);
                // 
                // radioButton3
                // 
                this->radioButton3->AutoSize = true;
                this->radioButton3->Location = System::Drawing::Point(7, 59);
                this->radioButton3->Name = L"radioButton3";
                this->radioButton3->Size = System::Drawing::Size(73, 17);
                this->radioButton3->TabIndex = 7;
                this->radioButton3->TabStop = true;
                this->radioButton3->Text = L"OKCancel";
                this->radioButton3->UseVisualStyleBackColor = true;
                this->radioButton3->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton3_CheckedChanged);
                // 
                // radioButton4
                // 
                this->radioButton4->AutoSize = true;
                this->radioButton4->Location = System::Drawing::Point(7, 82);
                this->radioButton4->Name = L"radioButton4";
                this->radioButton4->Size = System::Drawing::Size(83, 17);
                this->radioButton4->TabIndex = 8;
                this->radioButton4->TabStop = true;
                this->radioButton4->Text = L"RetryCancel";
                this->radioButton4->UseVisualStyleBackColor = true;
                this->radioButton4->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton4_CheckedChanged);
                // 
                // radioButton5
                // 
                this->radioButton5->AutoSize = true;
                this->radioButton5->Location = System::Drawing::Point(7, 106);
                this->radioButton5->Name = L"radioButton5";
                this->radioButton5->Size = System::Drawing::Size(57, 17);
                this->radioButton5->TabIndex = 9;
                this->radioButton5->TabStop = true;
                this->radioButton5->Text = L"YesNo";
                this->radioButton5->UseVisualStyleBackColor = true;
                this->radioButton5->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton5_CheckedChanged);
                // 
                // radioButton6
                // 
                this->radioButton6->AutoSize = true;
                this->radioButton6->Location = System::Drawing::Point(7, 129);
                this->radioButton6->Name = L"radioButton6";
                this->radioButton6->Size = System::Drawing::Size(90, 17);
                this->radioButton6->TabIndex = 10;
                this->radioButton6->TabStop = true;
                this->radioButton6->Text = L"YesNoCancel";
                this->radioButton6->UseVisualStyleBackColor = true;
                this->radioButton6->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton6_CheckedChanged);
                // 
                // radioButton7
                // 
                this->radioButton7->AutoSize = true;
                this->radioButton7->Location = System::Drawing::Point(0, 31);
                this->radioButton7->Name = L"radioButton7";
                this->radioButton7->Size = System::Drawing::Size(62, 17);
                this->radioButton7->TabIndex = 11;
                this->radioButton7->TabStop = true;
                this->radioButton7->Text = L"Asterisk";
                this->radioButton7->UseVisualStyleBackColor = true;
                this->radioButton7->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton7_CheckedChanged);
                // 
                // radioButton8
                // 
                this->radioButton8->AutoSize = true;
                this->radioButton8->Location = System::Drawing::Point(0, 54);
                this->radioButton8->Name = L"radioButton8";
                this->radioButton8->Size = System::Drawing::Size(47, 17);
                this->radioButton8->TabIndex = 12;
                this->radioButton8->TabStop = true;
                this->radioButton8->Text = L"Error";
                this->radioButton8->UseVisualStyleBackColor = true;
                this->radioButton8->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton8_CheckedChanged);
                // 
                // groupBox1
                // 
                this->groupBox1->Controls->Add(this->radioButton6);
                this->groupBox1->Controls->Add(this->radioButton5);
                this->groupBox1->Controls->Add(this->radioButton4);
                this->groupBox1->Controls->Add(this->radioButton3);
                this->groupBox1->Controls->Add(this->radioButton2);
                this->groupBox1->Controls->Add(this->radioButton1);
                this->groupBox1->Location = System::Drawing::Point(18, 95);
                this->groupBox1->Name = L"groupBox1";
                this->groupBox1->Size = System::Drawing::Size(126, 157);
                this->groupBox1->TabIndex = 13;
                this->groupBox1->TabStop = false;
                this->groupBox1->Text = L"Select Buttons:";
                // 
                // groupBox2
                // 
                this->groupBox2->Controls->Add(this->radioButton15);
                this->groupBox2->Controls->Add(this->radioButton14);
                this->groupBox2->Controls->Add(this->radioButton13);
                this->groupBox2->Controls->Add(this->radioButton12);
                this->groupBox2->Controls->Add(this->radioButton11);
                this->groupBox2->Controls->Add(this->radioButton10);
                this->groupBox2->Controls->Add(this->radioButton9);
                this->groupBox2->Controls->Add(this->radioButton8);
                this->groupBox2->Controls->Add(this->radioButton7);
                this->groupBox2->Location = System::Drawing::Point(172, 95);
                this->groupBox2->Name = L"groupBox2";
                this->groupBox2->Size = System::Drawing::Size(106, 227);
                this->groupBox2->TabIndex = 14;
                this->groupBox2->TabStop = false;
                this->groupBox2->Text = L"Select Icon fo window:";
                // 
                // radioButton15
                // 
                this->radioButton15->AutoSize = true;
                this->radioButton15->Location = System::Drawing::Point(4, 206);
                this->radioButton15->Name = L"radioButton15";
                this->radioButton15->Size = System::Drawing::Size(65, 17);
                this->radioButton15->TabIndex = 19;
                this->radioButton15->TabStop = true;
                this->radioButton15->Text = L"Warning";
                this->radioButton15->UseVisualStyleBackColor = true;
                // 
                // radioButton14
                // 
                this->radioButton14->AutoSize = true;
                this->radioButton14->Location = System::Drawing::Point(3, 185);
                this->radioButton14->Name = L"radioButton14";
                this->radioButton14->Size = System::Drawing::Size(47, 17);
                this->radioButton14->TabIndex = 18;
                this->radioButton14->TabStop = true;
                this->radioButton14->Text = L"Stop";
                this->radioButton14->UseVisualStyleBackColor = true;
                // 
                // radioButton13
                // 
                this->radioButton13->AutoSize = true;
                this->radioButton13->Location = System::Drawing::Point(4, 164);
                this->radioButton13->Name = L"radioButton13";
                this->radioButton13->Size = System::Drawing::Size(67, 17);
                this->radioButton13->TabIndex = 17;
                this->radioButton13->TabStop = true;
                this->radioButton13->Text = L"Question";
                this->radioButton13->UseVisualStyleBackColor = true;
                // 
                // radioButton12
                // 
                this->radioButton12->AutoSize = true;
                this->radioButton12->Location = System::Drawing::Point(3, 142);
                this->radioButton12->Name = L"radioButton12";
                this->radioButton12->Size = System::Drawing::Size(97, 17);
                this->radioButton12->TabIndex = 16;
                this->radioButton12->TabStop = true;
                this->radioButton12->Text = L"None (No icon)";
                this->radioButton12->UseVisualStyleBackColor = true;
                // 
                // radioButton11
                // 
                this->radioButton11->AutoSize = true;
                this->radioButton11->Location = System::Drawing::Point(1, 120);
                this->radioButton11->Name = L"radioButton11";
                this->radioButton11->Size = System::Drawing::Size(77, 17);
                this->radioButton11->TabIndex = 15;
                this->radioButton11->TabStop = true;
                this->radioButton11->Text = L"Information";
                this->radioButton11->UseVisualStyleBackColor = true;
                // 
                // radioButton10
                // 
                this->radioButton10->AutoSize = true;
                this->radioButton10->Location = System::Drawing::Point(1, 98);
                this->radioButton10->Name = L"radioButton10";
                this->radioButton10->Size = System::Drawing::Size(51, 17);
                this->radioButton10->TabIndex = 14;
                this->radioButton10->TabStop = true;
                this->radioButton10->Text = L"Hand";
                this->radioButton10->UseVisualStyleBackColor = true;
                // 
                // radioButton9
                // 
                this->radioButton9->AutoSize = true;
                this->radioButton9->Location = System::Drawing::Point(2, 75);
                this->radioButton9->Name = L"radioButton9";
                this->radioButton9->Size = System::Drawing::Size(76, 17);
                this->radioButton9->TabIndex = 13;
                this->radioButton9->TabStop = true;
                this->radioButton9->Text = L"Exlamation";
                this->radioButton9->UseVisualStyleBackColor = true;
                this->radioButton9->CheckedChanged += gcnew System::EventHandler(this, &Form1::radioButton9_CheckedChanged);
                // 
                // checkBox1
                // 
                this->checkBox1->AutoSize = true;
                this->checkBox1->Location = System::Drawing::Point(18, 325);
                this->checkBox1->Name = L"checkBox1";
                this->checkBox1->Size = System::Drawing::Size(127, 17);
                this->checkBox1->TabIndex = 15;
                this->checkBox1->Text = L"Запустить ножницы";
                this->checkBox1->UseVisualStyleBackColor = true;
                // 
                // label3
                // 
                this->label3->AutoSize = true;
                this->label3->Location = System::Drawing::Point(151, 325);
                this->label3->Name = L"label3";
                this->label3->Size = System::Drawing::Size(35, 13);
                this->label3->TabIndex = 16;
                this->label3->Text = L"label3";
                // 
                // Form1
                // 
                this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
                this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
                this->ClientSize = System::Drawing::Size(356, 462);
                this->Controls->Add(this->label3);
                this->Controls->Add(this->checkBox1);
                this->Controls->Add(this->groupBox2);
                this->Controls->Add(this->groupBox1);
                this->Controls->Add(this->label2);
                this->Controls->Add(this->label1);
                this->Controls->Add(this->textBox2);
                this->Controls->Add(this->textBox1);
                this->Controls->Add(this->button1);
                this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
                this->Name = L"Form1";
                this->Text = L"Window Maker 0.1 Alpha  By ponchic";
                this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
                this->groupBox1->ResumeLayout(false);
                this->groupBox1->PerformLayout();
                this->groupBox2->ResumeLayout(false);
                this->groupBox2->PerformLayout();
                this->ResumeLayout(false);
                this->PerformLayout();
    
            }
    #pragma endregion
           
            //MessageBoxButtons buttons;
            static MessageBoxIcon icon;
            MessageBoxIcon iconget () {
                MessageBoxIcon msbic[9] = {MessageBoxIcon::Asterisk, MessageBoxIcon::Error, MessageBoxIcon::Exclamation, MessageBoxIcon::Hand, MessageBoxIcon::Information, MessageBoxIcon::None, MessageBoxIcon::Question, MessageBoxIcon::Stop, MessageBoxIcon::Warning};
                if (radioButton7->Checked) return msbic[0];
                if (radioButton8->Checked) return msbic[1];
                if (radioButton9->Checked) return msbic[2];
                if (radioButton10->Checked) return msbic[3];
                if (radioButton11->Checked) return msbic[4];
                if (radioButton12->Checked) return msbic[5];
                if (radioButton13->Checked) return msbic[6];
                if (radioButton14->Checked) return msbic[7];
                if (radioButton15->Checked) return msbic[8];
    
            }
            MessageBoxButtons MessageBoxButtonsGet () {
                MessageBoxButtons msbi[6] = {MessageBoxButtons::AbortRetryIgnore, MessageBoxButtons::OK, MessageBoxButtons::OKCancel, MessageBoxButtons::RetryCancel, MessageBoxButtons::YesNo, MessageBoxButtons::YesNoCancel};
                //while ()
                if (radioButton1->Checked) return msbi[0];
                if (radioButton2->Checked) return msbi[1];
                if (radioButton3->Checked) return msbi[2];
                if (radioButton4->Checked) return msbi[3];
                if (radioButton5->Checked) return msbi[4];
                if (radioButton6->Checked) return msbi[5];
            }
    
        private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) { 
    
                    if (checkBox1->Checked)
                        {
                             // System::Threading::Thread::Sleep(2000);
                            if ( FileExists("C:\\Windows\\system32\\SnippingTool.exe") )  {
                                 Diagnostics::Process::Start("C:\\Windows\\system32\\SnippingTool.exe", ""); 
                            } else 
                                if ( FileExists("C:/Windows/sysnative/SnippingTool.exe") ) {
                                    Diagnostics::Process::Start("C:/Windows/sysnative/SnippingTool.exe", ""); 
    
                                }
                                 
                        }
    
                    MessageBox::Show(textBox2->Text, textBox1->Text, MessageBoxButtonsGet (), iconget ());
    
                 
    
                }
        private: System::Void label1_Click(System::Object^  sender, System::EventArgs^  e) {
                }
    private: System::Void toolTip1_Popup(System::Object^  sender, System::Windows::Forms::PopupEventArgs^  e) {
            }
    
    
             
    
    private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
                /*if (!FileExists("C:\\Windows\\system32\\SnippingTool.exe") || !FileExists("C:/Windows/sysnative/SnippingTool.exe"))
                {  
                    checkBox1->Enabled = false;
                    this->label3->ForeColor = System::Drawing::Color::Red;
                    this->label3->Font = gcnew System::Drawing::Font("Courier New", 9.0F, FontStyle::Bold);
                    this->label3->Text = L"Ножницы не найдены,\n выкеньте свой комп\n из окна";
                     
                } 
                */
            }
    
    
    private: System::Void radioButton1_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                         
            }
    private: System::Void radioButton2_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
               
            }
    private: System::Void radioButton3_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
           
            }
    
    private: System::Void radioButton4_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
               
            }
    private: System::Void radioButton5_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
               
            }
    private: System::Void radioButton6_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
                 
            }
    private: System::Void radioButton7_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
            }
    private: System::Void radioButton8_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
            }
    private: System::Void radioButton9_CheckedChanged(System::Object^  sender, System::EventArgs^  e) {
            }
    };
    }
    
    
     

Поделиться этой страницей

Загрузка...