文件名称:VB设计的屏保
介绍说明--下载内容均来自于网络,请自行研究使用
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 fr a me of the window appearance, but as screen protection procedures should be provided to non-Window fr a me, and as a maximum. 2, hide and display the mouse cursor in Visual Basic Application Program hide and display the mouse cursor need to use Windows API function which is called ShowCursor. When using parameters True called to show the mouse cursor, using parameter values False call, the mouse curso
(系统自动生成,下载前可以参看下载内容)
下载文件列表
VB设计的屏保.txt