Unfortunately sliders are modal in Windows so you need to use event hooks to have your program react to slider events (a standard eventloop will hang until the user releases the button). See the file in tutorials section of the help called MaxGUI overview for a better explanation.