* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
2.3 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | |||||
|---|---|---|---|---|---|---|---|---|---|
| Remove Items from DomainUpDown Controls | 03/30/2017 |
|
|
e70f5cbc-b497-41a9-975a-344c00e56ed2 |
How to: Remove Items from Windows Forms DomainUpDown Controls
You can remove items from the Windows Forms xref:System.Windows.Forms.DomainUpDown control by calling the xref:System.Windows.Forms.DomainUpDown.DomainUpDownItemCollection.Remove%2A or xref:System.Windows.Forms.DomainUpDown.DomainUpDownItemCollection.RemoveAt%2A method of the xref:System.Windows.Forms.DomainUpDown.DomainUpDownItemCollection class. The xref:System.Windows.Forms.DomainUpDown.DomainUpDownItemCollection.Remove%2A method removes a specific item, while the xref:System.Windows.Forms.DomainUpDown.DomainUpDownItemCollection.RemoveAt%2A method removes an item by its position.
To remove an item
-
Use the xref:System.Windows.Forms.DomainUpDown.DomainUpDownItemCollection.Remove%2A method of the xref:System.Windows.Forms.DomainUpDown.DomainUpDownItemCollection class to remove an item by name.
DomainUpDown1.Items.Remove("noodles")domainUpDown1.Items.Remove("noodles");domainUpDown1->Items->Remove("noodles");-or-
-
Use the xref:System.Windows.Forms.DomainUpDown.DomainUpDownItemCollection.RemoveAt%2A method to remove an item by its position.
' Removes the first item in the list. DomainUpDown1.Items.RemoveAt(0)// Removes the first item in the list. domainUpDown1.Items.RemoveAt(0);// Removes the first item in the list. domainUpDown1->Items->RemoveAt(0);
See also
- xref:System.Windows.Forms.DomainUpDown
- xref:System.Windows.Forms.DomainUpDown.DomainUpDownItemCollection.Remove%2A?displayProperty=nameWithType
- xref:System.Windows.Forms.DomainUpDown.DomainUpDownItemCollection.RemoveAt%2A?displayProperty=nameWithType
- DomainUpDown Control
- DomainUpDown Control Overview