---
title: "Access level user For Buttons in the forms"  
description: "Access level user For Buttons in the forms"  
author: "Anonymous User"  
published: 2014-08-22  
updated: 2014-08-22  
canonical: https://www.mindstick.com/forum/2078/access-level-user-for-buttons-in-the-forms  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Access level user For Buttons in the forms

I Want Set [Access](https://www.mindstick.com/articles/12994/how-foreigners-can-access-blocked-websites-in-china) level [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) For Buttons in the forms.

example in the each [form](https://www.mindstick.com/forum/6/multi-form-mfc-application) i have [Add](https://www.mindstick.com/forum/12983/add-address-in-textbox-when-page-is-load-and-if-i-search-address-in-textbox-show-in-map-by-javascript) , Edit ,[search](https://www.mindstick.com/articles/65368/best-smo-services-company-in-hyderabad-improve-search-rankings) and [Delete](https://www.mindstick.com/forum/33620/how-to-delete-record-from-list-in-mvc-using-ajax) [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net) \

and I want user1 access to delete and [update](https://www.mindstick.com/forum/156353/what-is-hummingbird-update) button in the form 1 and user 2 access to all buttons in each forms.

## Replies

### Reply by Sumit Kesarwani

Hi Jay, try this:\

If User.IsInRole("Administrators") Then

'Do something only admins are allowed to-do

End If


---

Original Source: https://www.mindstick.com/forum/2078/access-level-user-for-buttons-in-the-forms

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
