0% found this document useful (0 votes)
17 views3 pages

Picture Box Snippet Code

The document contains code for a Windows Forms application with two forms, Form1 and Form3. In Form1, clicking Button1 opens Form2 and hides Form1, but there is a duplicate event handler for Button1 that opens Form3 instead. Form3 has multiple buttons that, when clicked, change the image displayed in PictureBox1 using resources.

Uploaded by

Shiela R. Folgar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views3 pages

Picture Box Snippet Code

The document contains code for a Windows Forms application with two forms, Form1 and Form3. In Form1, clicking Button1 opens Form2 and hides Form1, but there is a duplicate event handler for Button1 that opens Form3 instead. Form3 has multiple buttons that, when clicked, change the image displayed in PictureBox1 using resources.

Uploaded by

Shiela R. Folgar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Public Class Form1

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


[Link]
[Link]()
[Link]()
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles [Link]


[Link]()
[Link]()
End Sub
End Class
Public Class Form3
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
[Link]
[Link] = [Link].image1
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles


[Link]
[Link] = [Link].images2
End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles


[Link]
[Link] = [Link].images3
End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles


[Link]
[Link] = [Link].images4
End Sub

Private Sub Button5_Click(sender As Object, e As EventArgs) Handles


[Link]
[Link] = [Link].images5
End Sub

Private Sub Button6_Click(sender As Object, e As EventArgs) Handles


[Link]
[Link] = [Link].images6
End Sub

End Class

You might also like