C# - Adding Button inside ListBox

后端 未结 5 450
陌清茗
陌清茗 2021-01-12 15:13

I\'m writing an C# App (WinForm) with a ListBox having content added by the user. Now, I could have a ordinary button under the ListBox to remove items, but I would like to

5条回答
  •  爱一瞬间的悲伤
    2021-01-12 16:01

    I don't know why you would want to do specifically that? I would put a button at the bottom that deletes any selected items in the listbox. That is deemed the usual way of doing such a thing unless you want to use jquery and put an onClick event on the listbox that sends a call to delete the item if it is stored in a database or remove the item from the list on the page.

提交回复
热议问题