I have this code to create my own class but when I dropped it in my form after added it in my Tools, the caption defined and the image is not appearing. The caption appearing is still bbButtonOk1. Anything missing here?
public class bbButtonOk : System.Windows.Forms.Button {
public bbButtonOk() {
this.ForeColor = Color.Black;
this.Text = "&MyCaption";
this.Image = "images\newreq.bmp";
}
}