直接在屏幕上绘制数字/图形?
我正在 Visual Basic Express 2010 中编写一个小程序,其中一部分是拍摄延迟的屏幕截图。
我已经让主要代码正常工作,我已经让 Visual Basic 延迟使用 System.Threading.Thread.CurrentThread.Sleep(5000) 进行屏幕截图,但我正在寻找一种直接绘制到屏幕的方法剩余秒数。
您知道在 Windows 中,在“设置”下的“显示属性”中,当您单击“识别”时,每个显示器上都会显示一个巨大的数字吗?
我正在尝试重新创建这一点,在拍摄屏幕截图之前进行倒计时,为用户提供足够的通知,让他们所需的应用程序成为屏幕截图的焦点。
可以这样做吗?还是需要大量编码?
非常感谢您提供的任何帮助
I'm putting together a small program in Visual Basic Express 2010, and part of it is to take a delayed screen shot.
I've got the main code working, I've got Visual Basic delaying taking the screen shot with System.Threading.Thread.CurrentThread.Sleep(5000), but what I'm looking for is a way to draw directly to the screen the number of seconds remaining.
You know how in Windows, in the Display Properties under Settings, when you click on Identify you get a huge number displayed on each monitor?
I'm trying to recreate that, with the number counting down until the screen shot is taken, giving the user plenty of notification to get their required applications in focus for the screen shot.
Is it possible to do this? Or is it something that will take a heck of a lot of coding?
Many thanks for any help you can offer
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在
Form
中创建一个Label
控件,并使用类似以下内容使其透明:将制作如下内容:
要使窗口对鼠标透明,请 PInvoke
GetWindowLong
和SetWindowLong
:然后在
Form_Load()< /代码> 添加以下:
常量:
Create a
Label
control in aForm
and use something like the following to make it transparent:will make something like this:
To make your window transparent to mouse, PInvoke
GetWindowLong
andSetWindowLong
:Then in your
Form_Load()
add the following:Constants: