用vb制作时钟,简单易懂,容易制作// 声明常量,指定时钟的大小 Public Const ClockSize = 30 // 时钟颜色,角度换算 Public Const Pclor = &H33FF, Tmp = 3.14 / 180 // 定义常量,指明指针长度 Public Const Slen = 120, Mlen = 90, Hlen = 70 // 指针的偏转角度 Public Sg As Single, Mg As Single, Hg As Single // 指针的末端坐
内有设计窗体的图片,和运行效果图 该窗体由全图片构造,包括,标题栏,最大化、最小化、关闭按钮,一下为部分代码, Private Sub Form_load() Dim retValue As Long Image5.Picture = LoadPicture("D:\vb测试\vb实例\窗体的设计2\8.jpg") Image6.Picture = LoadPicture("D:\vb测试\vb实例\窗体的设计2\8.jpg") Image7.Picture = LoadPicture("D:
代码如下: [removed] <!– [removed]=function(){ objDiv = document.getElementById(‘drag’); drag(objDiv); }; function drag(dv){ dv.onmousedown=function(e){ var d=document; e = e || window.event; var x= e.layerX || e.offsetX; var y= e.layerY || e.offsetY;