--- title: Remove Items from DomainUpDown Controls ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" - "cpp" helpviewer_keywords: - "DomainUpDown control [Windows Forms], removing items from" - "spin button control [Windows Forms], removing items" ms.assetid: e70f5cbc-b497-41a9-975a-344c00e56ed2 --- # How to: Remove Items from Windows Forms DomainUpDown Controls You can remove items from the Windows Forms control by calling the or method of the class. The method removes a specific item, while the method removes an item by its position. ### To remove an item - Use the method of the class to remove an item by name. ```vb DomainUpDown1.Items.Remove("noodles") ``` ```csharp domainUpDown1.Items.Remove("noodles"); ``` ```cpp domainUpDown1->Items->Remove("noodles"); ``` -or- - Use the method to remove an item by its position. ```vb ' Removes the first item in the list. DomainUpDown1.Items.RemoveAt(0) ``` ```csharp // Removes the first item in the list. domainUpDown1.Items.RemoveAt(0); ``` ```cpp // Removes the first item in the list. domainUpDown1->Items->RemoveAt(0); ``` ## See also - - - - [DomainUpDown Control](domainupdown-control-windows-forms.md) - [DomainUpDown Control Overview](domainupdown-control-overview-windows-forms.md)