Results 1 to 4 of 4

Thread: [VB 2008] Make Flashing Image[HELP]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2009
    Posts
    96

    [VB 2008] Make Flashing Image[HELP]

    I know how to make a flashing text within a button, but i do not know how to make a flashing image within a button. i used this code to make the flashing text within the button
    Code:
    Timer1_tick
    If Button1.Text = "Start" Then
    Button1.Text = ""
    ElseIf Button1.Text = "" Then
    Button1.Text = "Start"
    End If
    What is the code to make the image within the button to flash.

  2. #2
    Fanatic Member manhit45's Avatar
    Join Date
    May 2009
    Location
    Ha noi - Viet Nam
    Posts
    826

    Re: [VB 2008] Make Flashing Image[HELP]

    Quote Originally Posted by x DeaDLy View Post
    I know how to make a flashing text within a button, but i do not know how to make a flashing image within a button. i used this code to make the flashing text within the button
    Code:
    Timer1_tick
    If Button1.Text = "Start" Then
    Button1.Text = ""
    ElseIf Button1.Text = "" Then
    Button1.Text = "Start"
    End If
    What is the code to make the image within the button to flash.
    You can use Backgroundimage properties to do that.
    --***----------***-----

    If i help you please rate me.

    Working with Excel * Working with String * Working with Database * Working with array *

    K51 ĐH BÁCH KHOA HÀ NỘI - Khoa CNTT pro.

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,988

    Re: [VB 2008] Make Flashing Image[HELP]

    Are you just flashing the background color, or do you have a couple images that you want to alternate?

    Either way, the code is roughly the same. You toggle the property that you want to flash, just as you are doing with the text. If it's the backcolor property, you just switch that from one to another (or do something more interesting, such as a button I have that cycles through all colors possible in a nearly random fashion).
    My usual boring signature: Nothing

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2009
    Posts
    96

    Re: [VB 2008] Make Flashing Image[HELP]

    I just have one image within the button. I put the image by clicking on the button and went to the Properties box and chose an image for that button. I want to make that Image flash. I made the text within that button flash by using a timer.

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