---
title: "Delete dynamic Button"  
description: "Delete dynamic Button"  
author: "Jaya J"  
published: 2015-04-17  
updated: 2015-04-17  
canonical: https://www.mindstick.com/forum/23104/delete-dynamic-button  
category: ".net"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Delete dynamic Button

I write code for [dynamic](https://www.mindstick.com/blog/11080/features-of-java-dynamic-complied-and-interpreted) [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) [creation](https://yourviews.mindstick.com/view/85506/what-was-the-causes-of-creation-of-pakistan) based on [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) [choice](https://yourviews.mindstick.com/view/80821/it-s-not-easy-to-make-a-right-choice) at different locations in [windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) form.Suppose i created 15 buttons dynamically like Btn1,Btn2,...Btn15 in different locations.Now i want to [delete](https://www.mindstick.com/forum/33620/how-to-delete-record-from-list-in-mvc-using-ajax) Btn5 from that location.Is it possible to delete?If possible tell [me the code](https://www.mindstick.com/forum/156831/can-you-tell-me-the-code-to-write-a-c-sharp-program) for this?Please Anybody help me.\
Thanks.\
\

## Replies

### Reply by Manoj Pandey

Yes it is possible. You can remove button dynamically. Use below [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii)

```
frm.Controls.Remove(button1);
```

frm is your form object


---

Original Source: https://www.mindstick.com/forum/23104/delete-dynamic-button

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
