0 Replies - 650 Views - Last Post: 09 December 2010 - 07:37 AM Rate Topic: -----

#1 sean_king  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 15-October 10

Help Needed with Image Editor App

Posted 09 December 2010 - 07:37 AM

Hey Guys, I need some help with a class project. I have attached the project description file along with this post. Its for an image editor app. I got the app to open and scale the image files, I just need help getting the other functions working. Any input will be appreciated, for the deadline on this is fast approaching. Thanks

Public Class Form1

    Private Sub OpenToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem1.Click
        Try
            Dim dlg As OpenFileDialog = New OpenFileDialog
            dlg.Title = "Open"
            dlg.Filter = "PNG (*.png)|*.png|JPEG (*.jpeg)|*jpeg|Bitmap (*.bmp)|*bmb"
            If dlg.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
                PictureBox1.Load(dlg.FileName)
                PictureBox2.Hide()
            End If
        Catch ex As Exception : End Try
    End Sub

    Private Sub ScaleToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ScaleToolStripMenuItem.Click
        Me.Width = PictureBox1.Width
        Me.Height = PictureBox1.Height
    End Sub

    Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AboutToolStripMenuItem.Click
        About.Show()
    End Sub
End Class

Attached File(s)



Is This A Good Question/Topic? 0
  • +

Page 1 of 1