解决方案 »
- 在线急求!vb6调用vc++生成的dll出现“在其上下文中,该请求的地址无效”
- 用RichTextBox如何将图片保存为一个RFT文件
- 奇怪的取字串问题,百思不得其解
- 如何在VB中将Word原有的菜单屏蔽掉,并且使文档的最小化按扭为不可用(只能关闭)
- 急死我了,请高手指点!!!!
- 请问:怎么实现在MSHFlexGrid或类似功能控件中,将一列数据显示为CheckBox形式?
- 对于一个已经做好的系统,已经放在一个文件夹了,但是运行的时候为什么会提示找不到库或工程呢?
- MMControl控件编程(指定多个音频同时输出到不同设备)
- 一个简单的问题,关于选项按钮控件
- 我想这不是个难题,但我不知该怎么做。
- 实时曲线:用VB怎么实现ProEssentials中demo 115 real-time1的功能
- VB无法使用向函数的指针的 DLL ?不支持回调?
Private Sub picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
x1 = X: y1 = Y
End If
List1.AddItem "圆心坐标X:" & x1 & " Y:" & y1
End Sub
Private Sub picture1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Picture1.AutoRedraw = False
Picture1.Refresh
Picture1.PSet (x1, y1)
Picture1.Circle (x1, y1), Sqr((X - x1) ^ 2 + (Y - y1) ^ 2)
End If
End Sub
Private Sub picture1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Picture1.AutoRedraw = True
List1.AddItem "圆半径:" & Sqr((X - x1) ^ 2 + (Y - y1) ^ 2)
End If
End Sub