Results 1 to 4 of 4

Thread: Controls Flickering

  1. #1

    Thread Starter
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Controls Flickering

    My application is runs without any external dependencies like .dlls.

    When I run my app, the controls flicker on as it loads. It's not terrible, but it's annoying and kind of takes down from the professionalism. I was trying to figure out what was causing it and found out that it was my background image.

    My background image is a jpeg and I guess it is too large. Is there a way I can get it to load the image better so my controls don't flicker or maybe use a different file type that is smaller?

    Thanks
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  2. #2
    PowerPoster Jenner's Avatar
    Join Date
    Jan 2008
    Location
    Mentor, OH
    Posts
    3,712

    Re: Controls Flickering

    Not really. The system Windows uses to draw Windows Forms applications is called GDI+ and it's a slug when it comes to graphics, especially compared to DirectX and WPF (which uses DirectX behind the scenes). You can try setting "DoubleBuffered = True" on your form. It may help some.
    My CodeBank Submissions: TETRIS using VB.NET2010 and XNA4.0, Strong Encryption Class, Hardware ID Information Class, Generic .NET Data Provider Class, Lambda Function Example, Lat/Long to UTM Conversion Class, Audio Class using BASS.DLL

    Remember to RATE the people who helped you and mark your forum RESOLVED when you're done!

    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe. "
    - Albert Einstein

  3. #3

    Thread Starter
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Controls Flickering

    I already turned double buffering on and it helps a little bit. But it's still not as good as I would like it
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  4. #4

    Thread Starter
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Controls Flickering

    It seems my background picture was set as tile, so it was loading more than it should. I set it to center and with double buffering, it works a whole lot better. Still not perfect, but tolerable.

    Thanks
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

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