开发者

How do you draw a line dynamically in vb6?

I'm trying to get data from a 开发者_C百科database in order to draw a line on a vb6 form. I was looking at this site, but I'm not even a beginner in vb6, and I really couldn't follow it.

If anyone has any suggestion, even if it's just about drawing a line in vb6 (not dynamically), I'd appreciate it. Thanks!


Here's one way you dynamically draw a line:

    Me.Line (x1, y1)-(x2, y2)

Basically, this allows to to draw a straight line from one co-ordinate to another; for example:

    Me.Line (10, 10)-(1000, 1000)

You could just replace these values with values from the DB.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜