Witam,
stworzyłem User Control. Chciałbym w dolnym prawym rogu kontrolki dodać inny element np. Button lub TextBox. Z góry dzięki za pomoc.
using System;
using System.Drawing;
using System.Windows.Forms;
namespace Przyciski
{
public partial class BramkaButton : Button
{
public static Color color;
private string bramka_name;
private int value = 0;
public BramkaButton()
{
//InitializeComponent();
SetNormalValues();
}
private void SetNormalValues()
{
this.Font = new Font("Verdana", 8F, FontStyle.Bold);
this.BackColor = Color.Gray;
this.ForeColor = Color.White;
this.Margin = new Padding(4, 1, 4, 1);
this.Padding = new Padding(4);
this.MinimumSize = new Size(150, 35);
this.Cursor = Cursors.Arrow;
this.Draggable(true);
}
protected override void OnPaint(PaintEventArgs pe)
{
base.OnPaint(pe);
}
}
}
A tak wygląda User Control