国产探花免费观看_亚洲丰满少妇自慰呻吟_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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 余姚市| 龙川县| 恩平市| 宜州市| 江川县| 南安市| 六安市| 常熟市| 松阳县| 蛟河市| 科尔| 泾川县| 枝江市| 山东| 吉首市| 唐海县| 茂名市| 田阳县| 霍林郭勒市| 永寿县| 卓资县| 股票| 托克逊县| 璧山县| 广西| 民县| 雷山县| 奉节县| 油尖旺区| 蓬安县| 满城县| 繁峙县| 扎兰屯市| 孝昌县| 苍山县| 琼海市| 古交市| 三江| 东港市| 广东省| 乌审旗|