Adding another badge to Sales Form
I am trying to add a Jiwa badge to the sales form, which the code below will do but with one problem the bage is appearing in a rectangle with a black background, how can I resolve this?
I Have tried image trnapsarent color but that doesn't work.
I Have tried image trnapsarent color but that doesn't work.
- Code: Select all
Infragistics.Win.Appearance appearance = new Infragistics.Win.Appearance();
appearance.BackColor = Color.Red;
appearance.ForeColor = Color.White;
appearance.TextHAlignAsString = "Center";
appearance.TextVAlignAsString = "Middle";
JiwaBadge lbldStatus = new JiwaBadge();
lbldStatus.Appearance = appearance;
lbldStatus.ArcWidth = 20;
lbldStatus.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
lbldStatus.Name = "lbldStatus";
lbldStatus.Size = new Size(62, 17);
lbldStatus.Text = "Status";
this.sForm.TableLayoutPanel1.Controls.Add(lbldStatus, 3, 6);
lbldStatus.Visible = true;
// lbldStatus.ImageTransparentColor = Color.Transparent;