Hide the "X" buton of a dialog window

Hide the "X" buton of a dialog window

How can I hide the X button of a dialog window, which is in the right-top corner of it?? ..

Or in other case ... How can I implement this kind of loading window in my applications??