Aqsa Anum wrote:Hi Every One, I made button in C# and I want to align it in center, please help me how can I do it ? var frm = new System.Windows.Forms.Form(); frm.Name = "Hello"; /* var lb = new Button(); lb.Text = "Contact No"; lb.Left = 2; lb.Click += delegate { switch (lb.Text) { case "Contact No": lb.Text = "0345678"; break; case "0345678": lb.Text = "042000"; break; } }; frm.cortrols.Add(ld);
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6 How To Ask Questions How To Answer Questions
Rob Spoor wrote:Would you mind sharing how you solved it? That way, others who have the same issue can benefit as well.