Professional Documents
Culture Documents
Presentado Por
Tutor:
Grupo: 2001416_35
INGENIERÍA DE SISTEMAS
JOSE ACEVEDO, MARZO 2017
INTRODUCCIÓN 4
INTRODUCTION 4
OBJETIVOS 5
OBJECTIVES 5
HERRAMIENTAS 6
1. ColorDialog 6
2. FontDialog 7
3. OpenFileDialog 10
4. SaveFileDialog 12
5. PrintDialog 14
6. Forms 17
7. TextBox 20
8. ScrollBar 22
9. DateTimePicker 24
11. ToolStripMenuItem 27
12. ContextMenuStrip 28
13. Botón 29
14. Formulario 30
15. Calendario 31
16. Caja de Texto 31
17. Chart 32
18. CheckBox 33
19 Caja de Grupo 34
20. Barra de progreso. 35
21 Botón Guardar 35
22 Modo Paralelo 36
23 Adjuntar o Ejecutar 36
24 Marcar Comentario 36
25 Label 36
26 List View 37
27 CheckedList Box 38
28 WebBrowser 40
29 MonthCalendar 41
30 RadioButton 42
TOOLS 44
1 ColorDialog 44
3 OpenFileDialog 48
4 SaveFileDialog 51
5 PrintDialog 53
6 Forms 55
7 TextBox 59
8 ScrollBar 61
9 DateTimePicker 63
11 T:System.Windows.Forms.ToolStripMenuItem 67
12 ContextMenuStrip 69
13 button 70
14 form 70
15 calendar 71
16 text box 72
17 Chart 73
18 CheckBox 74
19 group box 74
20. progress bar. 75
21 save button 76
22. parallel mode 76
23 attach or run 76
24 mark comment 76
25 Label 76
26 List View 77
27 CheckedList Box 79
28 WebBrowser 81
29 MonthCalendar 82
30 RadioButton 83
CONCLUSIONES 85
CONCLUSIONS 85
REFERENCIAS / REFERENCES 86
INTRODUCCIÓN
Visual Basic (VB) es un lenguaje de programación dirigido por eventos, desarrollado por
Alan Cooper para Microsoft. Este lenguaje de programación es un dialecto de BASIC, con
importantes agregados. Su primera versión fue presentada en 1991, con la intención de
simplificar la programación utilizando un ambiente de desarrollo que facilitó en cierta medida
la programación misma.
La actividad que vamos a ejecutar en este trabajo es con la finalidad de identificar las
herramientas que visual studio ofrece, así como entender las propiedades de cada una y
reconocer el IDE de programación, al final de este trabajo se entregarán 12 ejercicios de
programación 4 por cada integrante del curso.
INTRODUCTION
Visual Basic (VB) is an event-driven programming language developed by Alan Cooper for
Microsoft. This programming language is a dialect of BASIC, with important aggregates. Its
first version was presented in 1991, with the intention of simplifying programming using a
development environment that facilitated to a certain extent the programming itself.
The activity that we are going to execute in this work is with the purpose of identifying the
tools that the visual study offers, as well as the properties of each one, and the recognition of
the IDE of programming, at the end of this work, 12 exercises of programming 4 for each
member of the course.
OBJETIVOS
OBJECTIVES
1. ColorDialog
Representa un cuadro de diálogo común que muestra los colores disponibles junto con los
controles que permiten al usuario definir colores personalizados.
La propiedad principal del control ColorDialog es Color , que devuelve un objeto Color .
Propiedad Descripción
Los siguientes son algunos de los métodos más utilizados del control ColorDialog:
2. FontDialog
Indica al usuario que elija una fuente entre las instaladas en el equipo local y le permite al
usuario seleccionar la fuente, el tamaño de la fuente y el color.
Funcionalidad: Devuelve los objetos Fuente y Color.
A continuación, se muestra el cuadro de diálogo Fuente:
Propiedad Descripción
3. OpenFileDialog
Indica al usuario que abra un archivo y permita al usuario seleccionar un archivo para abrirlo.
Funcionalidad: El control OpenFileDialog solicita al usuario que abra un archivo y permita
al usuario seleccionar un archivo para abrirlo. El usuario puede comprobar si el archivo
existe y luego abrirlo. La clase de control OpenFileDialog hereda de la clase abstracta
FileDialog .
Propiedad Descripción
4. SaveFileDialog
Funcionalidad: Indica al usuario que seleccione una ubicación para guardar un archivo y le
permite al usuario especificar el nombre del archivo para guardar los datos.
El control SaveFileDialog solicita al usuario que seleccione una ubicación para guardar un
archivo y permite al usuario especificar el nombre del archivo para guardar datos. La clase
de control SaveFileDialog hereda de la clase abstracta FileDialog.
Propiedad Descripción
1 AddExtension Obtiene o establece un valor que indica si el
cuadro de diálogo agrega automáticamente una
extensión a un nombre de archivo si el usuario
omite la extensión.
2 Reset Restablece todas las opciones del cuadro de diálogo a sus valores
predeterminados.
5. PrintDialog
Propiedad Descripción
Funcionalidad: El contenedor para todos los controles que componen la interfaz de usuario.
La creación de una aplicación de formularios de ventana siguiendo los pasos siguientes en
Microsoft Visual File -> New Project -> Windows Forms Applications
Visual Basic Form es el contenedor para todos los controles que forman la interfaz de
usuario. Cada ventana que ves en una aplicación visual básica es un formulario, por lo que
los términos forma y ventana describen la misma entidad. Visual Studio crea un formulario
predeterminado cuando crea una aplicación Windows Forms .
Cada formulario tendrá barra de título en la que se mostrará el título del formulario y habrá
botones para cerrar, maximizar y minimizar el formulario que se muestra a continuación:
Si hace clic en el icono en la esquina superior izquierda, se abre el menú de control, que
contiene los diversos comandos para controlar el formulario como mover el control de un
lugar a otro, maximizar o minimizar el formulario o cerrar el formulario.
Propiedad Descripción
Los controles del Text box permiten introducir texto en un formulario en tiempo de
ejecución. De forma predeterminada, toma una sola línea de texto, sin embargo, puede hacer
que acepte varios textos e incluso añadir barras de desplazamiento.
Vamos a crear un cuadro de texto arrastrando un control de cuadro de texto desde el cuadro
de herramientas y dejarlo en el formulario.
Propiedad Descripción
8. ScrollBar
9. DateTimePicker
Representa un control de Windows que permite al usuario seleccionar una fecha y una hora
y mostrar la fecha y hora con un formato especificado.
Propiedad Descripción
10. MenuStrip
Propiedad Descripción
Evento Descripción
11. ToolStripMenuItem
Propiedad Descripción
12. ContextMenuStrip
Este control asocia el menú contextual con otros elementos de menú estableciendo la
propiedad ContextMenuStrip de ese elemento de menú en el control ContextMenuStrip que
diseñó.
Los elementos del menú contextual también se pueden desactivar, ocultar o eliminar.
También puede mostrar un menú contextual con la ayuda del método Show del control
ContextMenuStrip.
Propiedad Descripción
13. Botón
botón.
14. Formulario
formulario.
Propiedad que define la fecha final o máxima que puede ser usada en
el calendario.
Propiedad que define la fecha mínima o inicial que puede ser usada en
el calendario.
calendario.
calendario.
calendario.
: Objeto caja de Texto.Crea una caja de texto para ser usada en el formulario.
Propiedad para definir un color de fondo en la caja de texto.
texto.
multilínea.
ingresar datos.
17. Chart
Propiedades:
estadisticas.
Colores personalizados que se pueden definir en el objeto de graficas
estadisticas.
sistema.
estadístico.
18. CheckBox
Propiedades:
maximizar el formulario.
19 Caja de Grupo
coordenadas.
y encogerse.
Sirve para definir una etiqueta la cual puede estar asociada al objeto.
Define color de fondo en el objeto caja de grupo
barra.
progreso.
21 Botón Guardar
Este botón permite guardar los avances del proyecto, se puede utilizar con el teclado
23 Adjuntar o Ejecutar
24 Marcar Comentario
Esta botón nos permite crear un comentario para unas líneas de código.
25 Label
Propiedades:
Text: Propiedad que define el texto del formulario.
BackColor: Propiedad para definir el color de fondo de formulario.
BackgroudImage: Propiedad que define si hay una imagen de fondo en el formulario.
Font: Propiedad para definir la fuente del formulario.
AllowDrop: Permite definir si un objeto puede ser arrojado o movido en el formulario.
Icon: Permite definir el icono principal del formulario.
ShowIcon:Permite definir si el icono en el formulario principal se muestra o no.
Size:Propiedad que define el tamaño del formulario.
ImeMode: Propiedad para definir los métodos de entrada en el formulario.
Italic: Propiedad que permite habilitar la fuente itálica en el formulario
26 List View
Propiedades
Nombre Descripción
de Control).
AccessibleName Obtiene o establece el nombre del control que las aplicaciones cliente
de Control).
Activation Obtiene o establece el tipo de acción que el usuario debe llevar a cabo
AllowDrop Obtiene o establece un valor que indica si el control puede aceptar los
Anchor Obtiene o establece los bordes del contenedor al que está enlazado un
automáticamente.
en ScrollControlIntoView.(Heredado de Control).
27 CheckedList Box
Muestra una lista de elementos con una casilla a la izquierda de cada elemento
Propiedades:
Nombre Descripción
28 WebBrowser
Propiedades:
Nombre Descripción
29 MonthCalendar
Propiedades
Nombre Descripcion
AccessibleNam Obtiene o establece el nombre del control utilizado por las aplicaciones
e cliente de accesibilidad. (Heredado de Control).
AllowDrop Obtiene o establece un valor que indica si el control puede aceptar datos
que el usuario arrastra sobre él (Heredado de Control).
Anchor Obtiene o establece los bordes del contenedor al que está vinculado un
control y determina cómo se redimensiona un control con su elemento
primario. (Heredado de Control)
AnnuallyBolded Obtiene o establece la matriz de objetos DateTime que determina qué días
Dates anuales se muestran en negrita.
AutoSize Esta API admite la infraestructura del producto y no está destinada a ser
utilizada directamente desde su código. Esta propiedad no es relevante
para esta clase. (Heredado de Control).
30 RadioButton
Permite al usuario seleccionar una única opción de entre un grupo de opciones cuando están
emparejadas en otros RadioButtons
Propiedades
Descripción
Nombre
BackColor Obtiene o establece el color de fondo del control del servidor web.
(Heredado de WebControl).
BindingContain Esta API admite la infraestructura del producto y no está destinada a ser
er utilizada directamente desde su código. Obtiene el control que contiene el
enlace de datos de este control. (Heredado de Control).
BorderColor Obtiene o establece el color del borde del control web. (Heredado de
WebControl)
BorderStyle Obtiene o establece el estilo de borde del control del servidor web.
(Heredado de WebControl).
BorderWidth Obtiene o establece el ancho del borde del control del servidor web.
(Heredado de WebControl).
Page Obtiene una referencia a la instancia de página que contiene el control del
servidor. (Heredado de Control).
TOOLS
1 ColorDialog
It represents a common dialog box showing the colors available along with the controls that
allow the user to define custom colors.
The main property of the ColorDialog control is Color, which returns a Color object.
Properties Description
The following are some of the most commonly used methods of the ColorDialog control:
The font dialog box is as follows: By default, the ComboBox of color is not displayed in the
font dialog box. It is necessary to configure the ShowColor property of the FontDialog
control be true.
Properties of the FontDialog Control, the following are some of the properties of common
use of FontDialog control:
Properties Description
3 OpenFileDialog
Instructs the user to open a file and allows the user to select a file to open it.
Functionality : The OpenFileDialog control prompts the user to open a file and allows the
user to select a file to open it. The user can check if the file exists and then open it. The
OpenFileDialog control class inherits from the abstract class FileDialog .
Property Description
1 OpenFile Opens the file selected by the user with read-only permission. The
file specified by the FileName property.
Functionality: Instructs the user to select a location to save a file and allows the user to
specify the name of the file to save the data.
SaveFileDialog control prompts the user to select a location to save a file and allows the
user to specify the name of the file to save data. The SaveFileDialog control class inherits
from the abstract class FileDialog.
Property Description
Functionality: Allows the user to print documents by selecting a printer and choose which
sections of the paper print from a Windows Application Forms.
The PrintDialog control allows the user to print documents by selecting a printer and choose
which sections of the document to print from a Windows Forms application.
There are several other controls related to the printing of documents. Let's briefly these
controls and its purpose. The other controls are:
● PrintDocument control - provides support for Visual Basic printing operations and
actual events and set the properties for printing.
● Control PrinterSettings - is used to set how to print a document specifying the printer.
● The PageSetUpDialog control: allows the user to specify print settings related to the
page, such as the orientation of the page, the size of the paper and margin size.
Property Description
6 Forms
Functionality: The container for all the controls that make up the user interface.
The creation of a window Forms application following the following steps in Microsoft
Visual File - > New Project - > Windows Forms Applications
Initially, select OK, Microsoft Visual Studio creates your project and displays the following
window Form named Form1 .
Visual Basic Form is the container for all the controls that make up the user interface. Each
window you see in a visual basic application is a form, so the terms form and window
describes the same entity. Visual Studio creates a default form when you create an Windows
Forms application .
Each form will have title bar in which the title of the form will be shown and there will be
buttons to close, maximize and minimize the form displayed below:
If you click the icon in the upper left corner, opens the control menu, which contains various
commands to control the form to move the control from one place to another, maximize or
minimize the form and close the form.
Property Description
●
F:System.Windows.Forms.Border
Style.Fixed3D : Window with a
visible border, "elevated" in relation
to the main area. In this case,
windows cannot change size.
●
F:System.Windows.Forms.Border
Style.FixedSingle : A window with
a single line border.
●
F:System.Windows.Forms.FormB
orderStyle.FixedToolWindow : A
window with a button close only.
Looks like the toolbar displayed by
drawing and image applications.
● SizableToolWindow : Same as
F:System.Windows.Forms.FormBor
derStyle.FixedToolWindow but
resizable. In addition, the source of
legend is smaller than the usual.
The controls of the Text box allow you to enter text in a form at run time. By default, takes a
single line of text, however, may make it accept several texts and even add scroll bars.
We are going to create a text box by dragging a text box control from the Toolbox and leave
it on the form.
Property Description
5 Paste Replaces the current selection in the text box with the contents of the
Clipboard .
6 Paste (String) Sets the selected text in the specified text without deleting the
buffer undo.
8 ScrollBar
The ScrollBar controls display vertical and horizontal scroll bars on the form. This is used to
navigate through large amounts of information. There are two types of scroll bar controls:
HScrollBar for horizontal scrolling and VScrollBar bars for vertical scroll bars. These are
used independently each other.
We click on control HScrollBar and VScrollBar control from the Toolbox and place them on
the form.
9 DateTimePicker
Represents a Windows control that allows the user to select a date and a time and show the
date and time in a specified format.
Functionality : The DateTimePicker control allows you to select a date and time by editing
the values displayed in the control. If you click the arrow in the DateTimePicker control
displays a calendar month, such as a combo box control. The user can make the selection by
clicking on the required date. The new selected value appears at the text box of the control.
10 MenuStrip
It provides a system of menus for a form. The MenuStrip control represents the container
for the menu structure.
Functionality : The MenuStrip control functions as the top-level menu structure for
container. The T:System.Windows.Forms.ToolStripMenuItem class and the
T:System.Windows.Forms.ToolStripDropDownMenu class provide the functionality to
create menu items, submenus, and drop-down menus.
The following diagram shows the addition of a MenuStrip control on the form:
Property Description
Event Description
11 T:System.Windows.Forms.ToolStripMenuItem
Property Description
12 ContextMenuStrip
This control associated with the context menu with other menu items by setting the
ContextMenuStrip property of that menu item to the
T:System.Windows.Forms.ContextMenuStrip control designed.
The contextual menu items can also be disable, hide or delete. You can also display a
shortcut menu with the help of the Show method of the
T:System.Windows.Forms.ContextMenuStrip control.
13 button
button.
Property size source, allows you to define the size to source a button.
14 form
image.
Property that allows you to enable the italic font in the form.
15 calendar
A property that defines the final or maximum date that can be used in
the calendar.
A property that defines the minimum or initial date that can be used in
the calendar.
Property that defines whether today is displayed when you choose the
calendar.
Attribute that defines the number of days that can be selected in the
calendar.
calendar object.
16 text box
the user.
It allows that the words inside the box are reorganized to multiline.
It allows to transform the characters to uppercase or not at the time of
entering data.
Defines whether the object runs validation at the time when there is
17 Chart
Properties:
object.
system default.
Properties:
19 group box
Set the size mode if you are only going to be to grow or if it is to grow
and shrink.
Defines the behavior of the object when a user clicks on or passing the
The type of mouse cursor showing when passing the mouse over the
object
A style that defines how blocks progress in the bar are displayed.
Defines the maximum and minimum values when the progress bar
starts.
Defines the maximum value with which the progress bar works.
Specifies the minimum value with which the progress bar works.
21 save button
This button allows you to save the progress of the project, it can be used with the keyboard
23 attach or run
24 mark comment
25 Label
Properties:
Text: Property that defines the text on the form.
BackColor: Property to set the background color of form.
BackgroudImage: Property defined if there is a background on the form image.
Font: Property to define the source of the form.
P:System.Windows.Forms.control.AllowDrop: It allows to define if an object can be thrown
or moved in the form.
Icon: Defines the main icon of the form.
ShowIcon: Defines if the icon on the main form is displayed or not.
A size:Propiedad that defines the size of the form.
ImeMode: Property to define the methods of entry into the form.
Italic: Property that allows you to enable the italic form font
26 List View
Properties
Name Description
control.
Control ).
organized automatically.
) Control ).
(Overrides ) Control.BackColor ).
27 CheckedList Box
Displays a list of items with a check box to the left of each item
Properties:
Name Description
AccessibleDefaultActionDescription Accessibility client sets the description of the
default action of the control that use the
applications or gets. (Inherited from Control )).
28 WebBrowser
Properties:
Name Description
29 MonthCalendar
Properties
Name Description
30 RadioButton
Allows the user to select a single option from a group of choices when paired in other
RadioButtons
Properties
Description
Name
AccessKey Gets or sets the access key that allows you to navigate quickly
to the web server control. (Inherited from WebControl).
Adapter Gets the specific adapter of the browser control. (Inherited from
Control)
BackColor Gets or sets the background color of the web server control.
(Inherited from WebControl).
P:System.Web.UI.contro This API supports the infrastructure of the product and is not
l.BindingContainer intended to be used directly from your code. Gets the control
that contains this control's data binding. (Inherited from
Control).
BorderColor Gets or sets the color of the edge of the web. (Inherited from
WebControl)
BorderStyle Gets or sets the border style of the web server control.
(Inherited from WebControl).
BorderWidth Gets or sets the width of the edge of the web server control.
(Inherited from WebControl).
Page Gets a reference to the instance of the page that contains the
server control. (Inherited from Control).
CONCLUSIONES
Sus usos para fines administrativos y contables para pequeñas y medianas empresas, lo hacen
ser uno de los mejores en esa materia.
CONCLUSIONS
Visual Basic, is a very complete programming language for the use of forms and
management with databases, it is very clear and has very good help in Spanish.
Its uses for administrative and accounting purposes for small and medium enterprises, make it
one of the best in that area.
It is a hybrid programming language, that is, formed by code and insertable objects in the
forms, and it is of a high level, that is, it is expressed in a dialogue similar to that used by
people. It handles the entire Windows environment with great ease.
Each of the tools and their respective properties, facilitate the programming of applications in
visual basic, however it is important to know its applicability, since also entering a property
incorrectly will generate errors in our application.
REFERENCIAS / REFERENCES