SlideShare una empresa de Scribd logo
1 de 11
Creación de Barra de Menú y resguardo al ingreso de un Menú
VISUAL BASIC 6.0
03/06/2015MIGUEL ANGEL SIORDIA URZUA 1
CREANDO MENÚS CON VISUAL BASIC 6.0
• Para crear un menú, presiono el botón del editor de menús. Abajo viene una imagen de la
barra de menús de Visual Basic 6.0.
03/06/2015MIGUEL ANGEL SIORDIA URZUA 2
CREANDO MENÚS CON VISUAL BASIC 6.0
• Al presionar el botón del editor de menú, sale la siguiente ventana:
03/06/2015MIGUEL ANGEL SIORDIA URZUA 3
CREANDO MENÚS CON VISUAL BASIC 6.0
• Para empezar, el primer elemento en la barra de menú de esta aplicación va a tener un
elemento llamado "Mensajes". Para hacer esto, lleno la ventana como indica la figura:
• Una nota cultural: pongo el símbolo & adelante de la letra M de Mensajes para que
aparezca subrayado y responda cuando el usuario presione ALT+M. Si cierro esta
ventana, mi forma Form1 se ve así:
03/06/2015MIGUEL ANGEL SIORDIA URZUA 4
03/06/2015MIGUEL ANGEL SIORDIA URZUA 5
CREANDO MENÚS CON VISUAL BASIC 6.0
• Pero que pasa si quiero poner un menú adentro de mi menú "Mensajes". Vuelvo a abrir el
editor de menús, aprieto el botón Next para agregar otro elemento abajo del que ya
existe. Lo dejo con estos datos:
• Para indentar la opción Hola, presiono el botoncito que indenta (flecha a la derecha).
Después que tengo todo hecho y cierro el editor de menú, se ve mi forma así.
03/06/2015MIGUEL ANGEL SIORDIA URZUA 6
03/06/2015MIGUEL ANGEL SIORDIA URZUA 7
• Al darle click sobre la palabra "Hola", me aparece la ventana de código listo para
programar lo que sucederá cuando nuestro usuario valiente se atreva a seleccionar ese
botón:
• Voy a teclear código super sencillo que solo haga que aparezca una cajita que diga Hola,
se ve así:
03/06/2015MIGUEL ANGEL SIORDIA URZUA 8
COMO PROTEGER EL INGRESO A UN PROYECTO
• Solo basta con crear un formulario y poner unos elementos muy simples como se
muestra a continuación:
03/06/2015MIGUEL ANGEL SIORDIA URZUA 9
COMO PROTEGER EL INGRESO A UN PROYECTO
• En el botón de comando se ingresa el siguiente código:
Private Sub Command1_Click()
If Text1.Text = "miguel" Then
Load MDIForm1
loginsuccedede = Thue
Me.Hide
Else
MsgBox "Contraseña incorrecta!", , "login"
Text1.SetFocus
SendKeys "(homa)+(end)"
End If
MDIForm1.Show
Unload Form11
End Sub
03/06/2015MIGUEL ANGEL SIORDIA URZUA 10
COMO PROTEGER EL INGRESO A UN PROYECTO
• Con ese código al iniciar el proyecto en modo ejecución pedirá la contraseña asignada en
el código y del mismo modo al ingresar ira al formulario que se le indico en el mismo
código
03/06/2015MIGUEL ANGEL SIORDIA URZUA 11

Más contenido relacionado

La actualidad más candente

✅ Bài tập dựng hình Autocad 2D phần 2 - Nguyen Quang Thuan Youtube (PDF)
✅ Bài tập dựng hình Autocad 2D phần 2 - Nguyen Quang Thuan Youtube (PDF)✅ Bài tập dựng hình Autocad 2D phần 2 - Nguyen Quang Thuan Youtube (PDF)
✅ Bài tập dựng hình Autocad 2D phần 2 - Nguyen Quang Thuan Youtube (PDF)Thuận Nguyễn Quang
 
Thiết Kế Hệ Thống Dẫn Động Xích Tải (Full Bản Vẽ Autocad)
Thiết Kế Hệ Thống Dẫn Động Xích Tải (Full Bản Vẽ Autocad) Thiết Kế Hệ Thống Dẫn Động Xích Tải (Full Bản Vẽ Autocad)
Thiết Kế Hệ Thống Dẫn Động Xích Tải (Full Bản Vẽ Autocad) nataliej4
 
Sách Autocad Pro bản update 2015 2016-2017-2018
Sách Autocad Pro bản update 2015 2016-2017-2018Sách Autocad Pro bản update 2015 2016-2017-2018
Sách Autocad Pro bản update 2015 2016-2017-2018Kiến Trúc KISATO
 
Chapter 03-orthographic-projection by Zaryab Rid
Chapter 03-orthographic-projection by Zaryab RidChapter 03-orthographic-projection by Zaryab Rid
Chapter 03-orthographic-projection by Zaryab RidZaryab Rid
 
Engineering Drawing: Chapter 04 orthographic writing
Engineering Drawing: Chapter 04 orthographic writingEngineering Drawing: Chapter 04 orthographic writing
Engineering Drawing: Chapter 04 orthographic writingmokhtar
 
Tap 3: Điêu khắc và chỉnh sửa hình nổi jdpaint ( Demo)
Tap 3: Điêu khắc và chỉnh sửa hình nổi jdpaint ( Demo)Tap 3: Điêu khắc và chỉnh sửa hình nổi jdpaint ( Demo)
Tap 3: Điêu khắc và chỉnh sửa hình nổi jdpaint ( Demo)Trung tâm Advance Cad
 
Thiết kế mặt Solidworks 2017 (Surface)
Thiết kế mặt Solidworks 2017 (Surface)Thiết kế mặt Solidworks 2017 (Surface)
Thiết kế mặt Solidworks 2017 (Surface)Technical VN
 
Us 3 d grafika i animacija
Us   3 d grafika i animacijaUs   3 d grafika i animacija
Us 3 d grafika i animacijaMarija Starcevic
 
Reglas de juego badminton
Reglas de juego badmintonReglas de juego badminton
Reglas de juego badmintonssaucesc
 
Hướng dẫn phân tích mô phỏng solidworks (demo)
Hướng dẫn phân tích mô phỏng solidworks (demo)Hướng dẫn phân tích mô phỏng solidworks (demo)
Hướng dẫn phân tích mô phỏng solidworks (demo)Trung tâm Advance Cad
 
Civil 3 d overview general
Civil 3 d overview generalCivil 3 d overview general
Civil 3 d overview generalKushal Patel
 
Bai 1. khai niem chung ve ren vuong
Bai 1. khai niem chung ve ren vuongBai 1. khai niem chung ve ren vuong
Bai 1. khai niem chung ve ren vuongckm2001
 
Giáo trình mô phỏng phân tích lực trên Autodesk Inventor
Giáo trình mô phỏng phân tích lực trên Autodesk InventorGiáo trình mô phỏng phân tích lực trên Autodesk Inventor
Giáo trình mô phỏng phân tích lực trên Autodesk InventorTrung tâm Advance Cad
 

La actualidad más candente (20)

✅ Bài tập dựng hình Autocad 2D phần 2 - Nguyen Quang Thuan Youtube (PDF)
✅ Bài tập dựng hình Autocad 2D phần 2 - Nguyen Quang Thuan Youtube (PDF)✅ Bài tập dựng hình Autocad 2D phần 2 - Nguyen Quang Thuan Youtube (PDF)
✅ Bài tập dựng hình Autocad 2D phần 2 - Nguyen Quang Thuan Youtube (PDF)
 
Thiết Kế Hệ Thống Dẫn Động Xích Tải (Full Bản Vẽ Autocad)
Thiết Kế Hệ Thống Dẫn Động Xích Tải (Full Bản Vẽ Autocad) Thiết Kế Hệ Thống Dẫn Động Xích Tải (Full Bản Vẽ Autocad)
Thiết Kế Hệ Thống Dẫn Động Xích Tải (Full Bản Vẽ Autocad)
 
Giáo trình Revit Architecture cơ bản
Giáo trình Revit Architecture cơ bảnGiáo trình Revit Architecture cơ bản
Giáo trình Revit Architecture cơ bản
 
Thiết kế Catia V5-6 R2017 nâng cao
Thiết kế Catia V5-6 R2017  nâng caoThiết kế Catia V5-6 R2017  nâng cao
Thiết kế Catia V5-6 R2017 nâng cao
 
Sách Autocad Pro bản update 2015 2016-2017-2018
Sách Autocad Pro bản update 2015 2016-2017-2018Sách Autocad Pro bản update 2015 2016-2017-2018
Sách Autocad Pro bản update 2015 2016-2017-2018
 
Chapter 03-orthographic-projection by Zaryab Rid
Chapter 03-orthographic-projection by Zaryab RidChapter 03-orthographic-projection by Zaryab Rid
Chapter 03-orthographic-projection by Zaryab Rid
 
Engineering Drawing: Chapter 04 orthographic writing
Engineering Drawing: Chapter 04 orthographic writingEngineering Drawing: Chapter 04 orthographic writing
Engineering Drawing: Chapter 04 orthographic writing
 
Tap 3: Điêu khắc và chỉnh sửa hình nổi jdpaint ( Demo)
Tap 3: Điêu khắc và chỉnh sửa hình nổi jdpaint ( Demo)Tap 3: Điêu khắc và chỉnh sửa hình nổi jdpaint ( Demo)
Tap 3: Điêu khắc và chỉnh sửa hình nổi jdpaint ( Demo)
 
Lap rap inventor
Lap rap inventorLap rap inventor
Lap rap inventor
 
Thiết kế mặt Solidworks 2017 (Surface)
Thiết kế mặt Solidworks 2017 (Surface)Thiết kế mặt Solidworks 2017 (Surface)
Thiết kế mặt Solidworks 2017 (Surface)
 
Exploded Views
Exploded ViewsExploded Views
Exploded Views
 
Us 3 d grafika i animacija
Us   3 d grafika i animacijaUs   3 d grafika i animacija
Us 3 d grafika i animacija
 
Reglas de juego badminton
Reglas de juego badmintonReglas de juego badminton
Reglas de juego badminton
 
Hướng dẫn phân tích mô phỏng solidworks (demo)
Hướng dẫn phân tích mô phỏng solidworks (demo)Hướng dẫn phân tích mô phỏng solidworks (demo)
Hướng dẫn phân tích mô phỏng solidworks (demo)
 
Civil 3 d overview general
Civil 3 d overview generalCivil 3 d overview general
Civil 3 d overview general
 
Sketchup modul
Sketchup modulSketchup modul
Sketchup modul
 
Bai 1. khai niem chung ve ren vuong
Bai 1. khai niem chung ve ren vuongBai 1. khai niem chung ve ren vuong
Bai 1. khai niem chung ve ren vuong
 
Google sketch up tutorial
Google sketch up tutorialGoogle sketch up tutorial
Google sketch up tutorial
 
Giáo trình mô phỏng phân tích lực trên Autodesk Inventor
Giáo trình mô phỏng phân tích lực trên Autodesk InventorGiáo trình mô phỏng phân tích lực trên Autodesk Inventor
Giáo trình mô phỏng phân tích lực trên Autodesk Inventor
 
Thuc hanh tien
Thuc hanh tienThuc hanh tien
Thuc hanh tien
 

Similar a Visual basic 6.0

procedimiento para crear una barra de menu, resguardar y programa que inviert...
procedimiento para crear una barra de menu, resguardar y programa que inviert...procedimiento para crear una barra de menu, resguardar y programa que inviert...
procedimiento para crear una barra de menu, resguardar y programa que inviert...RochaJaqueline
 
Manual de usuario
Manual de usuarioManual de usuario
Manual de usuarioSoledad0
 
Manual de Usuario
Manual de UsuarioManual de Usuario
Manual de UsuarioSoledad0
 
Access 2010 1
Access 2010 1Access 2010 1
Access 2010 1camilo802
 
Como puede manejar el power point
Como puede  manejar el power pointComo puede  manejar el power point
Como puede manejar el power pointyonaelo
 
Como puede manejar el power point
Como puede  manejar el power pointComo puede  manejar el power point
Como puede manejar el power pointyonaelo
 
Aplicación 1 EN ANDROID AUTOR JORGE KAMELL YASPE
Aplicación 1 EN ANDROID AUTOR JORGE KAMELL YASPE Aplicación 1 EN ANDROID AUTOR JORGE KAMELL YASPE
Aplicación 1 EN ANDROID AUTOR JORGE KAMELL YASPE jorge kamell
 
Colegio nicolas esguerra
Colegio nicolas esguerraColegio nicolas esguerra
Colegio nicolas esguerrahomero simson
 
Easy Help
Easy HelpEasy Help
Easy Helpsena
 
Power point maryuris
Power point maryurisPower point maryuris
Power point maryurisMARYORYZAMORA
 
Ticecyte ejercicio 5 - google slides
Ticecyte ejercicio 5 - google slidesTicecyte ejercicio 5 - google slides
Ticecyte ejercicio 5 - google slideslucy pech quiab
 
Tutorial Excel 2013 crear examen tipo Auto evaluación prof. Carlos Montiel IPN
Tutorial Excel 2013 crear examen tipo Auto evaluación prof. Carlos Montiel IPNTutorial Excel 2013 crear examen tipo Auto evaluación prof. Carlos Montiel IPN
Tutorial Excel 2013 crear examen tipo Auto evaluación prof. Carlos Montiel IPNCECYT Num. 6, Miguel Othon de Mendizabal
 
Trabajo de programacíon básica
Trabajo de programacíon básicaTrabajo de programacíon básica
Trabajo de programacíon básicauniversidad
 

Similar a Visual basic 6.0 (20)

procedimiento para crear una barra de menu, resguardar y programa que inviert...
procedimiento para crear una barra de menu, resguardar y programa que inviert...procedimiento para crear una barra de menu, resguardar y programa que inviert...
procedimiento para crear una barra de menu, resguardar y programa que inviert...
 
Manual de usuario
Manual de usuarioManual de usuario
Manual de usuario
 
Manual de Usuario
Manual de UsuarioManual de Usuario
Manual de Usuario
 
Access 2010 1
Access 2010 1Access 2010 1
Access 2010 1
 
Como puede manejar el power point
Como puede  manejar el power pointComo puede  manejar el power point
Como puede manejar el power point
 
Como puede manejar el power point
Como puede  manejar el power pointComo puede  manejar el power point
Como puede manejar el power point
 
Aplicación 1 EN ANDROID AUTOR JORGE KAMELL YASPE
Aplicación 1 EN ANDROID AUTOR JORGE KAMELL YASPE Aplicación 1 EN ANDROID AUTOR JORGE KAMELL YASPE
Aplicación 1 EN ANDROID AUTOR JORGE KAMELL YASPE
 
Colegio nicolas esguerra
Colegio nicolas esguerraColegio nicolas esguerra
Colegio nicolas esguerra
 
Unidad II.
Unidad II. Unidad II.
Unidad II.
 
Manual power point
Manual power pointManual power point
Manual power point
 
Curso aulaclic
Curso aulaclicCurso aulaclic
Curso aulaclic
 
Easy Help
Easy HelpEasy Help
Easy Help
 
Power point maryuris
Power point maryurisPower point maryuris
Power point maryuris
 
Ticecyte ejercicio 5 - google slides
Ticecyte ejercicio 5 - google slidesTicecyte ejercicio 5 - google slides
Ticecyte ejercicio 5 - google slides
 
Manual de practicas (informática)
Manual de practicas (informática)Manual de practicas (informática)
Manual de practicas (informática)
 
Manual de practicas (informática)
Manual de practicas (informática)Manual de practicas (informática)
Manual de practicas (informática)
 
Tutorial Excel 2013 crear examen tipo Auto evaluación prof. Carlos Montiel IPN
Tutorial Excel 2013 crear examen tipo Auto evaluación prof. Carlos Montiel IPNTutorial Excel 2013 crear examen tipo Auto evaluación prof. Carlos Montiel IPN
Tutorial Excel 2013 crear examen tipo Auto evaluación prof. Carlos Montiel IPN
 
Power Point
Power PointPower Point
Power Point
 
Power Point
Power PointPower Point
Power Point
 
Trabajo de programacíon básica
Trabajo de programacíon básicaTrabajo de programacíon básica
Trabajo de programacíon básica
 

Último

MEDIDAS PREVENTIVAS PARA EVITAR SER VICTIMA DE EXTORISIÓN.pptx
MEDIDAS PREVENTIVAS PARA EVITAR SER VICTIMA DE EXTORISIÓN.pptxMEDIDAS PREVENTIVAS PARA EVITAR SER VICTIMA DE EXTORISIÓN.pptx
MEDIDAS PREVENTIVAS PARA EVITAR SER VICTIMA DE EXTORISIÓN.pptxrobertoplazamayorga
 
Act#3.2_Investigación_Bibliográfica_Comunicación_Equipo.pdf
Act#3.2_Investigación_Bibliográfica_Comunicación_Equipo.pdfAct#3.2_Investigación_Bibliográfica_Comunicación_Equipo.pdf
Act#3.2_Investigación_Bibliográfica_Comunicación_Equipo.pdfXimenaGonzlez95
 
PRESENTACION EN SST, plan de trabajo del sistema de seguridad y salud en el t...
PRESENTACION EN SST, plan de trabajo del sistema de seguridad y salud en el t...PRESENTACION EN SST, plan de trabajo del sistema de seguridad y salud en el t...
PRESENTACION EN SST, plan de trabajo del sistema de seguridad y salud en el t...angierangel29072017
 
Alexander Rubilar, Enzo Tapia - eCommerce Day Chile 2024
Alexander Rubilar, Enzo Tapia - eCommerce Day Chile 2024Alexander Rubilar, Enzo Tapia - eCommerce Day Chile 2024
Alexander Rubilar, Enzo Tapia - eCommerce Day Chile 2024eCommerce Institute
 
Presupuesto por Resultados de Seguridad Ciudadana .pptx
Presupuesto por Resultados de Seguridad Ciudadana .pptxPresupuesto por Resultados de Seguridad Ciudadana .pptx
Presupuesto por Resultados de Seguridad Ciudadana .pptxhugogabrielac1
 
Suiwen He - eCommerce Day Chile 2024
Suiwen He  -  eCommerce  Day  Chile 2024Suiwen He  -  eCommerce  Day  Chile 2024
Suiwen He - eCommerce Day Chile 2024eCommerce Institute
 
Mercedes Tomas, Florencia Bianchini - eCommerce Day Chile 2024
Mercedes Tomas, Florencia Bianchini - eCommerce Day Chile 2024Mercedes Tomas, Florencia Bianchini - eCommerce Day Chile 2024
Mercedes Tomas, Florencia Bianchini - eCommerce Day Chile 2024eCommerce Institute
 
José Ignacio Calle, Nathalie Jacobs - eCommerce Day Chile 2024
José Ignacio Calle, Nathalie Jacobs - eCommerce Day Chile 2024José Ignacio Calle, Nathalie Jacobs - eCommerce Day Chile 2024
José Ignacio Calle, Nathalie Jacobs - eCommerce Day Chile 2024eCommerce Institute
 
Enrique Amarista Graterol - eCommerce Day Chile 2024
Enrique Amarista Graterol - eCommerce Day Chile 2024Enrique Amarista Graterol - eCommerce Day Chile 2024
Enrique Amarista Graterol - eCommerce Day Chile 2024eCommerce Institute
 
Nicolás von Graevenitz, Rodrigo Guajardo, Fabián Müller, Alberto Banano Pardo...
Nicolás von Graevenitz, Rodrigo Guajardo, Fabián Müller, Alberto Banano Pardo...Nicolás von Graevenitz, Rodrigo Guajardo, Fabián Müller, Alberto Banano Pardo...
Nicolás von Graevenitz, Rodrigo Guajardo, Fabián Müller, Alberto Banano Pardo...eCommerce Institute
 
CURSO DE INICIACIÓN Á ASTRONOMÍA: O noso lugar no universo
CURSO DE INICIACIÓN Á ASTRONOMÍA: O noso lugar no universoCURSO DE INICIACIÓN Á ASTRONOMÍA: O noso lugar no universo
CURSO DE INICIACIÓN Á ASTRONOMÍA: O noso lugar no universoanoiteenecesaria
 
Felipe González - eCommerce Day Chile 2024
Felipe González - eCommerce Day Chile 2024Felipe González - eCommerce Day Chile 2024
Felipe González - eCommerce Day Chile 2024eCommerce Institute
 
Guiaparacrearslideshareticsvirtual2024abril
Guiaparacrearslideshareticsvirtual2024abrilGuiaparacrearslideshareticsvirtual2024abril
Guiaparacrearslideshareticsvirtual2024abriljulianagomezm2
 
CURSO DE INICIACIÓN Á ASTRONOMÍA Eclipses na Coruña
CURSO DE INICIACIÓN Á ASTRONOMÍA Eclipses na CoruñaCURSO DE INICIACIÓN Á ASTRONOMÍA Eclipses na Coruña
CURSO DE INICIACIÓN Á ASTRONOMÍA Eclipses na Coruñaanoiteenecesaria
 
Recolección de datos, metodología de la investigación
Recolección de datos, metodología de la investigaciónRecolección de datos, metodología de la investigación
Recolección de datos, metodología de la investigaciónRebecaUwU
 
Sebastián Iturriaga - eCommerce Day Chile 2024
Sebastián Iturriaga - eCommerce Day Chile 2024Sebastián Iturriaga - eCommerce Day Chile 2024
Sebastián Iturriaga - eCommerce Day Chile 2024eCommerce Institute
 
Francisco Irarrazaval, Marcos Pueyrredon - eCommerce Day Chile 2024
Francisco Irarrazaval, Marcos Pueyrredon - eCommerce Day Chile 2024Francisco Irarrazaval, Marcos Pueyrredon - eCommerce Day Chile 2024
Francisco Irarrazaval, Marcos Pueyrredon - eCommerce Day Chile 2024eCommerce Institute
 
Pablo Scasso - eCommerce Day Chile 2024
Pablo Scasso -  eCommerce Day Chile 2024Pablo Scasso -  eCommerce Day Chile 2024
Pablo Scasso - eCommerce Day Chile 2024eCommerce Institute
 

Último (19)

MEDIDAS PREVENTIVAS PARA EVITAR SER VICTIMA DE EXTORISIÓN.pptx
MEDIDAS PREVENTIVAS PARA EVITAR SER VICTIMA DE EXTORISIÓN.pptxMEDIDAS PREVENTIVAS PARA EVITAR SER VICTIMA DE EXTORISIÓN.pptx
MEDIDAS PREVENTIVAS PARA EVITAR SER VICTIMA DE EXTORISIÓN.pptx
 
Act#3.2_Investigación_Bibliográfica_Comunicación_Equipo.pdf
Act#3.2_Investigación_Bibliográfica_Comunicación_Equipo.pdfAct#3.2_Investigación_Bibliográfica_Comunicación_Equipo.pdf
Act#3.2_Investigación_Bibliográfica_Comunicación_Equipo.pdf
 
PRESENTACION EN SST, plan de trabajo del sistema de seguridad y salud en el t...
PRESENTACION EN SST, plan de trabajo del sistema de seguridad y salud en el t...PRESENTACION EN SST, plan de trabajo del sistema de seguridad y salud en el t...
PRESENTACION EN SST, plan de trabajo del sistema de seguridad y salud en el t...
 
Alexander Rubilar, Enzo Tapia - eCommerce Day Chile 2024
Alexander Rubilar, Enzo Tapia - eCommerce Day Chile 2024Alexander Rubilar, Enzo Tapia - eCommerce Day Chile 2024
Alexander Rubilar, Enzo Tapia - eCommerce Day Chile 2024
 
Presupuesto por Resultados de Seguridad Ciudadana .pptx
Presupuesto por Resultados de Seguridad Ciudadana .pptxPresupuesto por Resultados de Seguridad Ciudadana .pptx
Presupuesto por Resultados de Seguridad Ciudadana .pptx
 
Suiwen He - eCommerce Day Chile 2024
Suiwen He  -  eCommerce  Day  Chile 2024Suiwen He  -  eCommerce  Day  Chile 2024
Suiwen He - eCommerce Day Chile 2024
 
Mercedes Tomas, Florencia Bianchini - eCommerce Day Chile 2024
Mercedes Tomas, Florencia Bianchini - eCommerce Day Chile 2024Mercedes Tomas, Florencia Bianchini - eCommerce Day Chile 2024
Mercedes Tomas, Florencia Bianchini - eCommerce Day Chile 2024
 
José Ignacio Calle, Nathalie Jacobs - eCommerce Day Chile 2024
José Ignacio Calle, Nathalie Jacobs - eCommerce Day Chile 2024José Ignacio Calle, Nathalie Jacobs - eCommerce Day Chile 2024
José Ignacio Calle, Nathalie Jacobs - eCommerce Day Chile 2024
 
Enrique Amarista Graterol - eCommerce Day Chile 2024
Enrique Amarista Graterol - eCommerce Day Chile 2024Enrique Amarista Graterol - eCommerce Day Chile 2024
Enrique Amarista Graterol - eCommerce Day Chile 2024
 
Nicolás von Graevenitz, Rodrigo Guajardo, Fabián Müller, Alberto Banano Pardo...
Nicolás von Graevenitz, Rodrigo Guajardo, Fabián Müller, Alberto Banano Pardo...Nicolás von Graevenitz, Rodrigo Guajardo, Fabián Müller, Alberto Banano Pardo...
Nicolás von Graevenitz, Rodrigo Guajardo, Fabián Müller, Alberto Banano Pardo...
 
CURSO DE INICIACIÓN Á ASTRONOMÍA: O noso lugar no universo
CURSO DE INICIACIÓN Á ASTRONOMÍA: O noso lugar no universoCURSO DE INICIACIÓN Á ASTRONOMÍA: O noso lugar no universo
CURSO DE INICIACIÓN Á ASTRONOMÍA: O noso lugar no universo
 
Felipe González - eCommerce Day Chile 2024
Felipe González - eCommerce Day Chile 2024Felipe González - eCommerce Day Chile 2024
Felipe González - eCommerce Day Chile 2024
 
Guiaparacrearslideshareticsvirtual2024abril
Guiaparacrearslideshareticsvirtual2024abrilGuiaparacrearslideshareticsvirtual2024abril
Guiaparacrearslideshareticsvirtual2024abril
 
CURSO DE INICIACIÓN Á ASTRONOMÍA Eclipses na Coruña
CURSO DE INICIACIÓN Á ASTRONOMÍA Eclipses na CoruñaCURSO DE INICIACIÓN Á ASTRONOMÍA Eclipses na Coruña
CURSO DE INICIACIÓN Á ASTRONOMÍA Eclipses na Coruña
 
Recolección de datos, metodología de la investigación
Recolección de datos, metodología de la investigaciónRecolección de datos, metodología de la investigación
Recolección de datos, metodología de la investigación
 
Sebastián Iturriaga - eCommerce Day Chile 2024
Sebastián Iturriaga - eCommerce Day Chile 2024Sebastián Iturriaga - eCommerce Day Chile 2024
Sebastián Iturriaga - eCommerce Day Chile 2024
 
Francisco Irarrazaval, Marcos Pueyrredon - eCommerce Day Chile 2024
Francisco Irarrazaval, Marcos Pueyrredon - eCommerce Day Chile 2024Francisco Irarrazaval, Marcos Pueyrredon - eCommerce Day Chile 2024
Francisco Irarrazaval, Marcos Pueyrredon - eCommerce Day Chile 2024
 
Pablo Scasso - eCommerce Day Chile 2024
Pablo Scasso -  eCommerce Day Chile 2024Pablo Scasso -  eCommerce Day Chile 2024
Pablo Scasso - eCommerce Day Chile 2024
 
Biomecánica y análisis de puestos trabajo pptx
Biomecánica y análisis de puestos trabajo pptxBiomecánica y análisis de puestos trabajo pptx
Biomecánica y análisis de puestos trabajo pptx
 

Visual basic 6.0

  • 1. Creación de Barra de Menú y resguardo al ingreso de un Menú VISUAL BASIC 6.0 03/06/2015MIGUEL ANGEL SIORDIA URZUA 1
  • 2. CREANDO MENÚS CON VISUAL BASIC 6.0 • Para crear un menú, presiono el botón del editor de menús. Abajo viene una imagen de la barra de menús de Visual Basic 6.0. 03/06/2015MIGUEL ANGEL SIORDIA URZUA 2
  • 3. CREANDO MENÚS CON VISUAL BASIC 6.0 • Al presionar el botón del editor de menú, sale la siguiente ventana: 03/06/2015MIGUEL ANGEL SIORDIA URZUA 3
  • 4. CREANDO MENÚS CON VISUAL BASIC 6.0 • Para empezar, el primer elemento en la barra de menú de esta aplicación va a tener un elemento llamado "Mensajes". Para hacer esto, lleno la ventana como indica la figura: • Una nota cultural: pongo el símbolo & adelante de la letra M de Mensajes para que aparezca subrayado y responda cuando el usuario presione ALT+M. Si cierro esta ventana, mi forma Form1 se ve así: 03/06/2015MIGUEL ANGEL SIORDIA URZUA 4
  • 6. CREANDO MENÚS CON VISUAL BASIC 6.0 • Pero que pasa si quiero poner un menú adentro de mi menú "Mensajes". Vuelvo a abrir el editor de menús, aprieto el botón Next para agregar otro elemento abajo del que ya existe. Lo dejo con estos datos: • Para indentar la opción Hola, presiono el botoncito que indenta (flecha a la derecha). Después que tengo todo hecho y cierro el editor de menú, se ve mi forma así. 03/06/2015MIGUEL ANGEL SIORDIA URZUA 6
  • 8. • Al darle click sobre la palabra "Hola", me aparece la ventana de código listo para programar lo que sucederá cuando nuestro usuario valiente se atreva a seleccionar ese botón: • Voy a teclear código super sencillo que solo haga que aparezca una cajita que diga Hola, se ve así: 03/06/2015MIGUEL ANGEL SIORDIA URZUA 8
  • 9. COMO PROTEGER EL INGRESO A UN PROYECTO • Solo basta con crear un formulario y poner unos elementos muy simples como se muestra a continuación: 03/06/2015MIGUEL ANGEL SIORDIA URZUA 9
  • 10. COMO PROTEGER EL INGRESO A UN PROYECTO • En el botón de comando se ingresa el siguiente código: Private Sub Command1_Click() If Text1.Text = "miguel" Then Load MDIForm1 loginsuccedede = Thue Me.Hide Else MsgBox "Contraseña incorrecta!", , "login" Text1.SetFocus SendKeys "(homa)+(end)" End If MDIForm1.Show Unload Form11 End Sub 03/06/2015MIGUEL ANGEL SIORDIA URZUA 10
  • 11. COMO PROTEGER EL INGRESO A UN PROYECTO • Con ese código al iniciar el proyecto en modo ejecución pedirá la contraseña asignada en el código y del mismo modo al ingresar ira al formulario que se le indico en el mismo código 03/06/2015MIGUEL ANGEL SIORDIA URZUA 11