CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Blinking label

  1. #1
    Guest

    Blinking label

    I have a label in my form, which I change the color modifying its fontcolor property every second with a timer control.
    The problem is that the label blinks.

    Is there any way of avoiding this to happen??

    Thank you.

    Nauj





  2. #2
    Guest

    Re: Blinking label

    I didn't find FontColor property for the Label in VB6. If you are talking about ForeColor property, try to run your project on different machine. Maybe you have some problem with video memory or video adapter settings. On my machine

    private Sub Timer1_Timer()
    If Label1.ForeColor = &HFF& then
    Label1.ForeColor = &HFF00&
    else
    Label1.ForeColor = &HFF&
    End If
    End Sub



    works fine.
    Vlad


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

Featured