| 发表于:2007-04-03 00:38:40 楼主 |
首先将imagelist2.overlay中的图片显示在某单元格中,用鼠标点击图片某单元格时单元格背景就变了颜色. 1.单元格中的图片有个白色的边框,怎样将这个白色的边框屏蔽掉? vsflexgrid1.col = 1 vsflexgrid1.row = 1 set vsflexgrid1.cellpicture = imagelist2.overlay(1, 1) private sub vsflexgrid1_entercell() 'cellbackcolor — 返回或者设置单独的单元格或者单元格区域的背景色。 vsflexgrid1.cellbackcolor = &ha6bfe1 end sub private sub vsflexgrid1_leavecell() if vsflexgrid1.cellbackcolor = &ha6bfe1 then vsflexgrid1.cellbackcolor = vbwhite end if end sub |
|
|
|
|