Results 1 to 3 of 3

Thread: Curtains Up Effect

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Cool

    I am trying to make a curtain up effect. ie. a word(variable) gradually displayed to the user, like the curtains up in the threatre. I try to overlay a picture box and a label, but unsuccessful. Do anybody knows how to do it?

    Thanks

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    82
    Code:
    Private Sub Command1_Click()
        Dim x As Long
        
        For x = Picture1.Height To 0 Step -20
            Form1.Refresh
            Picture1.Height = x
        Next
        Picture1.Visible = False
    End Sub
    seems to do the trick for the picture box and label, but the flickering of the label is annoying. I did notice that having another picture box under the "curtain" gets rid of the flickering. So if you put your text into a picture format and display it in the second picture box, it may look ok. good luck
    VB 6.0 Pro | VC++ 6.0

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Wink

    Thank you for your input. I changed a bit to make it horizontal scroll by putting a label inside a picture box. It works perfectly.


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