about uscontact usnewsthe teamcareersresourcessite map
question from I Rock!!!
question asked by I Rock!!!
date asked 17 June 2004
subject Controlling Visual basic form Resizing
description I have a From that is loaded no modal and Border style set to Sizeable. I only want the form to remain one size but it must be able to minimise and maximise to that size. I have changed the the height and width property in the Form_Resize event. How ever when the form is resized I get this screen repaint happening. And when I minimize I get error 384 “A form can't be moved or sized while minimized or maximized”. Is there anything I can do about the screen repainting? Is Error handling in the Form_Resize event the best solution? Or is there another way all together of doing this?

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'sUserName'

/support/showanswer.asp, line 305