Форум программистов, компьютерный форум, киберфорум
C# Windows Forms
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.69/112: Рейтинг темы: голосов - 112, средняя оценка - 4.69
90 / 125 / 28
Регистрация: 17.10.2010
Сообщений: 1,321

Создание собственного элемента управления

18.02.2011, 16:02. Показов 22229. Ответов 12
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Всем доброго время суток. Столкнулся с такой проблемой нужно создать пользовательский элемент MyCustomControl содержащий ползунок (trackBar), числовое поле (numericUpDown), метки (label) и рисунок. Сам пользовательский элемент я создал и все туда добавил. Вопрос как объединить все это, чтобы стал единый целый пользовательский элемент, который можно добавить на форму и меня его свойства, а не каждого из перечисленных выше элементов по отдельности. Может где то надо галочку добавить, или какие то свойства поменять я все просмотрел, но пока к сожалению ничего не нашел. Подскажите пожалуйста. Заранее огромное спасибо.
0
cpp_developer
Эксперт
20123 / 5690 / 1417
Регистрация: 09.04.2010
Сообщений: 22,546
Блог
18.02.2011, 16:02
Ответы с готовыми решениями:

Управление свойствами собственного элемента управления
ребят собственно собрал простенький контролл тупо 2 numericUpDown вопрос в том как дать им значения то есть нужно чтобы в параметре...

Создание элемента управления круглой формы
Вот если требуется нарисовать квадрат, можно взять Panel и закрасить. Можно как-нибудь любой элемент управления превратить в круг? Или в...

В чем отличия пользовательского элемента управления от настраиваемого элемента управления?
В чем отличия пользовательского элемента управления от настраиваемого элемента управления в контексте Windows Forms?

12
181 / 107 / 13
Регистрация: 22.03.2010
Сообщений: 456
18.02.2011, 17:09
Цитата Сообщение от isaak Посмотреть сообщение
Всем доброго время суток. Столкнулся с такой проблемой нужно создать пользовательский элемент MyCustomControl содержащий ползунок (trackBar), числовое поле (numericUpDown), метки (label) и рисунок. Сам пользовательский элемент я создал и все туда добавил. Вопрос как объединить все это, чтобы стал единый целый пользовательский элемент, который можно добавить на форму и меня его свойства, а не каждого из перечисленных выше элементов по отдельности. Может где то надо галочку добавить, или какие то свойства поменять я все просмотрел, но пока к сожалению ничего не нашел. Подскажите пожалуйста. Заранее огромное спасибо.
Если все сделал, твой элемент должен появиться в списке панели элементов.
Оттуда его перетаскиваешь как и другие элементы.
Ну либо вручную пишешь в коде.
0
 Аватар для nio
6050 / 3460 / 336
Регистрация: 14.06.2009
Сообщений: 8,136
Записей в блоге: 2
18.02.2011, 18:29
isaak, ты через UserControl делал? или просто элементов на панельку натаскал?
0
90 / 125 / 28
Регистрация: 17.10.2010
Сообщений: 1,321
18.02.2011, 18:55  [ТС]
С начала я добавил элемент UserControl на него добавил (trackBar), числовое поле (numericUpDown), метки (label), он должен появиться в списке панели элементов, от куда его можно добавить на форму, но он почему то не появился в списке панели элементов. Вот что должно быть (рис. MyCustomControl и рис. Demo a custom user control)
Миниатюры
Создание собственного элемента управления   Создание собственного элемента управления  
0
 Аватар для nio
6050 / 3460 / 336
Регистрация: 14.06.2009
Сообщений: 8,136
Записей в блоге: 2
18.02.2011, 21:20
isaak, так ты же смотришь в Server Explorer, а твой контрол появится в Toolbox после 1-й компиляции
1
181 / 107 / 13
Регистрация: 22.03.2010
Сообщений: 456
18.02.2011, 21:25
Цитата Сообщение от isaak Посмотреть сообщение
С начала я добавил элемент UserControl на него добавил (trackBar), числовое поле (numericUpDown), метки (label), он должен появиться в списке панели элементов, от куда его можно добавить на форму, но он почему то не появился в списке панели элементов. Вот что должно быть (рис. MyCustomControl и рис. Demo a custom user control)
После того как собрал свой UserControl надо перестроить решение, тогда твой UserControl появится на панели элементов.
1
90 / 125 / 28
Регистрация: 17.10.2010
Сообщений: 1,321
18.02.2011, 21:43  [ТС]
После того как собрал свой UserControl перестроил решение, UserControl появился на панели элементов. Добавил UserControl на форму. У меня три UserControl, соотвествующие трем цветам: red, blue, green зашел в свойство, чтобы выставить свойство ColorPart соотвественно: R,G,B, а там его нет и надо заменить значение метки Label на MyCustomControl его нет что еще нужно сделать. Подскажите пожалуйста. Помогите пожалуйста целый день сижу. Заранее огромное спасибо.
0
 Аватар для nio
6050 / 3460 / 336
Регистрация: 14.06.2009
Сообщений: 8,136
Записей в блоге: 2
18.02.2011, 21:54
isaak, напиши свойства для своего контрола, которые будут менять нужные параметры
0
90 / 125 / 28
Регистрация: 17.10.2010
Сообщений: 1,321
18.02.2011, 23:08  [ТС]
Вот код, для контрола:
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
 
namespace CustomControl
{
    public enum RGBSelection
    {
        R,G,B
    };
 
    public partial class MyCustomControl : UserControl
    {
        //the controls
        private System.ComponentModel.IContainer components = null;
        private System.Windows.Forms.Label labelLabel;
        private System.Windows.Forms.NumericUpDown numericUpDownValue;
        private System.Windows.Forms.TrackBar trackBarValue;
 
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
        
        private void InitializeComponent()
        {
            this.labelLabel = new System.Windows.Forms.Label();
            this.numericUpDownValue = new System.Windows.Forms.NumericUpDown();
            this.trackBarValue = new System.Windows.Forms.TrackBar();
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDownValue)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.trackBarValue)).BeginInit();
            this.SuspendLayout();
            // labelLabel
            this.labelLabel.AutoSize = true;
            this.labelLabel.Location = new System.Drawing.Point(4, 4);
            this.labelLabel.Name = "labelLabel";
            this.labelLabel.Size = new System.Drawing.Size(71, 13);
            this.labelLabel.TabIndex = 0;
            this.labelLabel.Text = "Dummy Label";
            // numericUpDownValue
            this.numericUpDownValue.Location = new System.Drawing.Point(175, 20);
            this.numericUpDownValue.Name = "numericUpDownValue";
            this.numericUpDownValue.Size = new System.Drawing.Size(41, 20);
            this.numericUpDownValue.TabIndex = 1;
            // trackBarValue
            this.trackBarValue.Location = new System.Drawing.Point(7, 20);
            this.trackBarValue.Name = "trackBarValue";
            this.trackBarValue.Size = new System.Drawing.Size(162, 45);
            this.trackBarValue.TabIndex = 2;
            // MyCustomControl
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.trackBarValue);
            this.Controls.Add(this.numericUpDownValue);
            this.Controls.Add(this.labelLabel);
            this.Name = "MyCustomControl";
            this.Size = new System.Drawing.Size(216, 65);
            ((System.ComponentModel.ISupportInitialize)(this.numericUpDownValue)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.trackBarValue)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
 
        public RGBSelection ColorPart {get;set;}
            
        public string Label
        {
            get
            {
                return labelLabel.Text;
            }
            set
            {
                labelLabel.Text = value;
            }
        }
 
        public int Value
        {
            get
            {
                return (int)numericUpDownValue.Value;
            }
            set
            {
                numericUpDownValue.Value = (int)value;
            }
        }
 
        public event EventHandler<EventArgs> ValueChanged;
        
        public MyCustomControl()
        {
            InitializeComponent();
 
            numericUpDownValue.Minimum = 0;
            numericUpDownValue.Maximum = 255;
            trackBarValue.Minimum = 0;
            trackBarValue.Maximum = 255;
 
            trackBarValue.TickFrequency = 10;
 
            numericUpDownValue.ValueChanged += numericUpDownValue_ValueChanged;
            trackBarValue.ValueChanged += trackBarValue_ValueChanged;
        }
 
        void trackBarValue_ValueChanged(object sender, EventArgs e)
        {
            if (sender != this)
            {
                numericUpDownValue.Value = trackBarValue.Value;
 
                OnValueChanged();
            }
        }
 
        void numericUpDownValue_ValueChanged(object sender, EventArgs e)
        {
            if (sender != this)
            {
                trackBarValue.Value = (int)numericUpDownValue.Value;
                
                OnValueChanged();
            }
        }
 
        protected void OnValueChanged()
        {
            Refresh();
            if (ValueChanged != null)
            {
                ValueChanged(this, EventArgs.Empty);
            }
        }
 
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
 
            Rectangle rect = new Rectangle(numericUpDownValue.Left, 5, numericUpDownValue.Width, numericUpDownValue.Bounds.Top - 10);
            
            int r = 0, g = 0, b = 0;
            switch (ColorPart)
            {
                case RGBSelection.R:
                    r = Value;
                    break;
                case RGBSelection.G:
                    g = Value;
                    break;
                case RGBSelection.B:
                    b = Value;
                    break;
            }
            Color c = Color.FromArgb(r,g,b);
            using (Brush brush = new SolidBrush(c))
            {
                e.Graphics.FillEllipse(brush, rect);
            }
        }
    }
}
Когда я его написал компилятор выдал ошибки:
Error 1 Ambiguity between 'CustomControl.MyCustomControl.component s' and 'CustomControl.MyCustomControl.component s' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 24 31 CustomControl
Error 2 Ambiguity between 'CustomControl.MyCustomControl.labelLabe l' and 'CustomControl.MyCustomControl.labelLabe l' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 33 18 CustomControl
Error 3 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 34 18 CustomControl
Error 4 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 35 18 CustomControl
Error 5 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 36 62 CustomControl
Error 6 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 37 62 CustomControl
Error 7 Ambiguity between 'CustomControl.MyCustomControl.labelLabe l' and 'CustomControl.MyCustomControl.labelLabe l' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 40 18 CustomControl
Error 8 Ambiguity between 'CustomControl.MyCustomControl.labelLabe l' and 'CustomControl.MyCustomControl.labelLabe l' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 41 18 CustomControl
Error 9 Ambiguity between 'CustomControl.MyCustomControl.labelLabe l' and 'CustomControl.MyCustomControl.labelLabe l' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 42 18 CustomControl
Error 10 Ambiguity between 'CustomControl.MyCustomControl.labelLabe l' and 'CustomControl.MyCustomControl.labelLabe l' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 43 18 CustomControl
Error 11 Ambiguity between 'CustomControl.MyCustomControl.labelLabe l' and 'CustomControl.MyCustomControl.labelLabe l' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 44 18 CustomControl
Error 12 Ambiguity between 'CustomControl.MyCustomControl.labelLabe l' and 'CustomControl.MyCustomControl.labelLabe l' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 45 18 CustomControl
Error 13 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 47 18 CustomControl
Error 14 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 48 18 CustomControl
Error 15 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 49 18 CustomControl
Error 16 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 50 18 CustomControl
Error 17 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 52 18 CustomControl
Error 18 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 53 18 CustomControl
Error 19 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 54 18 CustomControl
Error 20 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 55 18 CustomControl
Error 21 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 59 36 CustomControl
Error 22 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 60 36 CustomControl
Error 23 Ambiguity between 'CustomControl.MyCustomControl.labelLabe l' and 'CustomControl.MyCustomControl.labelLabe l' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 61 36 CustomControl
Error 24 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 64 62 CustomControl
Error 25 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 65 62 CustomControl
Error 26 Ambiguity between 'CustomControl.MyCustomControl.labelLabe l' and 'CustomControl.MyCustomControl.labelLabe l' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 76 24 CustomControl
Error 27 Ambiguity between 'CustomControl.MyCustomControl.labelLabe l' and 'CustomControl.MyCustomControl.labelLabe l' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 80 17 CustomControl
Error 28 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 88 29 CustomControl
Error 29 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 92 17 CustomControl
Error 30 The call is ambiguous between the following methods or properties: 'CustomControl.MyCustomControl.Initializ eComponent()' and 'CustomControl.MyCustomControl.Initializ eComponent()' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 100 13 CustomControl
Error 31 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 102 13 CustomControl
Error 32 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 104 13 CustomControl
Error 33 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 117 17 CustomControl
Error 34 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 117 44 CustomControl
Error 35 Ambiguity between 'CustomControl.MyCustomControl.trackBarV alue' and 'CustomControl.MyCustomControl.trackBarV alue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 127 17 CustomControl
Error 36 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 127 44 CustomControl
Error 37 Ambiguity between 'CustomControl.MyCustomControl.numericUp DownValue' and 'CustomControl.MyCustomControl.numericUp DownValue' C:\Users\Администратор\Documents\Visual Studio 2010\Projects\C#\CustomControl\CustomCon trol\MyCustomControl.cs 146 44 CustomControl

Вот код для формы на которой находятся ползунки для выбора цвета:
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
 
namespace CustomControl
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
 
        private void OnValuesChanged(object sender, EventArgs e)
        {
            int r = redControl.Value;
            int g = greenControl.Value;
            int b = blueControl.Value;
 
            colorControl.BackColor = Color.FromArgb(r, g, b);
        }
    }
}
Какие еще нужны свойства для контрола, помогите целый день сижу ни как с мертвый точки не сдвинусь.
0
 Аватар для nio
6050 / 3460 / 336
Регистрация: 14.06.2009
Сообщений: 8,136
Записей в блоге: 2
19.02.2011, 00:15
Цитата Сообщение от isaak Посмотреть сообщение
Какие еще нужны свойства для контрола
Ты читаешь текст ошибок? там же написано "двусмысленность между". и указано между чем. Т.е. перекрытие имен
0
90 / 125 / 28
Регистрация: 17.10.2010
Сообщений: 1,321
19.02.2011, 00:56  [ТС]
Ну как тогда свойства контрола определить я уже сутки бьюсь, оба кода правильных, че тогда делать. Помогите кто-нибудь
0
 Аватар для nio
6050 / 3460 / 336
Регистрация: 14.06.2009
Сообщений: 8,136
Записей в блоге: 2
19.02.2011, 10:34
Цитата Сообщение от isaak Посмотреть сообщение
Ну как тогда свойства контрола определить я уже сутки бьюсь, оба кода правильных, че тогда делать
попробуй свойствам имена дать уникальнные
0
90 / 125 / 28
Регистрация: 17.10.2010
Сообщений: 1,321
19.02.2011, 12:51  [ТС]
Спасибо все работает тему можно закрыть
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
raxper
Эксперт
30234 / 6612 / 1498
Регистрация: 28.12.2010
Сообщений: 21,154
Блог
19.02.2011, 12:51
Помогаю со студенческими работами здесь

Создание элемента управления,который скрывает/раскрывает некоторую панель
В общем такая проблема. Имеется форма, на которой есть два datagrid, и есть panel, в которой есть некоторые элементы. Требуется создать...

Создание пользовательского элемента управления: заменить стандартный DropDown у ComboBox
делаю проект, позарез нужен комбобокс с чекбоксами. Куда копать? (я по этой теме не понимаю вообще ничего) vs 2013 Добавлено через 2...

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

Как обратиться к методу собственного элемента через Controls
Часто использую способ обращения к различным элементам при помощи такой конструкции: public void clear () { foreach (Control c in...

2D графика(создание собственного движка)
собственно отбросим практические вопросы хотелось бы затронуть немного теории по поводу созданию своего игрового 2D движка вопрос...


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

Или воспользуйтесь поиском по форуму:
13
Ответ Создать тему
Новые блоги и статьи
SDL3 для Web (WebAssembly): Обработчик клика мыши в браузере ПК и касания экрана в браузере на мобильном устройстве
8Observer8 02.02.2026
Содержание блога Для начала пошагово создадим рабочий пример для подготовки к экспериментам в браузере ПК и в браузере мобильного устройства. Потом напишем обработчик клика мыши и обработчик. . .
Философия технологии
iceja 01.02.2026
На мой взгляд у человека в технических проектах остается роль генерального директора. Все остальное нейронки делают уже лучше человека. Они не могут нести предпринимательские риски, не могут. . .
SDL3 для Web (WebAssembly): Вывод текста со шрифтом TTF с помощью SDL3_ttf
8Observer8 01.02.2026
Содержание блога В этой пошаговой инструкции создадим с нуля веб-приложение, которое выводит текст в окне браузера. Запустим на Android на локальном сервере. Загрузим Release на бесплатный. . .
SDL3 для Web (WebAssembly): Сборка C/C++ проекта из консоли
8Observer8 30.01.2026
Содержание блога Если вы откроете примеры для начинающих на официальном репозитории SDL3 в папке: examples, то вы увидите, что все примеры используют следующие четыре обязательные функции, а. . .
SDL3 для Web (WebAssembly): Установка Emscripten SDK (emsdk) и CMake для сборки C и C++ приложений в Wasm
8Observer8 30.01.2026
Содержание блога Для того чтобы скачать Emscripten SDK (emsdk) необходимо сначало скачать и уставить Git: Install for Windows. Следуйте стандартной процедуре установки Git через установщик. . . .
SDL3 для Android: Подключение Box2D v3, физика и отрисовка коллайдеров
8Observer8 29.01.2026
Содержание блога Box2D - это библиотека для 2D физики для анимаций и игр. С её помощью можно определять были ли коллизии между конкретными объектами. Версия v3 была полностью переписана на Си, в. . .
Инструменты COM: Сохранение данный из VARIANT в файл и загрузка из файла в VARIANT
bedvit 28.01.2026
Сохранение базовых типов COM и массивов (одномерных или двухмерных) любой вложенности (деревья) в файл, с возможностью выбора алгоритмов сжатия и шифрования. Часть библиотеки BedvitCOM Использованы. . .
SDL3 для Android: Загрузка PNG с альфа-каналом с помощью SDL_LoadPNG (без SDL3_image)
8Observer8 28.01.2026
Содержание блога SDL3 имеет собственные средства для загрузки и отображения PNG-файлов с альфа-каналом и базовой работы с ними. В этой инструкции используется функция SDL_LoadPNG(), которая. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru