hi bushmobile, thanks for the info but your code almost works. it takes the screen width but dont know why it doesnt take the screen height, there is a small gap. however i need the form to be maximized so the user dont play with the window size.