how can i use this code http://vbforums.com/showpost.php?p=2273373
on a command button instead of minimize. this is because i dont want my form to be resizable therefore i'm using a fixed single boreder on the form and it doesnt show the minimize button