Fade in picturebox in VB

How do I make a picturebox fade in after a timer

Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick

picturebox1.opacity = false

End Sub

Answers


Opacity is not a member of System.Windows.Forms.PictureBox. You can't have the same effect like forms. But you can do this:

PictureBox1.Visible = False


Need Your Help

Positioning JFrame

java swing

I am trying to position my JFrame to be in the center of the screen when it opens. Is there code that I can put here to make my program start in the center of the screen.

Need help creating the Data Model for a Rails project

ruby-on-rails ruby database sqlite3 rails-activerecord

I've had some experience with some self projects in Rails and I'm having some trouble creating the data model for this specific scenario. Basically, there are many users, each of whom can play many