Disabling the Mac OS X Dock

You can prevent the Dock from being displayed while your application is frontmost by adding the following code to the App.Open event handler.

soft declare function SetSystemUIMode Lib "Carbon.framework" (inMode as Integer, inOptions as Integer) as Integer
const kUIModeContentHidden = 2

dim OSError as Integer = SetSystemUIMode(kUIModeContentHidden, 0)