在VB中创建屏幕上的标尺 [英] Creating a on screen ruler in VB

查看:118
本文介绍了在VB中创建屏幕上的标尺的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在VB中创建一个屏幕标尺,这样你按一个按钮然后你点击a点然后点b并显示长度(以像素为单位),请理解我已经在VB编程了虽然只是通过在互联网上学习和学习来学习,这是我的热情。我仍然是一个在学校的青少年,另外四分之一的人在他们的击球手中非常小,例如打破需要做的事情,但我想要更多的帮助

How would I go about creating a onscreen ruler in VB so you press a button and then you click point a and then point b and it shows the length in pixels, please be understanding as I've been programming in VB for a while but only learnt off by mucking around and learning in the internet and this is my passion. I am still a teen at school and the folks over on another fourm were very minimal in their awnsers such as "break down what needs to be done" but I would like some more help

推荐答案

你可以阅读 http ://msdn.microsoft.com/en-us/library/system.windows.forms.control.mouseposition(v = vs.110).aspx [ ^ ]位置和 http://msdn.microsoft。 com / en-us / library / system.drawing.graphics.drawline(v = vs.110).aspx [ ^ ]用于绘制线条。如果你开始编程,那么值得投资一本好的学习指南来帮助你学习或者寻找在线教程。
You can read http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mouseposition(v=vs.110).aspx[^] for getting the mouse position, and http://msdn.microsoft.com/en-us/library/system.drawing.graphics.drawline(v=vs.110).aspx[^] for drawing lines. If you are starting out in programming it is well worth investing in a good study guide to help you learn, or look for online tutorials.


这篇关于在VB中创建屏幕上的标尺的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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