I just read the post again, if you are trying to hide all of the buttons on the FORM, then just set the form properties for control box to no.
if you are trying to hide controls in the access window then you are on the right track:
yes, its the same code, this removes all access built in funtionallity when the window is minimized. ex: when you right click on the top of any form it gives you a menu, not if you use this code.
The only problem I have fould with using this code is on reports.
Say you have a report open up and maximize. there is no toolbar so you cant print it. you could add one preview button and one print button. What I did Was add code to the on close event for the report to ask the user if they want to print the report, therefore minimizing the ammount of controls on your forms.
make sure you backup you DB before you use this.
after you have it working,if you right click on access on the bottom toolbar and click restore, it should bring back SOME access funtionallity. be carefull not to lock yourself out completely
Let me know how it works
Ryan