Results 1 to 4 of 4

Thread: [RESOLVED] video flicker

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2013
    Posts
    534

    Resolved [RESOLVED] video flicker

    I have a parent form2 and a child form1 and a msgbox. All the parent form2 does is set the background image and open the child form1.When I close the msgbox I get a flicker. What can I do? Both forms are double buffered.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,981

    Re: video flicker

    We shouldn't have to ask you to show us the code. What you describe will not inherently produce the behaviour you describe, so it's almost certainly something specific to what you're doing. If we can't see what you're doing, we can't tell what's wrong with it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2013
    Posts
    534

    Re: video flicker

    form2 is the first to run and has a background image
    Code:
    Public Class Form2
        Private Sub Form2_shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown
            Dim NewMDIChild As New Form1()
            NewMDIChild.MdiParent = Me
            NewMDIChild.Show()
        End Sub
    End Class

    form1 just displays the blank form
    Code:
    Public Class Form1
    
        Private Sub Form1_shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown
            ' MsgBox("If back color is BLUE then it is now clickable!" & vbLf & vbLf & "  A PINK back ground shows the best hand!")
    
        End Sub
    End Class

    there is flicker

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2013
    Posts
    534

    Re: video flicker

    when I changed the form.load to form.shown the flicker went away.

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