Preview

Nt1310 Unit 1 Individual Assignment

Good Essays
Open Document
Open Document
1859 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Nt1310 Unit 1 Individual Assignment
Table of Contents

1. Introduction

This is our first individual assignment for Programming unit this semester. This assignment was given in December 2013, and submission date is on 10th February 2014.
In this assignment, we were asked to create and design a Photo Viewer application. This application should be able to allow the users to browse through pre-loaded images. Programming will be done using Visual Basic.NET 2008 software.
At the end of the assignment, we should be able to produce documentation on Photo Viewer application.

2. Design Structure
2.1 Layout Form 1

Below is the layout of Form 1:

Button 1: “Add” button – used to add images.
Button 2: “Save” button – used to save new images.
Button
…show more content…
Here is the coding listing for Form 1:

Imports System.IO
Public Class Form1 Dim filename As String Dim strdirectory As String = "\VB\Photo Viewer\"

Private Sub save_record()

Dim opentext As StreamWriter If File.Exists(strdirectory & "photos.txt") Then opentext = File.AppendText(strdirectory & "photos.txt") Else opentext = File.CreateText(strdirectory & "photos.txt") End If

opentext.WriteLine(txtimgno.Text) opentext.WriteLine(txtcaption.Text) opentext.WriteLine(txtdate.Text) opentext.WriteLine(rtbDescription.Text) opentext.WriteLine() opentext.Close() pbxPhoto.Image.Save(strdirectory & "images\" & txtimgno.Text & ".jpg") MsgBox("Image saved!", MsgBoxStyle.Information) gbxDetails.Enabled = False btnSAVE.Enabled = False btnCancel.Enabled = False gbxDetails.Enabled = False btnADD.Enabled = True btnVIEW.Enabled = True btnExit.Enabled = True

txtcaption.Clear() txtdate.Text = "" txtimgno.Clear() rtbDescription.Clear() pbxPhoto.Image = Nothing filename =
…show more content…
.ShowDialog() If .FileName = "" Then MsgBox("No image selected!") Else filename = .FileName pbxPhoto.Image = Image.FromFile(filename) gbxDetails.Enabled = True btnSAVE.Enabled = True btnCancel.Enabled = True btnADD.Enabled = False btnVIEW.Enabled = False btnExit.Enabled = False

End If End With End Sub

Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click Dim x As Integer x = MsgBox("Cancel adding picture?", MsgBoxStyle.Question + MsgBoxStyle.OkCancel)

If x = vbOK Then gbxDetails.Enabled = False btnSAVE.Enabled = False btnCancel.Enabled = False gbxDetails.Enabled = False btnADD.Enabled = True btnVIEW.Enabled = True btnExit.Enabled = True

txtcaption.Clear() txtdate.Text = "" txtimgno.Clear() rtbDescription.Clear() pbxPhoto.Image =

You May Also Find These Documents Helpful

  • Good Essays

    How comfortable would you be with a government having access to your personal information and data on your phone? A recent incident involving a terrorist attack in San Bernardino, sparked a controversy between Apple and the Federal Bureau of investigation. Following the attack by two individuals committed an act of terror, killing 14 people, the iPhone belonging to one of the terrorists was found. As you may know, your organization is requesting the court for Apple's forced assistance in weakening the encryption on an IPhone related to the San Bernardino terrorist attacks and supposedly has vital information on it. These terrorist attacks were performed by ISIS's lone wolves, named Syed Rizwan Farook, who owns the phone and Tashfeen Malik, his wife. In my opinion, the phone shouldn't be cracked for three reasons. First of all because it undermines America's founding principles and it…

    • 642 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    As a Consultant for Deloitte, I will be analyzing client's data to help them make smarter business decisions.…

    • 369 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Image viewer is another software which I have used to view the image when I was creating the posters. It shows me any image saved with any file format. The best thing about the image viewer is that you do not have to buy it. It comes with the windows itself.…

    • 1486 Words
    • 6 Pages
    Better Essays
  • Good Essays

    Car Rental Project

    • 1180 Words
    • 5 Pages

    This assignment will be marked out of 100 and carries 70% of the overall module weighting. (The first part of the coursework carried the remaining 30%.) Your .java files and report for this part must be uploaded and submitted by 5pm on Friday of Week 12. The assignment must be carried out individually so you must not obtain help from anyone other than the module teaching staff. You must not copy code from any source apart from the module core text and the module materials. Collusion, plagiarism (unreferenced copying) and other forms of cheating constitute Academic Misconduct, which can lead to failure of the module and suspension.…

    • 1180 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Java Applets

    • 645 Words
    • 3 Pages

    1. Tutorial tips 2. Java, development, and applets 3. Loading and displaying images 4. Exceptions and MediaTracker class 5. Offscreen image buffering 6. Image rotation algorithm using copyArea 7. Threading and animation 8. Graphic output methods and applet parameters 9. Wrapup…

    • 645 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Mini Thesis

    • 4492 Words
    • 18 Pages

    This thesis is being submitted as partial and final fulfillment of the cooperative work experience requirements of Kettering University needed to obtain a Bachelor of Science in Computer Science Degree.…

    • 4492 Words
    • 18 Pages
    Powerful Essays
  • Powerful Essays

    Adobe Photoshop

    • 1164 Words
    • 5 Pages

    It is user friendly. It contain powerful tool to -crop the image without losing the quality of the image ,we can change the background colour of the image with the help of eraser tool , create 3d icons, create graphics for web applications with reduced file size.…

    • 1164 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    BackColor and Background Image properties we can set a background color and a background image to the button.…

    • 910 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Autocad Grading Application

    • 3841 Words
    • 16 Pages

    In Partial Fulfillment of the Requirements for the Degree Master of Science in Computer Science _______________…

    • 3841 Words
    • 16 Pages
    Powerful Essays
  • Powerful Essays

    Oops (Bca)

    • 6522 Words
    • 27 Pages

    SEMESTER - 3 Code BCA-301 BCA-302 BCA-303 BCA-304 BCA-305 BCA -306 BCA -307 TOTAL SEMESTER -4 Code Subject L P TOTAL INT. EXT. TOTAL MARKS Subject Math-II (Computer Oriented Methods) Management Information Systems Software Engineering Object Oriented Programming in C++ Introduction to Microprocessor Software Lab –IV (BC-304) Hardware Lab –II (BC-305) L 30 40 40 32 32 174 P 18 0 0 32 16 66 TOTAL 48 40 40 64 48 240 INT. 25 25 25 25 25 25 25 175 EXT. 75 75 75 75 75 75 75 525 TOTAL MARKS 100 100 100 100 100 100 100 700…

    • 6522 Words
    • 27 Pages
    Powerful Essays
  • Satisfactory Essays

    Design and Security Features – User-friendly design using easily-comprehensible menus facilitates utilization of application features. Flexible system makes it customizable depending on the needs and requirements of client Barangay. Employs a back-up and recovery utility for file integrity and…

    • 296 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Juz Upload~

    • 351 Words
    • 2 Pages

    1. Discuss the advantages of object-oriented programming over procedural programming especially with regards to software maintenance, extensibility and reuse. (C2, P2, A2) 2. Develop an object-oriented program using appropriate design fundamentals. (C3, P3, CTPS) 3. Implement the concepts of encapsulation, inheritance and polymorphism to solve a given programming problem. (C4, P3, CTPS)…

    • 351 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Computer Boon

    • 703 Words
    • 3 Pages

    As a matter of fact, Print Shop which is another popular computer program enables students to insert attractive borders and relevant pictures for their projects and assignments. Not only that, they can use this program to make personalized cards for all occasions including birthdays and greeting cards. Furthermore, they can design personalized invitation cards to send to their friends and families with the advancement of technology. Pictures taken from mobile phones and digital cameras can be printed and inserted eloquently to make the projects and assignments look like masterpiece.…

    • 703 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    computer

    • 16110 Words
    • 59 Pages

    explore and examine the basic concepts and underlying principles of photo editing specifically using the Adobe Photoshop…

    • 16110 Words
    • 59 Pages
    Powerful Essays
  • Satisfactory Essays

    Objectives Of The Study

    • 367 Words
    • 2 Pages

    The main objective of our program is to create three different interfaces of each device to one GUI (Graphical User Interface). These are the objectives; 1) to create a friendly user program. 2) To preview/display an output to the program. (It called it a Monitored Weathered System with Surveillance Camera, the program contains 3 devices that attached to the prototype; the camera, wind velocity and wind direction.) 3) Create the database for the records of all information in the devices. We want to create program that will be useful to the person that manage the system by the automatically gathering the data’s.…

    • 367 Words
    • 2 Pages
    Satisfactory Essays

Related Topics