Hi everyone,
I created my own class:
public partial class RadButton
{
public CustomButton()
{
InitializeComponent();
}
}
after this I woud like to us it in RadForm1:
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
public c()
{
InitializeComponent();
CustomButton button = new CustomButton();
button.Text = "&customButton";
button.Click += Button_Click;
Controls.Add(button);
}
private void Button_Click(object sender, EventArgs e)
{
RadMessageBox.Show("Test");
}
private void button1_Click(object sender, EventArgs e)
{
RadMessageBox.Show("It is works");
}
}
why when I'm using my custom class I cannot use shortcuts:
"c" but only alt + "c" and it works. When I'm using standard buttons it works.
How can I fix it?
Best regards,
Pawel