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

  • Satisfactory Essays

    According, to the Body Mass Index (BMI) this s an indicator that will help people determine a possible change for a longer life span than the average person, which mean they are most lightly to be overweight ,and not at all over weight, even a possibility to be obesity. The intervals come from each of the following numbers 17 to 22, 23 to 24,999, 25to 29.9 and 30. Now you can see 17 and 22 is in between. This is a compound inequality statement but rather than inclusive which mean that the 17< BMI is 30 can also be written as (30, +00). Although, I will calculate my BMI and explain the formula I used to back these number up with as my results. Many times other BMI can be very misleading, this reason I will prove. Now, I come to my final evaluation and the reasons why they “probably are not overweight” now to use the set and interval notations of numbers along with the simple graph chart of…

    • 783 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 1 Assignment

    • 2415 Words
    • 10 Pages

    A 4G system is expected to provide a communication technology based on Internet Protocol. Internet protocol or IP is generally used in the computer networks for data communication among computers. All the devices are identified by a number called IP number. In 4G network this concept is extended to telephony with an intention to make data and voice communication integrated in the same architecture. The 4G network is supposed to facilitate a Gigabit speed i.e. a speed of 100+ Mega Bytes per second with a mobile node speed of up to 200km/hr. It will enable Internet access, IP…

    • 2415 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    Nowadays, smartphone become comme to everyone ,it become a needs even elderly may have one.Everyday you may see a situation that all people are using thire phone on chating with whatsapp, watching movie or playing some apps busily.I am going to introduce a product which being the trend and it may even transcend Iphone---Samsung galaxy S2 LTE version.…

    • 827 Words
    • 4 Pages
    Satisfactory Essays
  • 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
  • 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
  • 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
  • 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

Related Topics