登录
首页 » Windows开发 » 1)屏幕保护程序运行时,鼠标光标被自动隐藏,在程序结束时,光标显示。2)当单击、移动鼠标或按下键盘时,屏幕保护结束,回到正常操作状态。为了实现这些特性,在编写V...

1)屏幕保护程序运行时,鼠标光标被自动隐藏,在程序结束时,光标显示。2)当单击、移动鼠标或按下键盘时,屏幕保护结束,回到正常操作状态。为了实现这些特性,在编写V...

于 2022-03-03 发布 文件大小:2.46 kB
0 316
下载积分: 2 下载次数: 1

代码说明:

1)屏幕保护程序运行时,鼠标光标被自动隐藏,在程序结束时,光标显示。2)当单击、移动鼠标或按下键盘时,屏幕保护结束,回到正常操作状态。为了实现这些特性,在编写VB应用程序时,可以采用如下方法:   1、改变窗体属性通常VB应用程序的窗体都采用有边框的窗体外观,但作为屏幕保护程序,应设置窗体为无边框,且为最大化。   2、隐藏及显示鼠标光标在Visual Basic应用程序中隐藏及显示鼠标光标需要运用Windows的API函数,该函数名为ShowCursor。当用参数值True调用时显示鼠标光标,当用参数值False调用时,鼠标光标自动隐藏。   3、检测鼠标移动VB中有一个检测鼠标移动的对象事件MouseMove事件。MouseMove事件通常在应用程序启动时就会触发,有时在鼠标并未移动的情况下,MouseMove事件仍有可能被触发。因此如果在程序中直接用MouseMove事件检测鼠标是否发生了移动,并不能正确反映鼠标的移动状况。应该在MouseMove事件中编写代码加以控制。 -1) screen saver running, the mouse cursor automatically hidden, at the end of the procedure, the cursor display. 2) When the click, move the mouse or press the keyboard, the screen ends and return to normal operating status. To achieve these characteristics, in the preparation of VB applications, can be used as follows : a change forms usually attribute the VB application forms have adopted a frame of the window appearance, but as screen protection procedures should be provided to non-Window frame, and as a maximum. 2, hide and display the mouse c

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 专用于显示IP地址的自定义控制
    专用于显示IP地址的自定义控制-show dedicated to the IP address from the definition of control
    2022-03-18 11:50:09下载
    积分:1
  • 更改运行程序的鼠标指示的形状,一个非常实用的程序代码....
    更改运行程序的鼠标指示的形状,一个非常实用的程序代码.-Run the program to change the shape of mouse instructions, a very practical program code.
    2022-01-31 05:46:08下载
    积分:1
  • 一个绝妙的Firewall,可以为初学者作一个非常GOOD的示范,程序已经测试成功,一个比较完整的包过滤类型...
    一个绝妙的Firewall,可以为初学者作一个非常GOOD的示范,程序已经测试成功,一个比较完整的包过滤类型-A good firewall, a good example for the starters, program tested, a full package filter type
    2022-02-21 06:00:25下载
    积分:1
  • 贪吃蛇游戏
    可以学习c语言,熟悉数据结构链表的用法哦,在windows wintc 下写的,没有用面向对象的思想,直接就是顺序结构,非常简单的实现了贪吃蛇的游戏是一个很好的入门级的代码,希望你自己先构思,然后自己在动手写一写,这样才能锻炼到自己的能力
    2023-02-01 13:30:04下载
    积分:1
  • This calculator was make in visual basic. I used Microsoft visual studio
    This calculator was make in visual basic. I used Microsoft visual studio
    2022-06-17 21:32:37下载
    积分:1
  • xp button controls Demonstration Program FOSS
    xp按钮控件演示程序源码-xp button controls Demonstration Program FOSS
    2022-03-13 15:32:22下载
    积分:1
  • Tools, in general is absolutely useful! I believe I am not mistaken, tools and s...
    工具软件,对一般人绝对有用!相信我没有错, -Tools, in general is absolutely useful! I believe I am not mistaken, tools and software, as most people are absolutely useful! I believe I am not wrong,
    2022-05-21 14:12:22下载
    积分:1
  • VFP编程与软件若干实例 VFP编程与软件若干实例
    VFP编程与软件开发若干实例 VFP编程与软件开发若干实例-VFP programming and software development a number of examples of VFP programming and software development a number of examples
    2022-08-18 02:54:30下载
    积分:1
  • VB制作的简单文件搜索器
    VB制作的简单文件搜索器,因水平有限,急需完善。。。。。VERSION 5.00 Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX" Begin VB.Form FrmMain BorderStyle = 1 "Fixed Single Caption = "文件搜索器" ClientHeight = 1590 ClientLeft = 45 ClientTop = 390 ClientWidth = 3990 Icon = "FrmMain.frx":0000 LinkTopic = "Form1" MaxButton = 0 "False ScaleHeight = 1590 ScaleWidth = 3990 StartUpPosition = 3 "窗口缺省 Begin VB.CommandButton Command3 Caption = "清除信息" Height = 300 Left = 1560 TabIndex = 5 Top = 1155 Width = 1575 End Begin MSComDlg.CommonDialog CommonDialog1 L
    2023-07-12 05:45:03下载
    积分:1
  •   很多ASP代码编写着都会遇到,当提交表单或URL中的信息太多,写Request.Form等语句会很麻烦。有时甚至要写几十个之多。如果可以直接输入变量就自动的...
      很多ASP代码编写着都会遇到,当提交表单或URL中的信息太多,写Request.Form等语句会很麻烦。有时甚至要写几十个之多。如果可以直接输入变量就自动的写出Rs(),Request.Form(),Request.Querystring()等语句。将大大减轻编写着的负担!   还有时候可能需要这些格式语句中的变量,一个个的选中再复制也同样非常烦人。如果可以自动把这些Rs(),Request.Form(),Request.Querystring()等格式语句中的变量提取出来,那是多么领ASP代码编写着兴奋啊! ASP变量助手 可以满足这些要求,支持 【变量】->『格式』 和 『格式』->【变量】双向转换。不但预设了常用的5种转换格式,还支持自定义转换格式!绿色免费软件,不写注册表,不用安装!-many ASP code will be prepared to encounter when submitting a form or a URL that too much information, write Request.Form such phrases will be very troublesome. Sometimes even write as many as several dozen. If direct input variables can automatically write the Rs (), Request.Form (), Request.Querystring () statement. Be prepared to significantly reduce the burden! There may be times when they need to form statements variables, a further 000 copies of selected also very annoying. If these can be automatically Rs (), Request.Form (), Request.Querystring () formats statements extracted variables, it is how prepared from ASP code with e
    2023-05-03 04:25:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载