Application developed with Visual Basic, Part 8.


6th Step, modify the Book.frm file - Part 3.

Declaration step ...
  • Search operation - to find all records include a word you specified.
  • List of controls to be add: two Label controls, one TextBox control, one CommandButton control and one ListBox control.

Details ...

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

Book



  .
.
.
.
 

Note:
The controls display inside the 1st tab page.

  1. The Book.frm View Object - Part 3, modify and add the controls :

    1. Modify the existing Frame control Properties - Frtb(0):
      Name:
      BorderStyle:
      Caption:
      Height:
      Index:
      Left:
      TabIndex:
      Top:
      Width:
      Frtb
      1 - Fixed

      2415
      0
      0
      19
      3840
      3900


    2. Add the following controls from the Toolbox - (inside the Frame control - Frtb(index = 0)):
      ... Tree Label controls - lbword, lbcaption and lbinfo1, one TextBox control - TxtWord, one
      ... CommandButton control - Cmddisplay and one ListBox control - List1.

      1. Add the Label - lbword, 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:
        lbword
        0 -Left Justify
        Type in the word to search for:
        255
        120
        21
        0
        2295


      2. Add the TextBox - TxtWord, 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.
        Name:
        Alignment:
        Height:
        Left:
        MultLine:
        Text:
        TabIndex:
        Top:
        Width:
        TxtWord
        0 - Left Justify
        285
        120
        False

        22
        240
        2175


      3. Add the CommandButton - Cmddisplay, CommandBoutton 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:
        Enabled:
        Height:
        Left:
        Style:
        TabIndex:
        Top:
        Width:
        Cmddisplay
        Display
        False
        285
        2520
        0 - Standard
        23
        240
        975


      4. Add the Label - lbcaption, 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:
        lbcaption
        0 -Left Justify
        Record
        ..BK.. ...Title... ..Chp.. Verse
        255
        25
        24
        600
        3855


        .

      5. Add the ListBox - List1, ListBox Properties:
        A ListBox control displays a list of items from which the user can select one or more. If the number of items exceeds the number that can be displayed, a scroll bar is automatically added to the ListBox control.
        If no item is selected, the ListIndex property value is -1. The first item in the list is ListIndex 0, and the value of the ListCount property is always one more than the largest ListIndex value.
        Remarks
        :
        To add or delete items in a ListBox control, use the AddItem or RemoveItem method. Set the List, ListCount, and ListIndex properties to enable a user to access items in the ListBox. Alternatively, you can add items to the list by using the List property at design time.
        Name:
        Font:
        Height:
        Item Data:
        Left:
        List:
        Style:
        TabIndex:
        Top:
        Width:
        List1
        Courier New Regular 8
        1320
        (List)
        0
        (List)
        0 - Standard
        25
        840
        3855


      6. Add the Label - lbinfo1, 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:
        lbinfo1
        0 -Left Justify

        225
        120
        26
        2160
        2295
  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 3. ( Next Page ------>)

Previous
Home 8 Home
Next