Kdev
April 25th, 2001, 03:15 PM
I designed my application to run on a 2nd monitor as a progress indicator. There really is no interaction with the user after starting it. I designed the form to take up the full screen and to have no border. However, I would like to make this useable in a windowed state if the user only has 1 monitor configured on the system. I have code to detect if there is only 1 monitor and then it should set the form to have a sizeable border. Here is the example:
If lMonitors = 1 then
me.BorderStyle = 2
me.ScaleHeight = 573
me.ScaleWidth = 792
End If
This code works to the extent that if I check the values of the above properties at run time they are set to the new values (Normal values are BorderStyle = 0, ScaleWidth = 800, ScaleHeight = 600). However, the form does not seem to have a border. What is the best way to go about this sort of thing?
-K
If lMonitors = 1 then
me.BorderStyle = 2
me.ScaleHeight = 573
me.ScaleWidth = 792
End If
This code works to the extent that if I check the values of the above properties at run time they are set to the new values (Normal values are BorderStyle = 0, ScaleWidth = 800, ScaleHeight = 600). However, the form does not seem to have a border. What is the best way to go about this sort of thing?
-K