Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / WinForms, .Net Framework [игнор отключен] [закрыт для гостей] / Ура! HelloWorld заработало! / 14 сообщений из 14, страница 1 из 1
29.08.2003, 15:12
    #32251593
Осел
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
Наконец-то заработало мое замечательное (консольное!) приложение HelloWorld, про которое я тут рассказывал. Стал создавать "новый проект" как "консольное приложение" и компилироваться оно стало как положено!\r
Желающие могут меня поздравить с успешным стартом.
...
Рейтинг: 0 / 0
29.08.2003, 15:16
    #32251606
Осел
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
Девять дней напряженной работы принесли свои плоды!
...
Рейтинг: 0 / 0
29.08.2003, 18:52
    #32251894
mahoune
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
Молодца!
ПАЗДРАВЛЯЕМ!!!
...
Рейтинг: 0 / 0
29.08.2003, 20:00
    #32251934
Осел
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
Mahoune,
Спасибо на добром слове. Я уж и сам себя поздравил вот так:
Код: plaintext
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.
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Gratulations
{

	public class WinForm4 : System.Windows.Forms.Form
	{
	   private System.ComponentModel.Container components = null;
	   private System.Windows.Forms.Label label1;

		public WinForm4()
		{

			InitializeComponent();

		}

		protected override void Dispose (bool disposing)
		{
			if (disposing)
			{
				if (components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose(disposing);
		}

		private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			this.label1.Font = new System.Drawing.Font( "Microsoft Sans Serif" ,  9 .75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)( 204 )));
			this.label1.ForeColor = System.Drawing.Color.Red;
			this.label1.Location = new System.Drawing.Point( 56 ,  16 );
			this.label1.Name =  "label1" ;
			this.label1.Size = new System.Drawing.Size( 144 ,  32 );
			this.label1.TabIndex =  0 ;
			this.label1.Text =  "Ты создал первую форму, слава тебе!" ;
			this.AutoScaleBaseSize = new System.Drawing.Size( 5 ,  13 );
			this.ClientSize = new System.Drawing.Size( 248 ,  85 );
			this.Controls.Add(this.label1);
			this.Name =  "WinForm4" ;
			this.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text =  "Прими поздравления" ;
			this.ResumeLayout(false);
		}

		[STAThread]
		static void Main() 
		{
			Application.Run(new WinForm4());
		}
	}
}
...
Рейтинг: 0 / 0
31.08.2003, 06:02
    #32252110
vdimas
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
Код: plaintext
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.
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace WindowsApplication1
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Button button1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#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>
		private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.button1 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label1.Location = new System.Drawing.Point( 16 ,  24 );
			this.label1.Name =  "label1" ;
			this.label1.Size = new System.Drawing.Size( 88 ,  176 );
			this.label1.TabIndex =  0 ;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point( 32 ,  48 );
			this.label2.Name =  "label2" ;
			this.label2.Size = new System.Drawing.Size( 56 ,  128 );
			this.label2.TabIndex =  1 ;
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point( 136 ,  48 );
			this.label3.Name =  "label3" ;
			this.label3.Size = new System.Drawing.Size( 56 ,  128 );
			this.label3.TabIndex =  3 ;
			// 
			// label4
			// 
			this.label4.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label4.Location = new System.Drawing.Point( 120 ,  24 );
			this.label4.Name =  "label4" ;
			this.label4.Size = new System.Drawing.Size( 72 ,  176 );
			this.label4.TabIndex =  2 ;
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point( 224 ,  112 );
			this.label5.Name =  "label5" ;
			this.label5.Size = new System.Drawing.Size( 56 ,  64 );
			this.label5.TabIndex =  5 ;
			// 
			// label6
			// 
			this.label6.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label6.Location = new System.Drawing.Point( 208 ,  24 );
			this.label6.Name =  "label6" ;
			this.label6.Size = new System.Drawing.Size( 72 ,  176 );
			this.label6.TabIndex =  4 ;
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point( 224 ,  40 );
			this.label7.Name =  "label7" ;
			this.label7.Size = new System.Drawing.Size( 56 ,  56 );
			this.label7.TabIndex =  6 ;
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point( 320 ,  40 );
			this.label8.Name =  "label8" ;
			this.label8.Size = new System.Drawing.Size( 40 ,  160 );
			this.label8.TabIndex =  8 ;
			// 
			// label9
			// 
			this.label9.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label9.Location = new System.Drawing.Point( 304 ,  24 );
			this.label9.Name =  "label9" ;
			this.label9.Size = new System.Drawing.Size( 72 ,  176 );
			this.label9.TabIndex =  7 ;
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point( 304 ,  24 );
			this.label10.Name =  "label10" ;
			this.label10.Size = new System.Drawing.Size( 16 ,  16 );
			this.label10.TabIndex =  9 ;
			// 
			// label11
			// 
			this.label11.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label11.Location = new System.Drawing.Point( 288 ,  176 );
			this.label11.Name =  "label11" ;
			this.label11.Size = new System.Drawing.Size( 16 ,  24 );
			this.label11.TabIndex =  10 ;
			// 
			// button1
			// 
			this.button1.Font = new System.Drawing.Font( "Microsoft Sans Serif" ,  27 .75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)( 204 )));
			this.button1.Location = new System.Drawing.Point( 16 ,  216 );
			this.button1.Name =  "button1" ;
			this.button1.Size = new System.Drawing.Size( 368 ,  72 );
			this.button1.TabIndex =  11 ;
			this.button1.Text =  "Смени ник!" ;
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size( 5 ,  13 );
			this.BackColor = System.Drawing.Color.SeaGreen;
			this.ClientSize = new System.Drawing.Size( 400 ,  309 );
			this.Controls.Add(this.button1);
			this.Controls.Add(this.label11);
			this.Controls.Add(this.label10);
			this.Controls.Add(this.label8);
			this.Controls.Add(this.label9);
			this.Controls.Add(this.label7);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.label6);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Name =  "Form1" ;
			this.Text =  "Form1" ;
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}
	}
}
...
Рейтинг: 0 / 0
31.08.2003, 21:11
    #32252206
Ламер2
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
2Осёл\r
Привет!\r
Прими мои поздравления! Скоро мы с тобой ойёёй будем!\r
тока мне бы ещё решить мою проблемку... \r
у меня кстати ещё одна возникла, может кто поможет?\r
Жалко, что vdimas тока поучает всех ходит по форуму. Сто раз упрекнёт в топике, а строчку кода не допросишся.
...
Рейтинг: 0 / 0
01.09.2003, 11:11
    #32252427
Айвенго
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
Молодец! Так держать!
...
Рейтинг: 0 / 0
02.09.2003, 12:51
    #32253593
Осел
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
Ламер2,
vdimas 12 лет на C++ колбасит, так что любое его мнение представляет интерес, а отвечать на все, что ему не интересно, он не обязан
Айвенго,
спасибо
...
Рейтинг: 0 / 0
02.09.2003, 17:44
    #32254001
Осел
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
vdimas,
Я думал, что по кнопке Вы предложите свой вариант, но все равно красиво - белые буквы на спокойном зеленом фоне...
...
Рейтинг: 0 / 0
02.09.2003, 17:46
    #32254004
Осел
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
vdimas,
А если это задача, то подумаю :-(. Заодно с синтаксисом и обработчиками событий разберусь...
...
Рейтинг: 0 / 0
03.09.2003, 20:48
    #32255252
Осел
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
vdimas,
Ваше задание выполнено, учитель :
Код: plaintext
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.
345.
346.
347.
348.
349.
350.
351.
352.
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace WindowsApplication1
{

	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.Button button1;
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.Label label15;
		private System.Windows.Forms.Label label16;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.Label label13;
		private System.Windows.Forms.Label label17;
		private System.Windows.Forms.Label label14;
		private System.Windows.Forms.Label label18;
		private System.Windows.Forms.Label label19;
		private System.Windows.Forms.Label label20;
		private System.Windows.Forms.Label label21;
		private System.Windows.Forms.Label label22;
		private System.Windows.Forms.Label label23;

		public Form1()
		{

			InitializeComponent();

		}

		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}


		private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label9 = new System.Windows.Forms.Label();
			this.label10 = new System.Windows.Forms.Label();
			this.label11 = new System.Windows.Forms.Label();
			this.button1 = new System.Windows.Forms.Button();
			this.label15 = new System.Windows.Forms.Label();
			this.label16 = new System.Windows.Forms.Label();
			this.label12 = new System.Windows.Forms.Label();
			this.label17 = new System.Windows.Forms.Label();
			this.label14 = new System.Windows.Forms.Label();
			this.label18 = new System.Windows.Forms.Label();
			this.label19 = new System.Windows.Forms.Label();
			this.label20 = new System.Windows.Forms.Label();
			this.label21 = new System.Windows.Forms.Label();
			this.label22 = new System.Windows.Forms.Label();
			this.label23 = new System.Windows.Forms.Label();
			this.label13 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			//
			// label1
			// 
			this.label1.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label1.Location = new System.Drawing.Point( 16 ,  24 );
			this.label1.Name =  "label1" ;
			this.label1.Size = new System.Drawing.Size( 88 ,  176 );
			this.label1.TabIndex =  0 ;
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point( 32 ,  48 );
			this.label2.Name =  "label2" ;
			this.label2.Size = new System.Drawing.Size( 56 ,  128 );
			this.label2.TabIndex =  1 ;
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point( 136 ,  48 );
			this.label3.Name =  "label3" ;
			this.label3.Size = new System.Drawing.Size( 56 ,  128 );
			this.label3.TabIndex =  3 ;
			// 
			// label4
			// 
			this.label4.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label4.Location = new System.Drawing.Point( 120 ,  24 );
			this.label4.Name =  "label4" ;
			this.label4.Size = new System.Drawing.Size( 72 ,  176 );
			this.label4.TabIndex =  2 ;
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point( 224 ,  112 );
			this.label5.Name =  "label5" ;
			this.label5.Size = new System.Drawing.Size( 56 ,  64 );
			this.label5.TabIndex =  5 ;
			// 
			// label6
			// 
			this.label6.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label6.Location = new System.Drawing.Point( 208 ,  24 );
			this.label6.Name =  "label6" ;
			this.label6.Size = new System.Drawing.Size( 72 ,  176 );
			this.label6.TabIndex =  4 ;
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point( 224 ,  40 );
			this.label7.Name =  "label7" ;
			this.label7.Size = new System.Drawing.Size( 56 ,  56 );
			this.label7.TabIndex =  6 ;
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point( 320 ,  40 );
			this.label8.Name =  "label8" ;
			this.label8.Size = new System.Drawing.Size( 40 ,  160 );
			this.label8.TabIndex =  8 ;
			// 
			// label9
			// 
			this.label9.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label9.Location = new System.Drawing.Point( 304 ,  24 );
			this.label9.Name =  "label9" ;
			this.label9.Size = new System.Drawing.Size( 72 ,  176 );
			this.label9.TabIndex =  7 ;
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point( 304 ,  24 );
			this.label10.Name =  "label10" ;
			this.label10.Size = new System.Drawing.Size( 16 ,  16 );
			this.label10.TabIndex =  9 ;
			// 
			// label11
			// 
			this.label11.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label11.Location = new System.Drawing.Point( 288 ,  176 );
			this.label11.Name =  "label11" ;
			this.label11.Size = new System.Drawing.Size( 16 ,  24 );
			this.label11.TabIndex =  10 ;
			// 
			// button1
			// 
			this.button1.Font = new System.Drawing.Font( "Microsoft Sans Serif" ,  27 .75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)( 204 )));
			this.button1.Location = new System.Drawing.Point( 16 ,  216 );
			this.button1.Name =  "button1" ;
			this.button1.Size = new System.Drawing.Size( 368 ,  72 );
			this.button1.TabIndex =  11 ;
			this.button1.Text =  "Смени ник!" ;
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size( 5 ,  13 );
			this.BackColor = System.Drawing.Color.SeaGreen;
			this.ClientSize = new System.Drawing.Size( 400 ,  309 );
			this.Controls.Add(this.button1);
			this.Controls.Add(this.label11);
			this.Controls.Add(this.label10);
			this.Controls.Add(this.label8);
			this.Controls.Add(this.label9);
			this.Controls.Add(this.label7);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.label6);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Name =  "Form1" ;
			this.Text =  "Form1" ;
			this.ResumeLayout(false);
		}



		[STAThread]
		static void Main()
		{
			Application.Run(new Form1());
		}
		
		private void button1_Click(object sender, System.EventArgs e)
		{
		  //Перерисовка ника
			this.label1.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label1.Location = new System.Drawing.Point( 16 ,  104 );
			this.label1.Name =  "label1" ;
			this.label1.Size = new System.Drawing.Size( 88 ,  96 );
			this.label1.TabIndex =  0 ;
			this.label2.Location = new System.Drawing.Point( 32 ,  128 );
			this.label2.Name =  "label2" ;
			this.label2.Size = new System.Drawing.Size( 56 ,  48 );
			this.label2.TabIndex =  1 ;
			this.label3.Location = new System.Drawing.Point( 136 ,  128 );
			this.label3.Name =  "label3" ;
			this.label3.Size = new System.Drawing.Size( 56 ,  48 );
			this.label3.TabIndex =  3 ;
			this.label4.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label4.Location = new System.Drawing.Point( 120 ,  104 );
			this.label4.Name =  "label4" ;
			this.label4.Size = new System.Drawing.Size( 72 ,  96 );
			this.label4.TabIndex =  2 ;
			this.label5.Location = new System.Drawing.Point( 224 ,  160 );
			this.label5.Name =  "label5" ;
			this.label5.Size = new System.Drawing.Size( 56 ,  16 );
			this.label5.TabIndex =  5 ;
			this.label6.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label6.Location = new System.Drawing.Point( 208 ,  104 );
			this.label6.Name =  "label6" ;
			this.label6.Size = new System.Drawing.Size( 72 ,  96 );
			this.label6.TabIndex =  4 ;
			this.label7.Location = new System.Drawing.Point( 224 ,  128 );
			this.label7.Name =  "label7" ;
			this.label7.Size = new System.Drawing.Size( 56 ,  16 );
			this.label7.TabIndex =  6 ;
			this.label8.Location = new System.Drawing.Point( 320 ,  128 );
			this.label8.Name =  "label8" ;
			this.label8.Size = new System.Drawing.Size( 40 ,  72 );
			this.label8.TabIndex =  8 ;
			this.label9.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label9.Location = new System.Drawing.Point( 304 ,  104 );
			this.label9.Name =  "label9" ;
			this.label9.Size = new System.Drawing.Size( 72 ,  96 );
			this.label9.TabIndex =  7 ;
			this.label10.Location = new System.Drawing.Point( 304 ,  104 );
			this.label10.Name =  "label10" ;
			this.label10.Size = new System.Drawing.Size( 16 ,  16 );
			this.label10.TabIndex =  9 ;
			this.label11.BackColor = System.Drawing.SystemColors.ControlLightLight;
			this.label11.Location = new System.Drawing.Point( 288 ,  176 );
			this.label11.Name =  "label11" ;
			this.label11.Size = new System.Drawing.Size( 16 ,  24 );
			this.label11.TabIndex =  10 ;
			this.label15.Location = new System.Drawing.Point( 160 ,  16 );
			this.label15.Name =  "label15" ;
			this.label15.Size = new System.Drawing.Size( 56 ,  16 );
			this.label15.TabIndex =  15 ;
			this.label16.Location = new System.Drawing.Point( 160 ,  56 );
			this.label16.Name =  "label16" ;
			this.label16.Size = new System.Drawing.Size( 56 ,  16 );
			this.label16.TabIndex =  16 ;
			this.label12.BackColor = System.Drawing.Color.White;
			this.label12.Location = new System.Drawing.Point( 16 ,  0 );
			this.label12.Name =  "label12" ;
			this.label12.Size = new System.Drawing.Size( 16 ,  88 );
			this.label12.TabIndex =  17 ;
			this.label17.BackColor = System.Drawing.Color.White;
			this.label17.Location = new System.Drawing.Point( 32 ,  40 );
			this.label17.Name =  "label17" ;
			this.label17.Size = new System.Drawing.Size( 64 ,  16 );
			this.label17.TabIndex =  19 ;
			this.label14.BackColor = System.Drawing.Color.White;
			this.label14.Location = new System.Drawing.Point( 120 ,  0 );
			this.label14.Name =  "label14" ;
			this.label14.Size = new System.Drawing.Size( 16 ,  88 );
			this.label14.TabIndex =  20 ;
			this.label18.BackColor = System.Drawing.Color.White;
			this.label18.Location = new System.Drawing.Point( 176 ,  0 );
			this.label18.Name =  "label18" ;
			this.label18.Size = new System.Drawing.Size( 16 ,  88 );
			this.label18.TabIndex =  21 ;
			this.label19.BackColor = System.Drawing.Color.White;
			this.label19.Location = new System.Drawing.Point( 120 ,  72 );
			this.label19.Name =  "label19" ;
			this.label19.Size = new System.Drawing.Size( 64 ,  16 );
			this.label19.TabIndex =  22 ;
			this.label20.BackColor = System.Drawing.Color.White;
			this.label20.Location = new System.Drawing.Point( 288 ,  0 );
			this.label20.Name =  "label20" ;
			this.label20.Size = new System.Drawing.Size( 16 ,  88 );
			this.label20.TabIndex =  23 ;
			this.label21.BackColor = System.Drawing.Color.White;
			this.label21.Location = new System.Drawing.Point( 208 ,  0 );
			this.label21.Name =  "label21" ;
			this.label21.Size = new System.Drawing.Size( 16 ,  88 );
			this.label21.TabIndex =  24 ;
			this.label22.BackColor = System.Drawing.Color.White;
			this.label22.Location = new System.Drawing.Point( 288 ,  72 );
			this.label22.Name =  "label22" ;
			this.label22.Size = new System.Drawing.Size( 88 ,  16 );
			this.label22.TabIndex =  25 ;
			this.label23.BackColor = System.Drawing.Color.White;
			this.label23.Location = new System.Drawing.Point( 208 ,  72 );
			this.label23.Name =  "label23" ;
			this.label23.Size = new System.Drawing.Size( 72 ,  16 );
			this.label23.TabIndex =  26 ;
			this.label13.BackColor = System.Drawing.Color.White;
			this.label13.Location = new System.Drawing.Point( 32 ,  0 );
			this.label13.Name =  "label13" ;
			this.label13.Size = new System.Drawing.Size( 64 ,  16 );
			this.label13.TabIndex =  27 ;
            this.AutoScaleBaseSize = new System.Drawing.Size( 5 ,  13 );
			this.BackColor = System.Drawing.Color.SeaGreen;
			this.ClientSize = new System.Drawing.Size( 400 ,  309 );
			this.Controls.Add(this.label13);
			this.Controls.Add(this.label23);
			this.Controls.Add(this.label22);
			this.Controls.Add(this.label21);
			this.Controls.Add(this.label20);
			this.Controls.Add(this.label19);
			this.Controls.Add(this.label18);
			this.Controls.Add(this.label14);
			this.Controls.Add(this.label17);
			this.Controls.Add(this.label12);
			this.Controls.Add(this.label16);
			this.Controls.Add(this.label15);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.label11);
			this.Controls.Add(this.label10);
			this.Controls.Add(this.label8);
			this.Controls.Add(this.label9);
			this.Controls.Add(this.label7);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.label6);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Name =  "Form1" ;
			this.Text =  "Form1" ;
			this.ResumeLayout(false);
		}
	}
}

...
Рейтинг: 0 / 0
03.09.2003, 22:52
    #32255274
vdimas
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
ok. :)

Теперь мы точно знаем как энтот C# "рисует" формы и контролы.

Задачка поинтереснее:
В XML файле лежит описание формы.
Нарисовать из описания.

(Зело полезно при динамическом конструировании дата-форм).

Формат - не принципиален.

Типа:
<form name="Form1" width=100 height="50">
<controls>
<button name="Button1" caption="Hello Word!" left="10" right="10" width="80" height="20"/>
</controls>
</form>
...
Рейтинг: 0 / 0
03.09.2003, 22:54
    #32255275
vdimas
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
следующая будет еще интереснее, но такая же тривиальная...
:))
...
Рейтинг: 0 / 0
05.09.2003, 11:41
    #32256750
Осел
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Ура! HelloWorld заработало!
vdimas,
Будет время, - подумаю.
...
Рейтинг: 0 / 0
Форумы / WinForms, .Net Framework [игнор отключен] [закрыт для гостей] / Ура! HelloWorld заработало! / 14 сообщений из 14, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]