Sushil Kumar
Is it possible to set the height and width of a label control in WinForms application?
By Sushil Kumar in Windows Forms on Oct 15 2012
  • Rajanikant Hawaldar
    Oct, 2022 13

    // Creating and setting the label
    Label mylab = new Label();
    mylab.Text = “GeeksforGeeks”;
    mylab.Location = new Point(222, 90);
    mylab.Size = new Size(120, 25);
    mylab.BorderStyle = BorderStyle.FixedSingle;

    // Adding this control to the form
    this.Controls.Add(mylab);

    • 0
  • samar jeet
    Apr, 2016 22

    Yes,it ispossible to set the height and width property ,,first you need to change the AUTOSIZE =true and then define the height & width in label property

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS