VB computer questions

Updated on technology 2024-02-09
2 answers
  1. Anonymous users2024-02-05

    line method.

    Draw straight lines and rectangles on objects.

    Grammar. [step] (x1, 1) [step] (x2, y2), color], b][f]

    The syntax of the line method has the following object qualifiers and sections:

    Section description.

    object is optional. An object expression whose value is Applied To to an object in the list. If the object is omitted, the form with focus is the object.

    step Optional. keyword, specifying the start coordinates, which are relative to the current drawing position provided by the currentx and currenty properties.

    x1, y1) optional. single (single-precision floating-point number), the coordinates of the start of a line or rectangle. The scalemode property determines the unit of measurement used.

    If omitted, the line starts at the position indicated by currentx and currenty.

    step Optional. keyword, specifying the end coordinates relative to the start point of the line.

    x2, y2) required. single (single-precision floating-point number), the end coordinates of a line or rectangle.

    color is optional. long, the RGB color used to draw the line. If it is omitted, the forecolor property value is used. You can specify the color using either the RGB function or the qbcolor function.

    b Optional. If it is included, the rectangle is drawn using diagonal coordinates.

    f Optional. If the b option is used, the f option specifies that the rectangle is filled with the color of the rectangular border. You can't use F instead of b.

    If you don't use F light with B, then the rectangle is filled with the current FillColor and FillStyle. The default value for fillstyle is transparent.

    Illustrate. When drawing a connected line, the end point of the previous line is the beginning of the next line.

    The width of the line depends on the value of the drawwidth property. The method of drawing lines and rectangles on the background depends on the drawmode and drawstyle property values.

    When the line method is executed, the currentx and currenty properties are set to the end point by the parameters.

    This method cannot be used with....end with statement block.

  2. Anonymous users2024-02-04

    1. In the Visual Basic design interface, the project window is a window that cannot be hidden. (n)

    2. In the statement if x=1 then y=1, x=1 is the relational expression and y=1 is the assignment statement. (y )

    3. If you want to exit the for loop, you can use the exit statement. (n)

    4. In the for ......next loop, where the step size can be positive, negative, or zero. (n )

    5. The content displayed in the text box can be automatically wrapped according to the size of the text box. (n)

    6. dim a1,a2 as integer statement declares that the variables a1 and a2 are integer variables. (n)

    7. Variables in VB must be declared before they can be used. (n)

    8. All VB controls are included in the VB toolbox, and we can't load other controls. (n)

    9. All controls are visible after the program is run. (n)

    10. There are two kinds of constants in vb: direct constants and symbolic constants; The difference between the two is that the value of this constant can be changed during the running of the program according to the requirements of the program execution. (n)

    11. When declaring an array in the same process, the array name can be the same as the variable name. (n)

    12. The picturebox control is not a "container" control. (n)

    13. The shortcut key in the menu device refers to the key that can be directly entered by the keyboard to select the menu item without opening the menu. (n)

Related questions
10 answers2024-02-09

A is not true. First of all, the temperature has an effect on the solubility, such as the 30 degrees of potassium nitrate saturated solution to 40 degrees, it is no longer a saturated solution, and then add a little potassium nitrate, less than the saturated state, but its concentration is already larger than the concentration of the saturated solution at 30 degrees, in addition, the solubility of some substances is reduced with the rise of temperature. Such as some gases. >>>More

6 answers2024-02-09

Good question, write with a for loop and judgment statement. >>>More