Results 1 to 7 of 7

Thread: opening with a backround

  1. #1

    Thread Starter
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    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?

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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.

  3. #3

    Thread Starter
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    Thanx Sam, worked like a charm!!!

  4. #4

    Thread Starter
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    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?

  5. #5
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    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.

  6. #6

    Thread Starter
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    I don't really mind pissing the user off on this one(never liked him anyway) how do ya force the screen res.?

  7. #7

    Thread Starter
    Hyperactive Member PJB's Avatar
    Join Date
    Aug 2000
    Location
    dunno at the moment
    Posts
    302
    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
  •  



Click Here to Expand Forum to Full Width