Posts

Vb.Net - Exception Handling

  VB.Net - Exception Handling An exception is a problem that arises during the execution of a program. An exception is a response to an exceptional circumstance that arises while a program is running, such as an attempt to divide by zero. Exceptions provide a way to transfer control from one part of a program to another. VB.Net exception handling is built upon four keywords -  Try ,  Catch ,  Finally  and  Throw . Try  − A Try block identifies a block of code for which particular exceptions will be activated. It's followed by one or more Catch blocks. Catch  − A program catches an exception with an exception handler at the place in a program where you want to handle the problem. The Catch keyword indicates the catching of an exception. Finally  − The Finally block is used to execute a given set of statements, whether an exception is thrown or not thrown. For example, if you open a file, it must be closed whether an exception is raised or not....

Visual Programming - Dialog box

Image
VB.Net - Dialog Boxes   There are many built-in dialog boxes to be used in Windows forms for various tasks like opening and saving files, printing a page, providing choices for colors, fonts, page setup, etc., to the user of an application. These built-in dialog boxes reduce the developer's time and workload. All of these dialog box control classes inherit from the  CommonDialog  class and override the  RunDialog()  function of the base class to create the specific dialog box. The RunDialog() function is automatically invoked when a user of a dialog box calls its  ShowDialog()  function. The  ShowDialog  method is used to display all the dialog box controls at run-time. It returns a value of the type of  DialogResult  enumeration. The values of DialogResult enumeration are − Abort  − returns DialogResult.Abort value, when user clicks an Abort button. Cancel  − returns DialogResult.Cancel, when user clicks a Cancel button. ...

Features of Mobile Operating System

  1. Easy to use The graphics should be attractive. The buttons and features should be easy to use. moreover, the functionalities should not be very complicated. Features should be powerful and useful. 2. Good app store An app is one of the basic part of an OS. Good and useful apps forms an important part of an OS. The apps should be simple and interactive. 3. Good battery life Power is one of the main requirement of a smartphone. They require power for processors sensors etc. Therefore, the battery holds a very important role. Smartphones power usage keeps on increasing therefore, a good battery backup is very essential. 4. Data usage and organization An operating system should focus on controlling the data and network usage. It should keep the limit and requirement in focus. Secondly, the organization of data related to to-do lists, calendars, alarms, reminders etc is very important. A good OS should keep this data in a very organized and safe manner. Moreover, the data should be...

Types of Popular Mobile Operating System

  1. Android OS The Android OS is the most common operating system among the mobile operating system. Furthermore,  Google  is the developer of Android. Moreover, it is an open source and free operating system. This OS is based on the  Linux  kernel. The name for every new version of update is based on ‘desserts’ for example Cupcake, Donut, Eclair, Oreo, Kitkat, etc. 2. Bada Samsung  is the launcher of this operating system. It came into market in 2010. Moreover, it includes features like 3-D graphics, application installation, multipoint touch etc. 3. Blackberry OS The developer of this operating system is  Reasearch In Motion (RIM) . It was specifically designed for blackberry devices. Furthermore, it is useful for corporate users. 4. Apple iOS After android, it is one of the most popular OS. It is designed to run on Apple devices such as iPhones, iPad tablets, etc. Moreover, like the android devices have the playstore for apps download. Likewise, ap...

Queue - Data Structures

Image
  Queue is the data structure that is similar to the queue in the real world. A queue is a data structure in which whatever comes first will go out first, and it follows the FIFO (First-In-First-Out) policy. Queue can also be defined as the list or collection in which the insertion is done from one end known as the   rear end   or the   tail   of the queue, whereas the deletion is done from another end known as the   front end   or the   head   of the queue. The real-world example of a queue is the ticket queue outside a cinema hall, where the person who enters first in the queue gets the ticket first, and the last person enters in the queue gets the ticket at last. Similar approach is followed in the queue in data structure. Now, let's move towards the types of queue. Types of Queue There are four different types of queue that are listed as follows - Simple Queue or Linear Queue Circular Queue Priority Queue Double Ended Queue (or Deque) Let...

Stack - Data Structure

Image
  A Stack is a linear data structure that follows the   LIFO (Last-In-First-Out)   principle. Stack has one end, whereas the Queue has two ends ( front and rear ). It contains only one pointer   top pointer   pointing to the topmost element of the stack. Whenever an element is added in the stack, it is added on the top of the stack, and the element can be deleted only from the stack. In other words, a   stack can be defined as a container in which insertion and deletion can be done from the one end known as the top of the stack. Some key points related to stack It is called as stack because it behaves like a real-world stack, piles of books, etc. A Stack is an abstract data type with a pre-defined capacity, which means that it can store the elements of a limited size. It is a data structure that follows some order to insert and delete the elements, and that order can be LIFO or FILO. Working of Stack Stack works on the LIFO pattern. As we can observe in the...

Java - Swing

  Swing  is a Java Foundation Classes JFC] library and an extension of the Abstract Window Toolkit [AWT]. Swing offers much-improved functionality over AWT, new components, expanded components features, excellent event handling with drag and drop support. Introduction of Java Swing Swing has about four times the number of User Interface [U1] components as AWT and is part of the standard Java distribution. By today’s application GUI requirements, AWT is a limited implementation, not quite capable of providing the components required for developing complex GUI’s required in modern commercial applications. The AWT component set has quite a few bugs and really does take up a lot of system resources when compared to equivalent Swing resources. Netscape introduced its Internet Foundation Classes [IFC] library for use with Java. Its Classes became very popular with programmers creating GUI’s for commercial applications. Swing is a Set Of API ( API- Set Of Classes and Interfaces ) Swi...