Modelo jerarjico

Páginas: 17 (4160 palabras) Publicado: 20 de agosto de 2012
Este tutorial te mostrará cómo hacer una calculadora básica:
Open Visual Basic 2008 Express Edition. (If you don't have the program click here to download it for free.) Abra Visual Basic 2008 Express Edition
Click on Project next to Create: Haga clic en proyecto junto a Crear:

Click on Windows Form Application, and name the project "Your name's Calculator" and then click Ok. Haga clic enAplicación de Windows Forms, y el nombre del proyecto "Calculadora mas tu nombre" y luego haga clic en Aceptar.

You can change the form text to "your name's calculator". You also need to disable the maximize control of the form. También es necesario deshabilitar el control máximo de la forma. That's because you don't want the user to maximize the calculator. Eso es porque usted no deberá verselimitado para maximizar la calculadora. Go to the properties window, and change the maximize box property to False: Ir a la ventana de propiedades, y cambiar la propiedad de cuadro de maximizar en False:

You also need to change the FormBorderStyle property to Fixed3D También es necesario cambiar la propiedad FormBorderStyle Fixed3D

Add a button to the form and place on top of the form:Agregar un botón a la forma y lugar en la parte superior de la forma:

You might be surprised of this button because we should have placed a textbox instead. Puede que se sorprenda de este botón, porque deberíamos haber colocado un cuadro de texto en su lugar. Well, this is the cool thing about Visual Basic 2008, you can use a button to display text and results. Bueno, esto es lo bueno de VisualBasic 2010, puede utilizar un botón para mostrar el texto y los resultados.
Now we have to change the button properties to look like a text box. Ahora tenemos que cambiar las propiedades de un botón para que parezca un cuadro de texto.
First we change it's text to "0.". En primer lugar, cambiar su texto a "0"..

We align the text to be on the right. Nos alineamos el texto a la derecha.Right click on the button, click on properties. Seleccionamos el botón con, haga clic en Propiedades. In the properties window change TextAlign to MiddleRight: En la ventana de propiedades cambiamos a TextAlign MiddleRight:

Choose the box in the middle right (the blue one in the image above) Seleccione la casilla en la parte central derecha (el azul en la imagen superior)
Change the flat styleof the button. Cambiar el estilo plano del botón. In the properties window change flat style to Flat: En la ventana de propiedades cambiar el flat style a flat :

You also need to change the color of the button. También es necesario cambiar el color del botón. Go to the properties window and change the backcolor property to white: Ir a la ventana de propiedades y cambiar la propiedad BackColoren blanco:

There is two more properties you need to change: TabStop to False and Enabled to False. Hay dos propiedades más que usted necesita para cambiar: TabStop en False y Enabled en false.

Your button should look like this now: El botón debe ser similar a esto ahora:

If anything doesn't work please comment on page 5

Let's add the rest of the buttons to the form. Vamos a añadirel resto de los botones en el formulario.
Important: please add the button in the same order exactly as shown below. Importante: por favor, agregar los botones en el mismo orden tal y como se muestra a continuación.

Add four buttons. Agregue cuatro botones. Start by adding the button on the left (1) then (2) then (3) then (4) Comience por agregar el botón de la izquierda (1) y (2) y (3) acontinuación (4)
Change the text of the four buttons to 7 , 8, 9, / as shown above. Cambiar el texto de los cuatro botones a 7, 8, 9, / como se muestra arriba.
Add four more buttons and change their text to 4, 5, 6, * Añadir cuatro botones más y cambiar su texto a 4, 5, 6, *
Remember to start adding the buttons in order as the following image: Recuerde que debe empezar a añadir los botones en...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Mapa Jerárjico Y Análisis Foda
  • red jerarjica
  • LOS MODELOS DE LOS MODELOS
  • Modelo
  • Modelo
  • Modelado
  • Modelamiento
  • Modelos

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS