I've got a picture for a backround, and i have my form opening maximized, the pic is 800 x 600 is there anyway i can forse it to fit whatever screen resolution the user might be using?
Printable View
I've got a picture for a backround, and i have my form opening maximized, the pic is 800 x 600 is there anyway i can forse it to fit whatever screen resolution the user might be using?
yup,
set the autoredraw property to true as well.Code:Private Sub Form_Resize()
Call Me.PaintPicture(Me.Picture, 0, 0, Me.ScaleWidth, Me.ScaleHeight)
End Sub
Thanx Sam, worked like a charm!!!
although my next question would be how do i get control objects to reposition depnding on screen res.? or can i force a screen res. so that my controls will be where i put them?
This is a really annoying problem, basicly what you have to do is work out what fraction of the height and width of the form you want all the left top width and heights of your controls to be, thenin the resize event work out what the tops lefts widths and heights should be for the size of the form and set them to the right values, it's very tedious but it's the only way (you can force a screen res but it usually pisses the user off.
I don't really mind pissing the user off on this one(never liked him anyway) how do ya force the screen res.?
nevermind I just bought Resize OCX V3.7, took care of my problems.....