-
May 22nd, 2009, 01:22 PM
#1
Thread Starter
Lively Member
[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.
-
May 22nd, 2009, 01:38 PM
#2
Fanatic Member
Re: [VB 2008] Make Flashing Image[HELP]
Originally Posted by x DeaDLy
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.
-
May 22nd, 2009, 01:40 PM
#3
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
-
May 22nd, 2009, 01:47 PM
#4
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|