Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding empty label in Windows form

Tags:

winforms

I am new to Windows Form application and trying to build a small application.

I had dragged and dropped a label on the main form.

Then I deleted its text property to empty string basically hiding the label.

Now I would like to move this label to some other location on the form but unable to do so because I cannot find it.

I checked the designer file and its there.

But I cannot find it in the form so that I can grab it and move to a different location.

Please help.

Thanks

like image 327
blue piranha Avatar asked Feb 06 '16 14:02

blue piranha


People also ask

What is Label in Windows form?

This feature provides keyboard navigation for a form. In addition to displaying text, the Label control can also display an image using the Image property, or a combination of the ImageIndex and ImageList properties. Note. A Label can be made transparent by setting its BackColor property to Color.

How do I show text in Windows Forms?

Step 1: Create a windows form. Step 2: Drag the TextBox control from the ToolBox and Drop it on the windows form. You can place TextBox anywhere on the windows form according to your need. Step 3: After drag and drop you will go to the properties of the TextBox control to set the Text property of the TextBox.

What is label in C#?

In Windows Forms, Label control is used to display text on the form and it does not take part in user input or in mouse or keyboard events. The Label is a class and it is defined under System.Windows.Forms namespace.


2 Answers

Use Document Outline. Look at the following images.

like image 82
Usman Farooq Avatar answered Oct 31 '22 16:10

Usman Farooq


That happens to me several times, and a few weeks ago I found a way to get the empty label like this:

On the tab "Properties" just click on the arrow to show all controls and click on the label you want, this will automatically select the label on your form..

enter image description here

like image 36
Mikev Avatar answered Oct 31 '22 14:10

Mikev