SlideServe
Menu
Préférences
© SlideServe · v2026

VB6 Forms and menus

arcelia avatar
8 diapositives · 360 Views · Sep 01, 2012

VB6 Forms and menus. Forms. Project.. Add form Project Properties – startup object Forms other than startup default to not shown Form2.show Form2.hide Event sequence – life history of a form create = init event load = load event (start-up processes) show (get loose focus) / hide

VB6 Forms and menus - slide 1
01 / 8VB6 Forms and menus
1 / 17

Télécharger la présentation

VB6 Forms and menus
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. VB6 Forms and menus

  2. Forms • Project.. Add form • Project Properties – startup object • Forms other than startup default to not shown • Form2.show • Form2.hide • Event sequence – life history of a form • create = init event • load = load event (start-up processes) • show (get loose focus) / hide • queryunload (closedown processes) • unload • could then load again • terminate

  3. Or another way.. Dim f As Form2 ' f is of type Object Set f = New Form2 ' causes init f.Show ' causes load then show ' when user closes form2, get queryunload, ' then unload Set f = nothing ' causes terminate

  4. MDI Application • Multiple Document Interface • Add to project MDI Form • Add another form • Set MDIChild property of second form true

  5. Menus • Tools – Menu Editor • Double-click to code

  6. Creating a popup menu

  7. Displaying a popup menu Private Sub MDIForm_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = 2 Then PopupMenu popUp End If End Sub

  8. Forms and menu exercise • Make an MDI Form • With a menu File.New.Exit and Help • New produces new child window forms • Give child window a popup menu • Exit ends (use End) • Help displays an About dialog box: