Home > Software engineering >  How VB6.0 by use of fixed MSHFlexGrid1 line
How VB6.0 by use of fixed MSHFlexGrid1 line

Time:10-06

How MSHFlexGrid1 click a row lock this line, after I give instructions to unlock, choose other line, please directly!

CodePudding user response:

Can be done by the program logic,
Such as using a variable R to record the currently selected the line number of the line, with variable L whether to record locking
Detection and control of the mouse to click in the table event whether L lock, if the lock is not change R, if you do not lock will be the current row row number assigned to R

CodePudding user response:

There are more simple solution:

Put a Frame without borders, 1

2 put MSHFlexGrid in Frame, note that the first shear MSHFlexGrid, click on the selected Frame, and then paste, is not a simple MSHFlexGrid will drag on the Frame, and then set the Frame to without borders, so that I do not feel the existence of the Frame, on the vision

3 are not allowed to access MSHFlexGrid, need to set Frame1) Enabled=False, at this point, the MSHFlexGrid appearance no change, just click no effect,

This method can be extended to all controls that is put in the Frame lock together,

CodePudding user response:

How MSHFlexGrid1 click a row lock this line is what mean??????? MSHFlexGrid1 itself can be frozen, like excel, but frozen is this line and all of the above

CodePudding user response:

Or you can consider to put in a msflexgrid control, and then to hide, will lock the line shows the new msflexgrid control, and then click the make new msflexgrid control: msflexgrid2. Enabled=False
  • Related