| 发表于:2007-09-17 15:10:472楼 得分:25 |
这个和api 没有太大关系,progressbar的无非不就是在min,max,value三个属性上下功夫。 以拿读northwind中的order details读进msflexgrid为示范 private sub command1_click() dim i as long if rs.state <> adstateclosed then rs.close rs.open "select productid,unitprice from [order details] ", conn, adopenstatic, adlockreadonly if rs.recordcount = 0 then exit sub for i = 1 to rs.recordcount with me.msflexgrid1 .row = i .col = 1 .text = trim(rs( "productid ") & " ") .col = 2 .text = trim(rs( "unitprice ") & " ") .rows = .rows + 1 rs.movenext with me.progressbar1 .min = 0 .max = rs.recordcount .value = i end with end with next msgbox "数据已读完 " end sub 另外,对于安装进度或者其他,进度条的数据不一定是准确的,可以用trimer做一个大体的判断。 | | |
|