Step 4:

Application developed with Visual Basic, Part 10.


7th Step, Modify the Book.frm file - Part 4.

Declaration step ...
  • Search operation - to find a record corresponding to the address you specified.
  • List of controls to be add: four Label controls and eight ComboBox controls.

    Note:
    Four Label controls and four
    ComboBox controls to be appear only in the 2nd tab page.

Details ...

The Book.frm design - Part 4, after Modification :

Book



  .
.
.
 

Note:
The
label of the 2nd tab page is By address.

  1. The Book.frm View Object - Part 4, modify and add the controls :
    1. Modify the existing Frame control Properties - Frtb(1):
      Name:
      BorderStyle:
      Caption:
      Height:
      Index:
      Left:
      TabIndex:
      Top:
      Width:
      Frtb
      1 - Fixed

      2415
      1
      25
      19
      600
      3900


    2. Add the following controls from the Toolbox - (inside the Frame control - Frtb(index = 1)):
      Eight
      ComboBox controls - Cmbtitle, Cmbbook, Cmbchapter, Cmbverse, Cmbtitlerecno, Cmbbookrecno, Cmbchapterrecno and Cmbverserecno and five Label controls - lbselect, lbtitle, lbbook, lbchapter and. lbverse.

      1. Add the ComboBox - Cmbtitle, ComboBox Properties:
        A ComboBox control combines the features of a TextBox control and a ListBox control - users can enter information in the text box portion or select an item from the list box portion of the control.
        Remarks
        :
        To add or delete items in a ComboBox control, use the AddItem or RemoveItem method. Set the List, ListCount, and ListIndex properties to enable a user to access items in the ComboBox. Alternatively, you can add items to the list by using the List property at design time. 
         A Scroll event will occur in a ComboBox control only when the contents of the dropdown portion of the ComboBox are scrolled, not each time the contents of the ComboBox change. For example, if the dropdown portion of a ComboBox contains five items and the top item is highlighted, a Scroll event will not occur until you press the down arrow six times (or the pgdn key once). After that, a Scroll event occurs for each press of the down arrow key. However, if you then press the up arrow key, a Scroll event will not occur until you press the up arrow key six times (or the pgup key once). After that, each up arrow key press will result in a Scroll event.
        Name:
        Height:
        ItemData:
        Left:
        List:
        Locked:
        Sorted:
        Style:
        TabIndex:
        Top:
        Visible:
        Width:
        Cmbtitle
        315
        (List)
        1320
        (List)
        False
        False
        0 - Dropdown Combo
        27
        600
        True
        1575


      2. Add the ComboBox - Cmbbook, ComboBox Properties:
        A ComboBox control combines the features of a TextBox control and a ListBox control - users can enter information in the text box portion or select an item from the list box portion of the control.
        Name:
        Height:
        ItemData:
        Left:
        List:
        Locked:
        Sorted:
        Style:
        TabIndex:
        Top:
        Visible:
        Width:
        Cmbbook
        315
        (List)
        1320
        (List)
        False
        False
        0 - Dropdown Combo
        28
        970
        True
        1575


      3. Add the ComboBox - Cmbchapter, ComboBox Properties:
        A ComboBox control combines the features of a TextBox control and a ListBox control - users can enter information in the text box portion or select an item from the list box portion of the control.
        Name:
        Height:
        ItemData:
        Left:
        List:
        Locked:
        Sorted:
        Style:
        TabIndex:
        Top:
        Visible:
        Width:
        Cmbchapter
        315
        (List)
        1320
        (List)
        False
        False
        0 - Dropdown Combo
        29
        1350
        True
        1575


      4. Add the ComboBox - Cmbverse, ComboBox Properties:
        A ComboBox control combines the features of a TextBox control and a ListBox control - users can enter information in the text box portion or select an item from the list box portion of the control.
        Name:
        Height:
        ItemData:
        Left:
        List:
        Locked:
        Sorted:
        Style:
        TabIndex:
        Top:
        Visible:
        Width:
        Cmbverse
        315
        (List)
        1320
        (List)
        False
        False
        0 - Dropdown Combo
        30
        1725
        True
        1575


      5. Add the ComboBox - Cmbtitlerecno, ComboBox Properties:
        A ComboBox control combines the features of a TextBox control and a ListBox control - users can enter information in the text box portion or select an item from the list box portion of the control.
        Name:
        Height:
        ItemData:
        Left:
        List:
        Locked:
        Sorted:
        Style:
        TabIndex:
        Top:
        Visible:
        Width:
        Cmbtitlerecno
        315
        (List)
        2880
        (List)
        False
        False
        0 - Dropdown Combo
        31
        1080
        False
        975


      6. Add the ComboBox - Cmbbookrecno, ComboBox Properties:
        A ComboBox control combines the features of a TextBox control and a ListBox control - users can enter information in the text box portion or select an item from the list box portion of the control.
        Name:
        Height:
        ItemData:
        Left:
        List:
        Locked:
        Sorted:
        Style:
        TabIndex:
        Top:
        Visible:
        Width:
        Cmbbookrecno
        315
        (List)
        2880
        (List)
        False
        False
        0 - Dropdown Combo
        32
        1440
        False
        975


      7. Add the ComboBox - Cmbchapterrecno, ComboBox Properties:
        A ComboBox control combines the features of a TextBox control and a ListBox control - users can enter information in the text box portion or select an item from the list box portion of the control.
        Name:
        Height:
        ItemData:
        Left:
        List:
        Locked:
        Sorted:
        Style:
        TabIndex:
        Top:
        Visible:
        Width:
        Cmbchapterrecno
        315
        (List)
        2880
        (List)
        False
        False
        0 - Dropdown Combo
        33
        1800
        False
        975


      8. Add the ComboBox - Cmbverserecno, ComboBox Properties:
        A ComboBox control combines the features of a TextBox control and a ListBox control - users can enter information in the text box portion or select an item from the list box portion of the control.
        Name:
        Height:
        ItemData:
        Left:
        List:
        Locked:
        Sorted:
        Style:
        TabIndex:
        Top:
        Visible:
        Width:
        Cmbverserecno
        315
        (List)
        2880
        (List)
        False
        False
        0 - Dropdown Combo
        34
        2160
        False
        975


      9. Add the Label - lbselect, 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:
        lbselect
        0 - Left Justify
        Select ...
        255
        240
        35
        240
        975


      10. Add the Label -lbtitle 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:
        lblbtitle
        0 - Left Justify
        Title:
        255
        400
        36
        675
        855


      11. Add the Label - lbbook, 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:
        lbbook
        0 - Left Justify
        Book:
        255
        400
        37
        1050
        855


      12. Add the Label -lbchapter, 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:
        lbchapter
        0 - Left Justify
        Chapter:
        255
        400
        38
        1425
        855


      13. Add the Label - lbverse, 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:
        lbverse
        0 - Left Justify
        Verse
        255
        400
        39
        1775
        855
  2. To save this application; From File menu, choose and click Save Project.
  3. To run it; From Run menu, choose and click Start.

 

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

Previous
Home 10 Home
Next