|
-
Aug 20th, 2000, 04:31 PM
#1
Thread Starter
Hyperactive Member
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?
-
Aug 20th, 2000, 04:36 PM
#2
Frenzied Member
yup,
Code:
Private Sub Form_Resize()
Call Me.PaintPicture(Me.Picture, 0, 0, Me.ScaleWidth, Me.ScaleHeight)
End Sub
set the autoredraw property to true as well.
-
Aug 20th, 2000, 04:49 PM
#3
Thread Starter
Hyperactive Member
Thanx Sam, worked like a charm!!!
-
Aug 20th, 2000, 05:16 PM
#4
Thread Starter
Hyperactive Member
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?
-
Aug 20th, 2000, 05:33 PM
#5
Frenzied Member
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.
-
Aug 20th, 2000, 05:37 PM
#6
Thread Starter
Hyperactive Member
I don't really mind pissing the user off on this one(never liked him anyway) how do ya force the screen res.?
-
Aug 20th, 2000, 09:40 PM
#7
Thread Starter
Hyperactive Member
nevermind I just bought Resize OCX V3.7, took care of my problems.....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|