With sfform and searchbox I turned off closebutton and contextmenu, but one thing still works is controlbox Icon at Top left form
If I double click, it will automatically dispose.
If I click, there will be a context menu above it.
Edit: I mistype, this is the sfForm topic