Mostrando entradas con la etiqueta Programacion. Mostrar todas las entradas
Mostrando entradas con la etiqueta Programacion. Mostrar todas las entradas

101 Microsoft Visual Basic .NET Applications

http://i100.photobucket.com/albums/m32/ganelon9/0cd76b96.jpg


Author(s): Sean Campbell, Scott Swigart, Bob Carver
Publisher: MS Press
Year: 2003
ISBN: 0735618917
Language: English
File type: CHM
Pages: 561
Size (for download): 9.2 MB

The 101 sample applications that make up this book contain code that answers many common questions a beginner-to-intermediate-level Microsoft Visual Basic .NET developer is faced with when building Microsoft .NET applications.

Each sample application was developed using a set of coding conventions (which you’ll find in this book), and each sample shares a common look and feel, as much as possible. Each sample also includes a readme.htm file that explains some basics of the application in case you’re reviewing a sample without having the book close at hand.


The samples in this book are ready to be run in either the Microsoft Visual Studio .NET 2002 or 2003 development environment. You can find the Visual Studio .NET 2003 files in Chapter folders within the \101VBApps folder; look inside the VS2002 folder within the \101VBApps folder for the Visual Studio .NET 2002 files.


Finally each application is designed to be “F5-able,” meaning that they should all run out of the box, without any special configuration. Any circumstances for which specific software or setup is needed is fully documented in the readme. The only general requirement is that you have Microsoft SQL Server installed either as a default instance or an instance installed with the name NETSDK. You can easily install a version of SQL Server by installing the version of MSDE that ships with the .NET Framework quickstarts.

Explore 101 of the most useful Visual Basic .NET applications in action—and jumpstart your own Microsoft .NET Framework-based development projects. This guide provides expert, behind-the-code commentary on 101 fully executable code samples—distilling more than 700 hours of programming time into best practices for Microsoft Windows Forms development. Each code sample demonstrates core features and functions of Visual Basic .NET and the .NET Framework, explains the underlying programming concepts, and provides a complete code walkthrough. From creating basic data entry forms to drilling deep into the .NET Framework, you’ll learn the techniques that Microsoft’s own developers use to write real-world applications with Visual Basic .NET.


TABLE OF CONTENT:
Chapter 01 - Working with Microsoft Visual Studio .NET 2003 and Microsoft .NET Framework 1.1
Chapter 02 - Working with the Microsoft Visual Basic .NET Language
Chapter 03 - Data Access
Chapter 04 - Building Windows Forms User Interfaces
Chapter 05 - Building Web Applications
Chapter 06 - Working with Console Applications
Chapter 07 - Interacting with the Operating System
Chapter 08 - Working with the .NET Framework
Chapter 09 - Advanced .NET Framework
Chapter 10 - GDI+
Chapter 11 - Building Enterprise Services Applications
Chapter 12 - COM Interop/PInvoke
Chapter 13 - Visual Studio .NET
Chapter 14 - Securing Applications
Chapter 15 - Coding Conventions
Chapter 16 - Windows Server 2003 for .NET Developers


Download:

http://rapidshare.com/files/29861001/101_vbnet_app.rar
password: ganelon

ListBox en Visual Basic .NET

The ListBox control displays a list of items from which we can make a selection. We can select one or more than one of the items from the list. The ListBox control is based on the ListControl class which is based on the Control class. The image below displays a ListBox.

ListBox

Notable Properties of the ListBox

In the Behavior Section

HorizontalScrollbar: Displays a horizontal scrollbar to the ListBox. Works when the ListBox has MultipleColumns.
MultiColumn: The default value is set to False. Set it to True if you want the list box to display multiple columns.
ScrollAlwaysVisible: Default value is set to False. Setting it to True will display both Vertical and Horizontal scrollbar always.
SelectionMode: Default value is set to one. Select option None if you do not any item to be selected. Select it to MultiSimple if you want multiple items to be selected. Setting it to MultiExtended allows you to select multiple items with the help of Shift, Control and arrow keys on the keyboard.
Sorted: Default value is set to False. Set it to True if you want the items displayed in the ListBox to be sorted by alphabetical order.

In the Data Section

Notable property in the Data section of the Properties window is the Items property. The Items property allows us to add the items we want to be displayed in the list box. Doing so is simple, click on the ellipses to open the String Collection Editor window and start entering what you want to be displayed in the ListBox. After entering the items click OK and doing that adds all the items to the ListBox.

ListBox Event

The default event of ListBox is the SelectedIndexChanged which looks like this in code:

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged

End Sub

Working with ListBoxes

Drag a TextBox and a ListBox control to the form and add some items to the ListBox with it's items property.

Referring to Items in the ListBox

Items in a ListBox are referred by index. When items are added to the ListBox they are assigned an index. The first item in the ListBox always has an index of 0 the next 1 and so on.

Code to display the index of an item

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
TextBox1.Text = ListBox1.SelectedIndex
'using the selected index property of the list box to select the index
End Sub

When you run the code and select an item from the ListBox, it's index is displayed in the textbox.

Counting the number of Items in a ListBox

Add a Button to the form and place the following code in it's click event.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e _
As System.EventArgs) Handles Button1.Click
TextBox1.Text = ListBox1.Items.Count
'counting the number of items in the ListBox with the Items.Count
End Sub

When you run the code and click the Button it will display the number of items available in the ListBox.

Code to display the item selected from ListBox in a TextBox

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object,_
ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
TextBox1.Text = ListBox1.SelectedItem
'using the selected item property
End Sub

When you run the code and click an item in the ListBox that item will be displayed in the TextBox.

Code to Remove items from a ListBox

You can remove all items or one particular item from the list box.

Code to remove a particular item

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e _
As System.EventArgs) Handles Button1.Click
ListBox1.Items.RemoveAt(4)
'removing an item by specifying it's index
End Sub

Code to Remove all items

Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
ListBox1.Items.Clear()
'using the clear method to clear the list box
End Sub
Fuente: http://www.startvbdotnet.com/controls/listbox.aspx

Manual imprescindible de PHP 5

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizM0snJzSM5kPWAALF1RjXVyy3YlBZJP44LeW50zlJ_sn38XYLtx67yi6cnpw6vMm9Z9-mPZD0Ef510XqUMu9OQ_gWK0zlLBn2EHy_73LHvFspPcaAF9OrYy4-ZtnO_BCTeJnf4beaRtSL/s320/Frontphp5.jpg

PHP es unos de los lenguajes de creación de páginas Web dinámicas más utilizados del mercado. La quinta versión cuenta con innumerables mejoras que consolidan su éxito. Se ofrece la posibilidad de hacer programas orientados a objetos, lectura de archivos XML de forma sencilla, utilización de la base de datos ligera SQLite o la implementación de servicios Web.

Este se diferencia en varias partes: La primera sección se centra en los fundamentos para el desarrollo de programas, la segunda parte muestra los avances que han surgido en PHP 5, como la programación orientada a objetos, la conexión con las bases de datos MySQL y SQLite, la lectura de archivos XML, el envío de correo electrónico o la utilización del protocolo FTP, y la última división, orientada a usuarios avanzados, cuenta con la descripción de técnicas actuales de desarrollo. Estos últimos capítulos incorporan librerías que ayudan a la implementación de archivos RSS, servicios Web XML-RPC, generación de gráficos y plantillas con Smarty.

En definitiva, este libro cubre los aspectos básicos que debe dominar el desarrollador para llegar a ser un experto en PHP. Sus veinte capítulos recorren desde los aspectos más sencillos del lenguaje hasta los métodos más complejos de programación. Todo bajo una curva de aprendizaje gradual que permite seguir los ejemplos y asimilar los conceptos rápidamente.

Titulo: Manual imprescindible de PHP 5

Autor: Luis Miguel Cabezas Granado

ISBN: 84-415-1785-1

Número de páginas: 384

Contenido del Libro:

  • Cómo Usar este libro
  • Prólogo
  • Introducción
  1. Introducción a PHP 5
  2. Variables, constantes y tipos de datos
  3. Operadores
  4. Estructuras de control
  5. Funciones
  6. Cadenas de caracteres y expresiones regulares
  7. Conjuntos de datos del tipo array
  8. Paso de información entre formularios
  9. Programación orientada a objetos
  10. Ficheros y almacenamiento de datos
  11. Bases de datos con SQL y SQLite
  12. PHP 5 y MySQL
  13. Sesiones y Cookies
  14. Lectura y escritura de archivos XML
  15. Aplicaciones prácticas de XML
  16. Generación de gráficos con PHP 5
  17. Gestión de errores en PHP 5
  18. Conexiones desde PHP 5
  19. Creación de archivos PDF
  20. Plantillas con Smarty
  • Apéndice A. Instalación de PHP 5 y MySQL
  • Apéndice B. Configuración de php.ini
  • Apéndice C. Bibliografía
Descarga