Adblock breaks this site

My First Program [ SOURCE ]

Discussion in 'Programming General' started by LaRoCkO, Aug 8, 2008.

  1. LaRoCkO

    LaRoCkO Active Member
    Banned

    Joined:
    Jul 2, 2008
    Posts:
    155
    Referrals:
    0
    Sythe Gold:
    0
    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
    
     
< All VB6 Commands | Embedding Youtube Videos into vb 2008 >


 
 
Adblock breaks this site