home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "Ejemplo de los eventos Load y Unload"
- ClientHeight = 2955
- ClientLeft = 1140
- ClientTop = 1515
- ClientWidth = 4980
- Height = 3360
- Left = 1080
- LinkTopic = "Form1"
- ScaleHeight = 2955
- ScaleWidth = 4980
- Top = 1170
- Width = 5100
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Form_Load()
- Form1.Left = (Screen.Width - Form1.Width) / 2
- Form1.Top = (Screen.Height - Form1.Height) / 2
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- If MsgBox("
- Desea salir?", vbOKCancel, "SALIDA") = vbCancel Then
- Cancel = True
- End If
- End Sub
-