从Visual Basic PowerPacks绘制的线上绘制点? [英] Draw points on the line drawn from Visual Basic PowerPacks?
本文介绍了从Visual Basic PowerPacks绘制的线上绘制点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从Visual Basic Power Pack中绘制了这些行。一个是水平的,另一个是垂直的(如x轴和y轴)现在我想从datagridview(它有两列x轴和y轴)上添加点。我怎么能在它上面画点?
解决方案
最简单的方法就是按照我想的步骤进行操作
1 )如果没有固定点数,则添加标签的控制数组。
2)添加两个用于坐标输入的文本框,例如textX,textY
3)添加textchanged事件,输入以下代码
textX.location =新系统.Drawing.Point(Val(txtX.Text),textX.location.Y)
折叠|复制代码
textY.location =新的System.Drawing.Point(textX.location.X,Val(txtY.Text))
试试这个并回复。
I have drawn the lines from the Visual Basic Power Pack. One is Horizontal and other is Vertical (like x-axis and y-axis) And now I want to add points on it from datagridview(which have two columns x-axis and y-axis). How can i draw points on it?
解决方案
easiest way is following step as I think
1) Add control array of label if number of dots are not fixed.
2) Add two textbox for co-ordinates entry e.g. textX, textY
3) Add in there textchanged event, enter following code
textX.location = New System.Drawing.Point(Val(txtX.Text) , textX.location.Y) Collapse | Copy Code textY.location = New System.Drawing.Point(textX.location.X,Val(txtY.Text))
try this and reply.
这篇关于从Visual Basic PowerPacks绘制的线上绘制点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文