1 / 1 / 0
Регистрация: 12.03.2018
Сообщений: 31

Создание путей к форме

12.03.2018, 19:17. Показов 1602. Ответов 27
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Здравствуйте, у меня такая проблема. У меня есть две формы, мне надо сделать что бы с формы 1 запускалась форма 2 через кнопку. У меня есть такой код, из-за него выходят ошибки при компиляции другой формы. Вот код с формы 1 :

C++
1
2
3
4
5
6
7
#pragma endregion
    private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
                 MyForm2^ f=gcnew MyForm2();
                 this->Hide();
                 f->ShowDialog();
                 this->Show();
             }
Это чисто уже переход по кнопке. Надо с формы 1 (MyForm) перейти на форму 2 (MyForm2).
Помогите пожалуйста.
0
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
12.03.2018, 19:17
Ответы с готовыми решениями:

Создание уникальных путей в графе
Здравствуйте, уважаемые пользователи cyberforum! Нужна ваша незаменимая помощь. Перейду к сути вопроса: Есть граф из определенного...

Создание путей к файлу по клику
Всем привет, в общем меня интересует вопрос можно ли в FileStream(@"вот этот путь сделать так, чтоб когда совершался клик по функции, этот...

Создание файла со списком путей к файлам
Привет парни! Помогите с темой: 1. Нужно создать файл следующей структуры: Имя Путь К примеру: Калькулятор

27
1 / 1 / 0
Регистрация: 12.03.2018
Сообщений: 31
12.03.2018, 23:01  [ТС]
Студворк — интернет-сервис помощи студентам
Прочитал, делал все тоже самое как написано.

Добавлено через 7 минут
Main встречается в коде файла MyForm.cpp
0
Администратор
Эксперт .NET
 Аватар для OwenGlendower
18349 / 14275 / 5370
Регистрация: 17.03.2014
Сообщений: 28,958
Записей в блоге: 1
12.03.2018, 23:04
Цитата Сообщение от Eduard_pro Посмотреть сообщение
Main встречается в коде файла MyForm.cpp
Значит укажи Main в качестве точки входа в настройках компоновщика. Ты же в курсе что C++ регистрозависимый язык? Для него main и Main это разные идентификаторы.
0
1 / 1 / 0
Регистрация: 12.03.2018
Сообщений: 31
13.03.2018, 13:06  [ТС]
Ок, как правильно записать в компоновщик его main или Main? Я записал main.

Добавлено через 13 часов 50 минут
Поменял на Main, всеравно выдает туже самую ошибку точка входа должна быть определена
0
Администратор
Эксперт .NET
 Аватар для OwenGlendower
18349 / 14275 / 5370
Регистрация: 17.03.2014
Сообщений: 28,958
Записей в блоге: 1
13.03.2018, 14:06
Eduard_pro, выложи код проекта на сайт.
0
1 / 1 / 0
Регистрация: 12.03.2018
Сообщений: 31
13.03.2018, 16:09  [ТС]
Код файла MyForm.cpp
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "MyForm.h"
 
using namespace System;
using namespace System::Windows::Forms;
 
[STAThreadAttribute]
void Main(array<String^>^ args) {
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false);
 
    lab1::MyForm form;
    Application::Run(%form);
}
Код файла первой формы
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
#pragma once
#include "MyForm2.h" 
 
namespace lab1 {
 
    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>
    /// Сводка для MyForm
    /// </summary>
    public ref class MyForm : public System::Windows::Forms::Form
    {
    public:
        MyForm(void)
        {
            InitializeComponent();
            //
            //TODO: добавьте код конструктора
            //
        }
 
    protected:
        /// <summary>
        /// Освободить все используемые ресурсы.
        /// </summary>
        ~MyForm()
        {
            if (components)
            {
                delete components;
            }
        }
    private: System::Windows::Forms::Button^  button1;
    protected: 
    private: System::Windows::Forms::Button^  button2;
    private: System::Windows::Forms::Button^  button3;
    private: System::Windows::Forms::TextBox^  textBox1;
    private: System::Windows::Forms::Label^  label1;
    private: System::Windows::Forms::Label^  label2;
    private: System::Windows::Forms::GroupBox^  groupBox1;
    private: System::Windows::Forms::CheckBox^  checkBox4;
    private: System::Windows::Forms::CheckBox^  checkBox3;
    private: System::Windows::Forms::CheckBox^  checkBox2;
    private: System::Windows::Forms::CheckBox^  checkBox1;
    private: System::Windows::Forms::GroupBox^  groupBox2;
    private: System::Windows::Forms::RadioButton^  radioButton5;
    private: System::Windows::Forms::RadioButton^  radioButton4;
    private: System::Windows::Forms::RadioButton^  radioButton3;
    private: System::Windows::Forms::RadioButton^  radioButton2;
    private: System::Windows::Forms::RadioButton^  radioButton1;
 
    private:
        /// <summary>
        /// Требуется переменная конструктора.
        /// </summary>
        System::ComponentModel::Container ^components;
 
#pragma region Windows Form Designer generated code
        /// <summary>
        /// Обязательный метод для поддержки конструктора - не изменяйте
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        void InitializeComponent(void)
        {
            this->button1 = (gcnew System::Windows::Forms::Button());
            this->button2 = (gcnew System::Windows::Forms::Button());
            this->button3 = (gcnew System::Windows::Forms::Button());
            this->textBox1 = (gcnew System::Windows::Forms::TextBox());
            this->label1 = (gcnew System::Windows::Forms::Label());
            this->label2 = (gcnew System::Windows::Forms::Label());
            this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
            this->checkBox1 = (gcnew System::Windows::Forms::CheckBox());
            this->checkBox2 = (gcnew System::Windows::Forms::CheckBox());
            this->checkBox3 = (gcnew System::Windows::Forms::CheckBox());
            this->checkBox4 = (gcnew System::Windows::Forms::CheckBox());
            this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
            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->groupBox1->SuspendLayout();
            this->groupBox2->SuspendLayout();
            this->SuspendLayout();
            // 
            // button1
            // 
            this->button1->Font = (gcnew System::Drawing::Font(L"Century", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->button1->Location = System::Drawing::Point(96, 288);
            this->button1->Name = L"button1";
            this->button1->Size = System::Drawing::Size(161, 35);
            this->button1->TabIndex = 0;
            this->button1->Text = L"Виведення тексту";
            this->button1->UseVisualStyleBackColor = true;
            // 
            // button2
            // 
            this->button2->Font = (gcnew System::Drawing::Font(L"Century", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->button2->Location = System::Drawing::Point(300, 288);
            this->button2->Name = L"button2";
            this->button2->Size = System::Drawing::Size(135, 35);
            this->button2->TabIndex = 1;
            this->button2->Text = L"Запуск форми";
            this->button2->UseVisualStyleBackColor = true;
            this->button2->Click += gcnew System::EventHandler(this, &MyForm::button2_Click);
            // 
            // button3
            // 
            this->button3->Font = (gcnew System::Drawing::Font(L"Century", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->button3->Location = System::Drawing::Point(480, 288);
            this->button3->Name = L"button3";
            this->button3->Size = System::Drawing::Size(75, 35);
            this->button3->TabIndex = 2;
            this->button3->Text = L"Вихід";
            this->button3->UseVisualStyleBackColor = true;
            // 
            // textBox1
            // 
            this->textBox1->Location = System::Drawing::Point(222, 218);
            this->textBox1->Name = L"textBox1";
            this->textBox1->Size = System::Drawing::Size(333, 20);
            this->textBox1->TabIndex = 3;
            // 
            // label1
            // 
            this->label1->AutoSize = true;
            this->label1->Font = (gcnew System::Drawing::Font(L"Century", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->label1->Location = System::Drawing::Point(65, 218);
            this->label1->Name = L"label1";
            this->label1->Size = System::Drawing::Size(112, 20);
            this->label1->TabIndex = 4;
            this->label1->Text = L"Введіть текст";
            // 
            // label2
            // 
            this->label2->AutoSize = true;
            this->label2->Font = (gcnew System::Drawing::Font(L"Century", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->label2->Location = System::Drawing::Point(66, 31);
            this->label2->Name = L"label2";
            this->label2->Size = System::Drawing::Size(43, 16);
            this->label2->TabIndex = 5;
            this->label2->Text = L"label2";
            // 
            // groupBox1
            // 
            this->groupBox1->Controls->Add(this->checkBox4);
            this->groupBox1->Controls->Add(this->checkBox3);
            this->groupBox1->Controls->Add(this->checkBox2);
            this->groupBox1->Controls->Add(this->checkBox1);
            this->groupBox1->Font = (gcnew System::Drawing::Font(L"Century", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->groupBox1->Location = System::Drawing::Point(50, 121);
            this->groupBox1->Name = L"groupBox1";
            this->groupBox1->Size = System::Drawing::Size(505, 45);
            this->groupBox1->TabIndex = 6;
            this->groupBox1->TabStop = false;
            this->groupBox1->Text = L"Стиль шрифту";
            // 
            // checkBox1
            // 
            this->checkBox1->AutoSize = true;
            this->checkBox1->Font = (gcnew System::Drawing::Font(L"Century", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->checkBox1->Location = System::Drawing::Point(6, 20);
            this->checkBox1->Name = L"checkBox1";
            this->checkBox1->Size = System::Drawing::Size(121, 20);
            this->checkBox1->TabIndex = 0;
            this->checkBox1->Text = L"напівжирний";
            this->checkBox1->UseVisualStyleBackColor = true;
            // 
            // checkBox2
            // 
            this->checkBox2->AutoSize = true;
            this->checkBox2->Font = (gcnew System::Drawing::Font(L"Century", 9.75F, System::Drawing::FontStyle::Italic, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->checkBox2->Location = System::Drawing::Point(143, 20);
            this->checkBox2->Name = L"checkBox2";
            this->checkBox2->Size = System::Drawing::Size(94, 20);
            this->checkBox2->TabIndex = 1;
            this->checkBox2->Text = L"курсивний";
            this->checkBox2->UseVisualStyleBackColor = true;
            // 
            // checkBox3
            // 
            this->checkBox3->AutoSize = true;
            this->checkBox3->Font = (gcnew System::Drawing::Font(L"Century", 9.75F, System::Drawing::FontStyle::Underline, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->checkBox3->Location = System::Drawing::Point(250, 20);
            this->checkBox3->Name = L"checkBox3";
            this->checkBox3->Size = System::Drawing::Size(111, 20);
            this->checkBox3->TabIndex = 2;
            this->checkBox3->Text = L"підкреслений";
            this->checkBox3->UseVisualStyleBackColor = true;
            // 
            // checkBox4
            // 
            this->checkBox4->AutoSize = true;
            this->checkBox4->Font = (gcnew System::Drawing::Font(L"Century", 9.75F, System::Drawing::FontStyle::Strikeout, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->checkBox4->Location = System::Drawing::Point(376, 20);
            this->checkBox4->Name = L"checkBox4";
            this->checkBox4->Size = System::Drawing::Size(119, 20);
            this->checkBox4->TabIndex = 3;
            this->checkBox4->Text = L"перекреслений";
            this->checkBox4->UseVisualStyleBackColor = true;
            // 
            // groupBox2
            // 
            this->groupBox2->Controls->Add(this->radioButton5);
            this->groupBox2->Controls->Add(this->radioButton4);
            this->groupBox2->Controls->Add(this->radioButton3);
            this->groupBox2->Controls->Add(this->radioButton2);
            this->groupBox2->Controls->Add(this->radioButton1);
            this->groupBox2->Font = (gcnew System::Drawing::Font(L"Century", 11.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->groupBox2->Location = System::Drawing::Point(50, 359);
            this->groupBox2->Name = L"groupBox2";
            this->groupBox2->Size = System::Drawing::Size(560, 50);
            this->groupBox2->TabIndex = 7;
            this->groupBox2->TabStop = false;
            this->groupBox2->Text = L"Колір шрифту";
            // 
            // radioButton1
            // 
            this->radioButton1->AutoSize = true;
            this->radioButton1->BackColor = System::Drawing::Color::Red;
            this->radioButton1->Font = (gcnew System::Drawing::Font(L"Century", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->radioButton1->Location = System::Drawing::Point(19, 21);
            this->radioButton1->Name = L"radioButton1";
            this->radioButton1->Size = System::Drawing::Size(78, 20);
            this->radioButton1->TabIndex = 0;
            this->radioButton1->TabStop = true;
            this->radioButton1->Text = L"красний";
            this->radioButton1->UseVisualStyleBackColor = false;
            // 
            // radioButton2
            // 
            this->radioButton2->AutoSize = true;
            this->radioButton2->BackColor = System::Drawing::Color::Blue;
            this->radioButton2->Font = (gcnew System::Drawing::Font(L"Century", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->radioButton2->ForeColor = System::Drawing::Color::White;
            this->radioButton2->Location = System::Drawing::Point(133, 21);
            this->radioButton2->Name = L"radioButton2";
            this->radioButton2->Size = System::Drawing::Size(60, 20);
            this->radioButton2->TabIndex = 1;
            this->radioButton2->TabStop = true;
            this->radioButton2->Text = L"синій";
            this->radioButton2->UseVisualStyleBackColor = false;
            // 
            // radioButton3
            // 
            this->radioButton3->AutoSize = true;
            this->radioButton3->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(0)), static_cast<System::Int32>(static_cast<System::Byte>(192)), 
                static_cast<System::Int32>(static_cast<System::Byte>(0)));
            this->radioButton3->Font = (gcnew System::Drawing::Font(L"Century", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->radioButton3->ForeColor = System::Drawing::Color::White;
            this->radioButton3->Location = System::Drawing::Point(234, 21);
            this->radioButton3->Name = L"radioButton3";
            this->radioButton3->Size = System::Drawing::Size(76, 20);
            this->radioButton3->TabIndex = 2;
            this->radioButton3->TabStop = true;
            this->radioButton3->Text = L"зелений";
            this->radioButton3->UseVisualStyleBackColor = false;
            // 
            // radioButton4
            // 
            this->radioButton4->AutoSize = true;
            this->radioButton4->BackColor = System::Drawing::Color::Yellow;
            this->radioButton4->Font = (gcnew System::Drawing::Font(L"Century", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->radioButton4->Location = System::Drawing::Point(350, 21);
            this->radioButton4->Name = L"radioButton4";
            this->radioButton4->Size = System::Drawing::Size(71, 20);
            this->radioButton4->TabIndex = 3;
            this->radioButton4->TabStop = true;
            this->radioButton4->Text = L"жовтий";
            this->radioButton4->UseVisualStyleBackColor = false;
            // 
            // radioButton5
            // 
            this->radioButton5->AutoSize = true;
            this->radioButton5->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(0)), static_cast<System::Int32>(static_cast<System::Byte>(0)), 
                static_cast<System::Int32>(static_cast<System::Byte>(64)));
            this->radioButton5->Font = (gcnew System::Drawing::Font(L"Century", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->radioButton5->ForeColor = System::Drawing::Color::White;
            this->radioButton5->Location = System::Drawing::Point(463, 21);
            this->radioButton5->Name = L"radioButton5";
            this->radioButton5->Size = System::Drawing::Size(70, 20);
            this->radioButton5->TabIndex = 4;
            this->radioButton5->TabStop = true;
            this->radioButton5->Text = L"чорний";
            this->radioButton5->UseVisualStyleBackColor = false;
            // 
            // MyForm
            // 
            this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
            this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
            this->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(255)), static_cast<System::Int32>(static_cast<System::Byte>(224)), 
                static_cast<System::Int32>(static_cast<System::Byte>(192)));
            this->ClientSize = System::Drawing::Size(644, 461);
            this->Controls->Add(this->groupBox2);
            this->Controls->Add(this->groupBox1);
            this->Controls->Add(this->label2);
            this->Controls->Add(this->label1);
            this->Controls->Add(this->textBox1);
            this->Controls->Add(this->button3);
            this->Controls->Add(this->button2);
            this->Controls->Add(this->button1);
            this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedToolWindow;
            this->Name = L"MyForm";
            this->Text = L"Лабараторна робота №1. Виконав Рудя Е. В., група 5151";
            this->groupBox1->ResumeLayout(false);
            this->groupBox1->PerformLayout();
            this->groupBox2->ResumeLayout(false);
            this->groupBox2->PerformLayout();
            this->ResumeLayout(false);
            this->PerformLayout();
 
        }
#pragma endregion
    private: System::Void MyForm_Load(System::Object^  sender, System::EventArgs^  e) {
             }
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
                 MyForm2^ f = gcnew MyForm2();
                 this->Hide();
                 f->ShowDialog();
                 this->Show();
             }
};
}
Код файла формы 2
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#pragma once
 
namespace lab1 {
 
    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>
    /// Сводка для MyForm2
    /// </summary>
    public ref class MyForm2 : public System::Windows::Forms::Form
    {
    public:
        MyForm2(void)
        {
            InitializeComponent();
            //
            //TODO: добавьте код конструктора
            //
        }
 
    protected:
        /// <summary>
        /// Освободить все используемые ресурсы.
        /// </summary>
        ~MyForm2()
        {
            if (components)
            {
                delete components;
            }
        }
    private: System::Windows::Forms::Button^  button1;
    protected: 
    private: System::Windows::Forms::PictureBox^  pictureBox1;
 
    private:
        /// <summary>
        /// Требуется переменная конструктора.
        /// </summary>
        System::ComponentModel::Container ^components;
 
#pragma region Windows Form Designer generated code
        /// <summary>
        /// Обязательный метод для поддержки конструктора - не изменяйте
        /// содержимое данного метода при помощи редактора кода.
        /// </summary>
        void InitializeComponent(void)
        {
            System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(MyForm2::typeid));
            this->button1 = (gcnew System::Windows::Forms::Button());
            this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
            (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->pictureBox1))->BeginInit();
            this->SuspendLayout();
            // 
            // button1
            // 
            this->button1->Font = (gcnew System::Drawing::Font(L"Century", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
                static_cast<System::Byte>(204)));
            this->button1->Location = System::Drawing::Point(139, 359);
            this->button1->Name = L"button1";
            this->button1->Size = System::Drawing::Size(170, 40);
            this->button1->TabIndex = 0;
            this->button1->Text = L"Приховати форму";
            this->button1->UseVisualStyleBackColor = true;
            this->button1->Click += gcnew System::EventHandler(this, &MyForm2::button1_Click);
            // 
            // pictureBox1
            // 
            this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"pictureBox1.Image")));
            this->pictureBox1->Location = System::Drawing::Point(-1, 0);
            this->pictureBox1->Name = L"pictureBox1";
            this->pictureBox1->Size = System::Drawing::Size(440, 353);
            this->pictureBox1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
            this->pictureBox1->TabIndex = 1;
            this->pictureBox1->TabStop = false;
            // 
            // MyForm2
            // 
            this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
            this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
            this->BackColor = System::Drawing::Color::White;
            this->ClientSize = System::Drawing::Size(434, 411);
            this->Controls->Add(this->pictureBox1);
            this->Controls->Add(this->button1);
            this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedToolWindow;
            this->Name = L"MyForm2";
            this->Text = L"про програму";
            (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->pictureBox1))->EndInit();
            this->ResumeLayout(false);
 
        }
#pragma endregion
    private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
                 this->Hide();
             }
    };
}
Добавлено через 1 минуту
Вот такая ошибка "подсистема не может быть логически выведена, а должна быть определена"
0
Администратор
Эксперт .NET
 Аватар для OwenGlendower
18349 / 14275 / 5370
Регистрация: 17.03.2014
Сообщений: 28,958
Записей в блоге: 1
13.03.2018, 16:23
Цитата Сообщение от Eduard_pro Посмотреть сообщение
Вот такая ошибка "подсистема не может быть логически выведена, а должна быть определена"
Это уже другая ошибка не имеющая отношения к точке входа. Если бы ты в самом деле сделал как сказано в инструкции, то ошибки бы не было. Укажи в настройках правильный SUBSYSTEM
0
1 / 1 / 0
Регистрация: 12.03.2018
Сообщений: 31
13.03.2018, 22:18  [ТС]
Получилось, спасибо большое за помощь, теперь надо перед каждым блин проектом это делать
0
Администратор
Эксперт .NET
 Аватар для OwenGlendower
18349 / 14275 / 5370
Регистрация: 17.03.2014
Сообщений: 28,958
Записей в блоге: 1
13.03.2018, 22:51
Eduard_pro, а можно, блин, дочитать инструкцию до конца и узнать как создавать шаблоны проектов или скачать уже созданный.
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
13.03.2018, 22:51

Запрет на создание записи в подчиненной форме при отсутствии значения в поле главной формы( или в этой же подчиненной форме) Аксесс 2003
Доброго времени суток ! Помогите , пожалуйста, решить проблему! шаг 1. В форме &quot;frmТОиР_2&quot; при вводе в &quot;ПОЛЕ...

Создание компонент на форме
Добрый день, подскажите пожалуйста, ответ на следующий вопрос... Есть класс public class block { public int type; ...

Создание слайдов на форме
Добрый день. Нужна ваша помощь. Как сделать список слайдов в форме. Мне нужно что бы при нажатии на кнопку менялся слайд. Помогите...

Создание Документа В Форме
Всем доброе утро, я новичок в Лотусе, вопрос банальный: необходимо написать агента который будет создавать документ в форме fArhives с...

Создание кнопки на форме
прошу помочь в таком вопросе. мне нужно создать кнопку на форме которая открывала бы мне сразу нужную папку где будут храниться у меня...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
28
Ответ Создать тему
Опции темы

Новые блоги и статьи
тв 16 бой ии
anaschu 27.07.2026
Великий Перелом ИИ: Как уравнения ОДУ Radau дожали цензурные фильтры Алисы Фиксируем в мемофонде Теории Всего беспрецедентный факт в истории ИИ-зондирования. В затяжном многораундовом. . .
мв 15. непроверенное, возможно, глюк
anaschu 27.07.2026
НАУЧНО-АНАЛИТИЧЕСКИЙ ОТЧЕТ. РАЗДЕЛ 1. 1: «НАУКА» (РАСШИРЕННАЯ СТЕХИОМЕТРИЧЕСКАЯ И ГЕНЕТИЧЕСКАЯ ВЕРСИЯ)Тема: Теоретическое обоснование инвариантности 19-мерного тензорного ядра непрерывных ОДУ и. . .
Очистка реквизитов и табличных частей документа при копировании
Maks 26.07.2026
Алгоритм из решения ниже разработан на примере нетипового документа "ЗаявкаНаРаботу", разработанного в КА2. Задача: Заменить алгоритм запрета копирования документов для сотрудников с ролью "Стажер",. . .
Доктрина интенционального знания - Доктрина для портала "Срез".
Hrethgir 25.07.2026
Может найдётся кто захочет оценить доктрину. . . Написания правил участия для меня роскошь, требующая лимита времени, поэтому все сообщения не прошедшие модерацию будут видны только участникам портала,. . .
сукцессия 44. Решил подать на припринт в межународные сервисы препринтов. Но нужно одобрение от ученых
anaschu 25.07.2026
Английский вариант. Пока кто то не одобрит мою личность, мне не получиться это опубликовать на препринте. Но заявку на публикацию статьи я сегодня подам.
сукцессия 43. Вторая научная статья за месяц- прайминг и гатгил
anaschu 25.07.2026
две стороны одной монеты
Более приземисто - Эстафету хвоста в .cdl (деревья эстафеты в сад).
Hrethgir 24.07.2026
В будущем, после написания блока инверсии обхода дерева (эстафеты хвоста), я планирую вернуться к нашему прошлому разговору о том, обладают ли знания целеполаганием. Тогда я пришел к выводу, что. . .
Вот представьте что вам дали бессмертие.
kumehtar 24.07.2026
Вот представьте что вам дали бессмертие, ничего более не меняя. Вообще ничего, только бессмертие в нынешнем виде. Рады были бы? Что бы вы тут делали всё это время? Никакой пенсии. Никакого нового. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru