hide/show a form button for user group

hi friends, I have a form on which there is a button say B , i want that this button is visible for particular user group only.

How can i do this ? with code i know it is possible , but i want to use or set permission on this button .

pls help


You should check the security key attached to your button and allow access or not to your user group for this specific security key.

You can have security key on button and/or menuItem behind your button



Hi Thomas,

i have created the Security key and set GLSetup as its parent key (since the button is on form which is in gl setup) .

I assign this security key to the button. now how to make it possible to hide this button to user which are not in userr group say show button



Thanks Thomas ,

its working now