How to: Remove Items from Windows Forms DomainUpDown Controls
You can remove items from the Windows Forms DomainUpDown control by calling the Remove or RemoveAt method of the DomainUpDown.DomainUpDownItemCollection class. The Remove method removes a specific item, while the RemoveAt method removes an item by its position.
To remove an item
Use the Remove method of the DomainUpDown.DomainUpDownItemCollection class to remove an item by name.
DomainUpDown1.Items.Remove("noodles")
domainUpDown1.Items.Remove("noodles");
domainUpDown1->Items->Remove("noodles");
-or-
Use the RemoveAt 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
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.
.NET Desktop feedback
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про