Home > Software engineering >  In VB realize the interface
In VB realize the interface

Time:10-14



Especially, under the VB how to implement the list

Each line represents a UPS, parameters (temperature, voltage, current, etc.) will refresh periodically

Can according to need to add more than one UPS



How to realize the function of it? Please expert advice, thank you!

CodePudding user response:




Binding

Communication code

Time to refresh

CodePudding user response:

ListView can,

CodePudding user response:

ListView, should the DataGrid

CodePudding user response:

MSFlexGrid control


Microsoft FlexGrid MSFlexGrid control can display the grid Data, can also carries on the operation, it provides a highly flexible grid sorting, merging and format setting function, the grid can contain strings and images, if it is bound to a Data control, then the MSFlexGrid display will be read-only Data,

Syntax

MSFlexGrid

Description

Text and images can be simultaneously or separately in the MSFlexGrid any cell, Row and Col attribute specifies the current MSFlexGrid cell, the programmer can change the current cell in the code, users can use the mouse or the arrow keys at run time to change it, the Text property provides the content of the current cell reference information,

If the text in a cell is too long, can't be all displayed in the cell in a row, and WordWrap attribute is set to True, then the text will wrap to the next line of the same cell, if need to display the wrap text, need to increase the unit column width (ColWidth attributes) or line height (RowHeight attribute),

Using the Col and Row attributes can determine the number of columns and rows in MSFlexGrid respectively,

Pay attention to use in your application before the MSFlexGrid, first of all must be MSFlxGrd. Ocx files added to the project, if you want to automatically to file included in the process, please put it in Autoload file, at the time of publishing applications, should be installed in the user of Microsoft Windows System directory MSFlxGrd. Ocx files, on how to add ActiveX controls in the project details, please refer to the "Visual Basic programmers guide" in the "standard ActiveX controls,"
  • Related