Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27285

VS 2010 Picturebox as a button?

$
0
0
Hey all me again!

Trying to give my web browser a facelift so it doesn't look like cat crap, but I can't get the picturebox to work as a button.

Code:

Private Sub PictureBox2_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles PictureBox2.KeyDown
        If e.KeyCode = Keys.Enter Then
            PictureBox2.PerformClick()
        End If
    End Sub

Doesn't seem to work... throws an error saying: "'PerformClick' is not a member of 'System.Windows.Forms.PictureBox'."

Any way to fix this, or make it work AT ALL?

Thank you for taking your time to read my post.

Viewing all articles
Browse latest Browse all 27285

Trending Articles