Setting the button's Enabled property to False should do the trick. The problem you'll run into is that the button still has the focus after it's clicked, which happens to be right when you're trying to disable it. You can't disable a control that's holding focus.
Hopefully, you'll have some other control on the form that you can give focus to first. If the magic button is named Button and there is also a text box named TextBox, you could try
TextBox.SetFocus
Button.Enabled = False
somewhere in your Button_Click() event.
Additional Response:
If you need to track the number of clicks, then declare a variable for that purpose and use it.
It seems that your question has changed. At first, it sounded like you were asking what methods or properties of command buttons are used for disabling the control. Now it sounds like you're asking how to program a task that you don't know how to clearly describe.
What is the task? Do you have one button that should be disabled the first time it's clicked? Do you have several buttons that can be clicked in any order, as long as the same button isn't clicked twice in a row? Do you need to execute a different routine the first time a button is clicked than any other time that button is clicked?
This is just programming. You can call any number of routines in a single event. You can call them conditionally. You can track states, whether exposed by another object or defined in your own code. But, first, you have to be able to explain what you want to do, if not to us then at least to yourself, in enough detail to make coding possible.
What, really, is the behavior you want to code?