国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > Flex > 正文

MSHFlexGrid1使用技巧(一)[如何讓MSHFlexGrid只能被選中一行]

2024-07-21 02:16:24
字體:
來源:轉載
供稿:網友
mshflexgrid控件點擊時可以選中多行,但有時我們需要僅僅選中一行,有一個小技巧:



option explicit
dim currentrow as integer
private sub form_load()
dim i as integer, j as integer
with mshflexgrid1
.rows = 10
.cols = 4
for i = 1 to 9
.textmatrix(i, 0) = "第 " & i & " 行"
for j = 1 to 3
.textmatrix(0, j) = "第 " & j & " 列"
.textmatrix(i, j) = i & "," & j
next
next
end with
end sub
private sub mshflexgrid1_mousedown(button as integer, shift as integer, x as single, y as single)
with mshflexgrid1
.row = .mouserow
currentrow = .row
.col = 0
.colsel = .cols - 1
end with
end sub
private sub mshflexgrid1_mouseup(button as integer, shift as integer, x as single, y as single)
with mshflexgrid1
.rowsel = currentrow
.colsel = .cols - 1
end with
end sub

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 江孜县| 当涂县| 静安区| 芮城县| 平凉市| 胶州市| 南溪县| 湘西| 旌德县| 泸州市| 乐平市| 乌恰县| 盘锦市| 肇州县| 本溪市| 稷山县| 浏阳市| 余干县| 和龙市| 西乌珠穆沁旗| 无棣县| 张家川| 丰顺县| 屯留县| 岗巴县| 鄯善县| 长顺县| 阜城县| 邹平县| 华安县| 婺源县| 宽甸| 平安县| 榆中县| 巴青县| 昌邑市| 台江县| 南开区| 阜新市| 阿瓦提县| 开鲁县|