Application developed with Visual Basic, Part 4.


4th Step, modify the Book .frm file - Part 1.


Declaration step ...
  • Database operations - to display any KJV database record into the Record data boxes.
  • List of controls to be add: two Frame controls, three PictureBox controls, one Image control, four Label controls, one TextBox control and six CommandButton controls.

Details ...

The Book .frm design, - Part 1, after Modification.

Book



   

   


Note
:
The Book.frm design,
before Modification. - (created by Wizard Application)

BibleTable


  1. Add the file :
    • From the ...\VB App\res folder copy the (GIF Image) form.gif  file to the folder C:\Test\Test VB0\ res.
  2. Remove all controls created by Wizard Application from Book .frmView Object .

    The
    Label controls - lblLabels(0), lblLabels(1), blLabels(2), lblLabels(3), lblLabels(4).
    The TextBox controls - txtFields(0), txtFields(1), txtFields(2), txtFields(3), txtFields(4).
    The PictureBox controls - PicButton, PicStatBox.
    The CommandButton contros - CmdClose, CmdFirst, CmdPrevious, CmdNext, CmdLast.
    The Label control - lblStatus.

  3. The Book frm View Object - Part 1.
    The Form - Book , Form Properties(new values):
    Name:
    Caption:
    Height:
    Left:
    MaxButton:
    MinButton:
    ScaleMode:
    StartUpPosition:
    Top:
    Width:
    Book
    Book

    6990
    0
    False
    True
    1 - Twip
    2 - Center Window
    0
    9600


    Add the following controls from the Toolbox :
    Two Frame controls, three PictureBox controls, one Image control, four Label controls, one TextBox control and six Commandbutton controls.

    1. Add the Frame - Frame1, Frame Properties:
      A Frame control provides an identifiable grouping for controls. You can also use a Frame to subdivide a form functionally.
      Remarks
      :
      First draw the Frame control, and then draw the controls inside the Frame. This enables you to move the Frame and the controls it contains together. If you draw a control outside the Frame and then try to move it inside, the control will be on top of the Frame and you'll have to move the Frame and controls separately.
      Name:
      BackColor:
      BorderStyle:
      Caption:
      Height:
      Left:
      TabIndex:
      Top:
      Width:
      Frame1
      &H8000000D&
      1 - Fixed

      6495
      0
      0
      0
      5415

      Note :
      The Frame1 includes: three PictureBox controls - Picture1, PicStatBox, PicButton, three Label controls - lbrecorddata, Titre and Chapter and one TextBox control - txtFields.

    2. Add the Frame - Frame2, Frame Properties:
      A Frame control provides an identifiable grouping for controls. You can also use a Frame to subdivide a form functionally
      Name:
      BackColor:
      BorderStyle
      Caption:
      Height:
      Left:
      TabIndex:
      Top:
      Width:
      Frame2
      &H8000000F&
      1 - Fixed

      6495
      5520
      1
      0
      3975


    3. Add the PictureBox - Picture1, PictureBox Properties:
      A PictureBox control can display a graphic from a bitmap, icon, or metafile, as well as enhanced metafile, JPEG, or GIF files. It clips the graphic if the control isn't large enough to display the entire image.
      Remarks
      :
      You can also use a PictureBox control to group OptionButton controls and to display output from graphics methods and text written with the Print method.
      To make a PictureBox control automatically resize to display an entire graphic, set its AutoSize property to True.
      To create animation or simulation, you can manipulate graphics properties and methods in code. Graphics properties and events are useful for run-time print operations, such as modifying the format of a screen form for printing.
      Name:
      Align:
      BackColor:
      Height:
      Left:
      Tabindex:
      ScaleMode:
      Top:
      Width:
      Picture1
      0 - None
      &H8000000F&
      2895
      0
      2
      1 - Twip
      120
      5415

      Note :
      The Picture1 includes one Image control - Image1.

    4. Add the Image - Image1, Image Properties:
      Use the Image control to display a graphic. An Image control can display a graphic from a bitmap, icon, or metafile, as well as enhanced metafile, JPEG, or GIF files.
      Name:
      BorderStyle:
      Height:
      Left:
      Top:
      Width:
      Image1
      0 - None
      2295
      960
      120
      3375

      Note :
      The Image1
      displays the file form.gif - (stored in the folder C:\Test\Test VB0\ res).

    5. Add the Label - lbrecorddata, Label Properties:
      A Label control is a graphical control you can use to display text that a user can't change directly.
      Name:
      Alginment:
      Caption:
      Font:
      Height:
      Left:
      TabIndex:
      Top:
      Width:
      lbrecorddata
      0 - Left Justify
      Record data boxes
      MS Sans Serif, Bold Italic, Underline, 8
      195
      240
      3
      3240
      1935


    6. Add the Label - Titre, Label Properties:
      A Label control is a graphical control you can use to display text that a user can't change directly.
      Name:
      Alginment:
      Caption:
      Height:
      Left:
      TabIndex:
      Top:
      Width:
      Titre
      0 - Left Justify
      Titre ...
      195
      480
      4
      3720
      4455

      Note :
      The Titre displays the values of the Book and Title fields.

    7. Add the Label - Chapter, Label Properties:
      A Label control is a graphical control you can use to display text that a user can't change directly.
      Name:
      Alginment:
      Caption:
      Height:
      Left:
      TabIndex:
      Top:
      Width:
      Chapter
      0 - Left Justify
      Chapter ...
      195
      480
      5
      4080
      4455

      Note :
      The Chapter displays the values of the Chapter and Verse fields.

    8. Add the TextBox - txtFields, TextBox Properties:
      A TextBox control, sometimes called an edit field or edit control, displays information entered at design time, entered by the user, or assigned to the control in code at run time.
      Remarks
      :
      To display multiple lines of text in a TextBox control, set the MultiLine property to True. If a multiple-line TextBox doesn't have a horizontal scroll bar, text wraps automatically even when the TextBox is resized. To customize the scroll bar combination on a TextBox, set the ScrollBars property.
      Scroll bars will always appear on the TextBox when its MultiLine property is set to True, and its ScrollBars property is set to anything except None (0).
      If you set the MultiLine property to True, you can use the Alignment property to set the alignment of text within the TextBox. The text is left-justified by default. If the MultiLine property is False, setting the Alignment property has no effect.
      Name:
      Alignment:
      BorderStyle:
      DataField:
      Height:
      Left:
      MultLine:
      Text
      TabIndex:
      Top:
      Width:
      txtFields
      0 - Left Justify
      0 - None
      TextData
      1215
      240
      True
      (Text)
      6
      4440
      4935


    9. Add the PictureBox - PicStatBox, PictureBox Properties:
      A PictureBox control can display a graphic from a bitmap, icon, or metafile, as well as enhanced metafile, JPEG, or GIF files.
      Name:
      Align:
      BackColor:
      Height:
      Left:
      Tabindex:
      ScaleMode:
      Top:
      Width:
      PicStatBox
      0 - None
      &H8000000F&
      375
      25
      7
      1 - Twip
      5880
      3050

      Note :
      The PicStatBox includes one Label control - lblstatus and four CommandButton controls - CmdFirst, CmdPrevious, CmfNext and CmdLast.

    10. Add the Label - lblStatus, Label Properties:
      A Label control is a graphical control you can use to display text that a user can't change directly.
      Name:
      Alginment:
      BorderStyle:
      Caption:
      Height:
      Left:
      TabIndex:
      Top:
      Width:
      lblStatus
      0 - Left Justify
      1 - Fixed

      255
      25
      8
      40
      1335


    11. Add the CommandButton - CmdFirst, CommandButton Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      Remarks
      :
      To display text on a CommandButton control, set its Caption property. A user can always choose a CommandButton by clicking it. To allow the user to choose it by pressing ENTER, set the Default property to True. To allow the user to choose the button by pressing ESC, set the Cancel property of the CommandButton to True.
      Name:
      Caption:
      Height:
      Left:
      Style:
      TabIndex:
      Top:
      Width:
      CmdFirst
      F
      300
      1440
      0 - Standard
      9
      25
      345


    12. Add the CommandButton - CmdPrevious, CommandButton Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      Name:
      Caption:
      Height:
      Left:
      Style:
      TabIndex:
      Top:
      Width:
      CmdPrevious
      P
      300
      1800
      0 - Standard
      10
      25
      345


    13. Add the CommandButton - CmdNext, CommandButton Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      Name:
      Caption:
      Height:
      Left:
      Style:
      TabIndex:
      Top:
      Width:
      CmdNext
      N
      300
      2200
      0 - Standard
      11
      25
      345


    14. Add the CommandButton - CmdLast, CommandButton Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      Name:
      Caption:
      Height:
      Left:
      Style:
      TabIndex:
      Top:
      Width:
      CmdLast
      L
      300
      2640
      0 - Standard
      12
      25
      345


    15. Add the PictureBox - PicButton, PictureBox Properties:
      A PictureBox control can display a graphic from a bitmap, icon, or metafile, as well as enhanced metafile, JPEG, or GIF files.
      Name:
      Align:
      Height:
      Left:
      ScaleMode:
      TabIndex:
      Top:
      Width:
      PicButton
      0 - None
      375
      3120
      1 - Twip
      13
      5880
      2325

      Note :
      The PicButton includes two CommandButton controls - CmdAbout and CmdClose.

    16. Add the CommandButton - CmdAbout, CommandButton Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      Name:
      Caption:
      Height:
      Left:
      Style:
      TabIndex:
      Top:
      Width:
      CmdAbout
      About
      300
      75
      0 - Standard
      14
      25
      975

      Note :
      To load the Form - About (About.frm). - (Select the CmdAbout button)

    17. Add the CommandButton - CmdClose, CommandButton Properties:
      Use a CommandButton control to begin, interrupt, or end a process. When chosen, a CommandButton appears pushed in and so is sometimes called a push button.
      Name:
      Caption:
      Height:
      Left:
      Style:
      TabIndex:
      Top:
      Width:
      CmdClose
      Close
      300
      1140
      0 - Standard
      15
      25
      975

      Note :
      To unload the current Form. - (Select the CmdClose button).

  4. The Book Frm View Code - Part 1. ( Next Page ------>)

Previous
Home 4 Home
Next