有什么这样的控件吗?
以及如何使用?
谢谢!
以及如何使用?
谢谢!
解决方案 »
- vb6的exe工程下的类,在其他工程引用后,在新建实例后就运行这个exe了。升级到vb.net中为什么运行不了这个exe
- 小弟初学水晶报表,请各位高手指教,一定给分!
- 请教高手:在用datareport显示数据时,怎样才能实现数据的动态更新。
- 请问什么叫无模式窗体?
- 关于Ie控件的问题
- 通过FORM_LOAD的代码创建的按钮怎样产生事件?
- 菜鸟求救,知道的大哥大姐帮忙,先谢了
- vb中怎样在安装文件中加入提示输入序列号?谢谢!
- 高手来看!!!
- zilong问:如何用VB打开某个程序后,当这个程序关闭后VB能够收到消息或是能够进行相应的善后处理
- 急:请问各位,如何用VB写copy EXCEL中的sheet的语句.
- 如何让图片正确显示
引用ms mschart control 6.0
Dim chrtArray2() As Variant, chrtArray3() As Variant 'contain data to be plotted
Dim numPointsTwoCurve As Integer, numPointsThreeCurve As Integer
Dim intvalue As IntegerPrivate Sub Form_Load()
'First Create some dummy data for a graph containing (1) x-set, and (2) y-sets of data
'1st column will contain text (though it will show up as numeric characters).
chrt.Visible = False
numPointsTwoCurve = 0
ReDim chrtArray2(1 To 10, 2)
For intvalue = 1 To 10
chrtArray2(intvalue, 0) = " " & intvalue
chrtArray2(intvalue, 1) = intvalue * 2
chrtArray2(intvalue, 2) = intvalue + 6
numPointsTwoCurve = numPointsTwoCurve + 1
Next intvalue
'Create some dummy data for a graph containing (1) x-set and (3) y-sets of data numPointsThreeCurve = 0
ReDim chrtArray3(1 To 10, 3)
For intvalue = 1 To 10
chrtArray3(intvalue, 0) = " " & intvalue * 10
chrtArray3(intvalue, 1) = intvalue
chrtArray3(intvalue, 2) = intvalue * 2
chrtArray3(intvalue, 3) = intvalue * 3
numPointsThreeCurve = numPointsThreeCurve + 1
Next intvalue
End SubPrivate Sub cmdPlotThree_Click()
With frmMain.chrt
'Debug.Print "chrt.RowCount= "; chrt.RowCount
.Visible = True
.RowCount = numPointsThreeCurve
'Debug.Print "chrt.RowCount= "; chrt.RowCount
.ChartData = chrtArray3
.ShowLegend = True
.chartType = VtChChartType2dLine
.Legend.Location.LocationType = VtChLocationTypeTop
.Plot.UniformAxis = False
.ColumnCount = 3
.ColumnLabelCount = 3
.Column = 1
.ColumnLabel = "data set 1"
.Column = 2
.ColumnLabel = "data set 2"
.Column = 3
.ColumnLabel = "data set 3"
.Refresh
End With
End SubPrivate Sub cmdPlotTwo_Click()
With frmMain.chrt
.Visible = True
.RowCount = numPointsTwoCurve
.ChartData = chrtArray2
.ShowLegend = True
.chartType = VtChChartType2dLine
.Legend.Location.LocationType = VtChLocationTypeTop
.Plot.UniformAxis = False
.ColumnCount = 2
.ColumnLabelCount = 2
.Column = 1
.ColumnLabel = "data set 1"
.Column = 2
.ColumnLabel = "data set 2"
.Refresh
End With
End Sub