Disabling form sizing when borderstyle is set to 2-sizable
Posted on 2004-10-24
In my VB6 app, which uses a status bar, setting a form to any of the fixed options (0,1,3,4) causes it to cover the Windows tray and tray and status bar. Setting it to one of the sizable options (2,5) allows the Windows tray and status bar to be visible.
The form is always set to open with WindowState = vbNormal, and with MinButton and Maxbutton set to false.
But I don't want the user to be able to size the window. Is there any way to disable user-controlled sizing while enabling Windows to maintain the view of its tray and status bar, please?