mshflexgrid如何添加? 如题! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Dim adoCnn As New adodb.Connection Dim adoCmm As New adodb.Command Dim adoRec As New adodb.Recordset adoCnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Program Files\Microsoft Visual Studio\VB98\NWIND.MDB;Persist Security Info=False" adoCmm.ActiveConnection = adoCnn adoCmm.CommandType = adCmdText adoCmm.CommandText = "select * from employees" Set adoRec = adoCmm.Execute Set MSHFlexGrid1.DataSource = adoRec With MSHFlexGrid1 .Rows = 10 .Cols = 5 For i = 1 To 3 .TextMatrix(2, i) = "555" .TextMatrix(3, i) = "555" Next End With 工程--->部件--->Microsoft Hierarchical FlexGrid Control 6.0 是如何添加MSHFlexGrid部件?ctrl+T,选择MSHFlexGrid然后lihonggen0(李洪根,用.NET,标准答案来了) ( ) 大哥的方法添加数据! With Mfg_Djll_Detail .Redraw = False Row_Cnt = 0 Do While Not Rs_Flex.EOF Row_Cnt = Row_Cnt + 1 .Rows = Row_Cnt + 2 .Row = Row_Cnt + 1 .Col = 0 .CellAlignment = flexAlignCenterCenter .Text = Row_Cnt For J = 1 To .Cols - 1 .Col = J .CellAlignment = flexAlignCenterCenter If IsNull(Rs_Flex.Fields(J - 1)) = True Then .Text = "" Else .Text = Rs_Flex.Fields(J - 1) End If Next J .Col = 17 .CellForeColor = QBColor(7) Rs_Flex.MoveNext Loop .Redraw = True End With 求一个网页监控的思路 网页是gb2312编码,中文显示会出现乱码webbrowser VB 6.0 如何按行操作文本文件? 下面代码打“?”号的地方请大哥指教。急!!!! 关于listview的问题 如何做出脱离vb运行库的软件? 我想问window2000下,怎样控制系统的启动程序,象win98下的msconfig那样。 VB中如何实现这个窗体的各项功能的代码 向英文高手求助!在线等待... 请问哪里有用vb编写组件的书下载??(也可以推荐几本自己去找) 有关InSert问题 EVB 如何获取机器名
Dim adoCmm As New adodb.Command
Dim adoRec As New adodb.Recordset
adoCnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Program Files\Microsoft Visual Studio\VB98\NWIND.MDB;Persist Security Info=False" adoCmm.ActiveConnection = adoCnn
adoCmm.CommandType = adCmdText
adoCmm.CommandText = "select * from employees"
Set adoRec = adoCmm.Execute
Set MSHFlexGrid1.DataSource = adoRec
.Rows = 10
.Cols = 5
For i = 1 To 3
.TextMatrix(2, i) = "555"
.TextMatrix(3, i) = "555" Next
End With
ctrl+T,选择MSHFlexGrid
然后lihonggen0(李洪根,用.NET,标准答案来了) ( ) 大哥的方法添加数据!
.Redraw = False
Row_Cnt = 0
Do While Not Rs_Flex.EOF
Row_Cnt = Row_Cnt + 1
.Rows = Row_Cnt + 2
.Row = Row_Cnt + 1
.Col = 0
.CellAlignment = flexAlignCenterCenter
.Text = Row_Cnt
For J = 1 To .Cols - 1
.Col = J
.CellAlignment = flexAlignCenterCenter
If IsNull(Rs_Flex.Fields(J - 1)) = True Then
.Text = ""
Else
.Text = Rs_Flex.Fields(J - 1)
End If
Next J
.Col = 17
.CellForeColor = QBColor(7)
Rs_Flex.MoveNext
Loop
.Redraw = True
End With