> For the complete documentation index, see [llms.txt](https://docs.dot-net.uz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dot-net.uz/c-.net/desktop/winform-windows-form/3-dars.-formaga-komponentalar-joylashtirish.md).

# 3-dars. Formaga komponentalar joylashtirish

Sizlar bilan yangi forma yaratishni ko\`rib chiqdik, endi bu formaga komponentalr qo\`shish va ularni sozlashlashni ko\`rib chiqamiz.

Dastlab yangi forma yaratib olamiz va unga quydagi komponentlarni qo\`shamiz (surib olib o\`tib) :

* Label
* Button
* Listbox
* Textbox

Tashlab olgan komponentlarimizni ikki xil usulda joylashtirishimiz mumkin:

1. **Properties** bo\`limidan joylashuv(*location*) va o\`lcham(*size*)ni o\`zgartirish orqali
2. **Form Designer** qismidan komponentni surish yoki hajmini o\`zgartisih mumkin&#x20;

**Properties**  bo\`limi orqali sozlashni ko\`rib o\`tamiz:

| **Komponent** | &#xD;**Sozlanmasi** | Qiymati          |
| ------------- | ------------------- | ---------------- |
| **Form**      | Text                | *Ismlar*         |
|               | Size                | 268, 180         |
| **Label**     | Location            | 12, 9            |
|               | Text                | *Ismlar*         |
| **Listbox**   | Name                | *lstNames*       |
|               | Location            | 12, 27           |
|               | Size                | 120, 94          |
| **Textbox**   | Name                | txtName          |
|               | Location            | 138, 26          |
|               | Size                | 100, 23          |
| **Button**    | Name                | btnAdd           |
|               | Location            | 138, 55          |
|               | Size                | 100, 23          |
|               | Text                | *Ismni qo'shish* |

![](/files/-MZzywf0wGBVpfoD2fjS)
