Results 1 to 5 of 5

Thread: how to set form.picture in runtime

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Netherlands
    Posts
    10

    Question

    Hello everybody,

    can anyone help me with the following problem?

    I have a MDI-form and I want to let the user decide to show a background or not. I thought I had to code something like this:

    Code:
    if blnBackGround then
       me.picture = "bg.bmp"
    else
       me.picture = ""
    endif
    but I was wrong.

    What do I have to do, to get it done?





  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Code:
    If blnbackground Then
    Me.Picture = LoadPicture("bg.bmp")
    Else
    Me.Picture = Nothing
    End if
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Netherlands
    Posts
    10
    Thanks!

    That was easy, but how do you refresh a MDIform?

    mdiform.paint misses

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    MDIFORM.Refresh?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Netherlands
    Posts
    10

    Unhappy

    I can't find it, can you?

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