• Log in or sign up for an account here: https://www.sythe.org/login

My First Program [ SOURCE ]

LaRoCkO

Active Member
Joined
Jul 2, 2008
Sythe Gold
0
Messages
155
My First Program [ SOURCE ]
Just a basic picture viewer I made in Visual Basic 2008
Just started learning and it is amazing :)

Here is source ( Uploaded source so you guys can see how it is done and learn)
There is comments before each command.

Code:
Public Class ViewerForm

    Private Sub btnSelectPicture_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSelectPicture.Click
        ' This command shows the open file dialog box.
        If ofdSelectPicture.ShowDialog = DialogResult.OK Then
            ' This command loads the picture into the picture box.
            picShowPicture.Image = Image.FromFile(ofdSelectPicture.FileName)
            ' Show the name of the file in the form's caption.
            Me.Text = "Picture Viewer(" & ofdSelectPicture.FileName & ")"
        End If

    End Sub

    Private Sub btnQuit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnQuit.Click
        ' This will close the picture viewer

        Me.Close()
    End Sub
End Class
 
Runescape Gamblingrunescape gambling
Back
Top