如何在Visual Basic.net中绘制有向线??? [英] How can i draw a directed line in visual basic.net ???

查看:96
本文介绍了如何在Visual Basic.net中绘制有向线???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Vb.NET中绘制有向加权图...
但无法获取绘制直线的代码...请帮助我
我需要一个vb代码以在行中心绘制一个带文本框的定向线,以使用鼠标事件权重该边缘...
请在紧急情况下(在2天内)提供代码或整个项目(应用程序).​​...

i Want to draw a Directed Weighted Graph in Vb.NET...
but can''t get codes to draw directed line... plz help me
i need a vb code to draw a Directed line with a text box in center of line to weight that Edge with mouse Events...
Plz provide a Code or a Whole project (application) in urgent (in 2 days) ....
Thanks

推荐答案

写道:​​

Plz提供代码或整个项目(应用程序)紧急(在2天之内)....

Plz provide a Code or a Whole project (application) in urgent (in 2 days) ....



如果您不知道如何进行工作,建议您与客户联系并退还他们.

您可以处理要在其上绘制的窗体的绘画事件.您可以处理控件的事件,并以此为基础.我不知道定向线"是什么意思,但是您可以画任何喜欢的东西.其余的,如鼠标事件,您需要自己编写.我将亲自为线条创建一个类,并收集它们的一个集合,以便我的paint事件可以重复绘制,而我的鼠标事件可以重复进行响应.



I suggest you contact your client and refund them if you have no idea how to do the work.

You handle the paint event of your form to draw onto it. You can handle the event of a control, and draw on that. I have no idea what you mean by ''directed line'', but you can draw anything you like. The rest, like mouse events, you''ll need to write yourself. I''d personally create a class for lines, and have a collection of them that my paint event could iterate over to draw, and my mouse events could iterate over to respond to.


这篇关于如何在Visual Basic.net中绘制有向线???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆