给你mail了一份
你自己修改一下公式就可以了
你自己修改一下公式就可以了
解决方案 »
- 我想在摄像头的预览窗口中,使用鼠标画一个矩形,选中要截取的图像,然后保存图像,怎么实现呢?
- 求Visual Basic 6.0 控件实用程序设计100例随书原代码
- 本人做ASP程序做了2年了,现在想学ASP,请问各位高手,有ASP基础,是不是对VB的学习有所帮助?
- COM,DCOM,COM+,ACtiveX中文怎么解释!
- webbrower怎样获得网页中javascript变量的值
- 关于VB操作EXCEL的问题,大虾救命
- 因为有了VB 我的目标更加明确了 但..........
- VB中如何实现软件自动全屏显示
- zyl910(910:分儿,我来了!)
- 一个多线程的问题,请大家多多指教。
- sql server 中view 无法计算记录个数,借此想详细问一下数据库的游标的相关知识
- 如何在VB中调用用VC编写的DLL中的类?请高手指教!
界面是要触摸屏幕的
Type=Exe
Form=Form1.frm
Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#D:\WIN98\SYSTEM\StdOle2.Tlb#OLE Automation
Startup="Form1"
Command32=""
Name="Converter"
HelpContextID="0"
CompatibleMode="0"
MajorVer=1
MinorVer=0
RevisionVer=0
AutoIncrementVer=0
ServerSupportFiles=0
VersionCompanyName="someone"
CompilationType=0
OptimizationType=0
FavorPentiumPro(tm)=0
CodeViewDebugInfo=0
NoAliasing=0
BoundsCheck=0
OverflowCheck=0
FlPointCheck=0
FDIVCheck=0
UnroundedFP=0
StartMode=0
Unattended=0
Retained=0
ThreadPerObject=0
MaxNumberOfThreads=1
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "Form1"
ClientHeight = 2370
ClientLeft = 45
ClientTop = 330
ClientWidth = 6690
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2370
ScaleWidth = 6690
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command4
Caption = "退出"
Height = 855
Left = 5760
TabIndex = 17
Top = 1200
Width = 735
End
Begin VB.CommandButton Command3
Caption = "退格"
Height = 375
Left = 5760
TabIndex = 16
Top = 720
Width = 735
End
Begin VB.CommandButton Command2
Caption = "清除"
Height = 375
Left = 5760
TabIndex = 15
Top = 240
Width = 735
End
Begin VB.CommandButton Command1
Caption = "."
Height = 375
Index = 10
Left = 5160
TabIndex = 14
Top = 1680
Width = 375
End
Begin VB.CommandButton Command1
Caption = "1"
Height = 375
Index = 9
Left = 5160
TabIndex = 13
Top = 240
Width = 375
End
Begin VB.CommandButton Command1
Caption = "1"
Height = 375
Index = 8
Left = 4680
TabIndex = 12
Top = 240
Width = 375
End
Begin VB.CommandButton Command1
Caption = "1"
Height = 375
Index = 7
Left = 4200
TabIndex = 11
Top = 240
Width = 375
End
Begin VB.CommandButton Command1
Caption = "1"
Height = 375
Index = 6
Left = 5160
TabIndex = 10
Top = 720
Width = 375
End
Begin VB.CommandButton Command1
Caption = "1"
Height = 375
Index = 5
Left = 4680
TabIndex = 9
Top = 720
Width = 375
End
Begin VB.CommandButton Command1
Caption = "1"
Height = 375
Index = 4
Left = 4200
TabIndex = 8
Top = 720
Width = 375
End
Begin VB.CommandButton Command1
Caption = "1"
Height = 375
Index = 3
Left = 5160
TabIndex = 7
Top = 1200
Width = 375
End
Begin VB.CommandButton Command1
Caption = "1"
Height = 375
Index = 2
Left = 4680
TabIndex = 6
Top = 1200
Width = 375
End
Begin VB.CommandButton Command1
Caption = "1"
Height = 375
Index = 1
Left = 4200
TabIndex = 5
Top = 1200
Width = 375
End
Begin VB.CommandButton Command1
Caption = "0"
Height = 375
Index = 0
Left = 4200
TabIndex = 4
Top = 1680
Width = 855
End
Begin VB.OptionButton Option1
Caption = "英寸"
Height = 375
Index = 2
Left = 2760
TabIndex = 3
Top = 1560
Width = 735
End
Begin VB.OptionButton Option1
Caption = "尺"
Height = 375
Index = 1
Left = 1920
TabIndex = 2
Top = 1560
Width = 615
End
Begin VB.OptionButton Option1
Caption = "厘米"
Height = 375
Index = 0
Left = 960
TabIndex = 1
Top = 1560
Value = -1 'True
Width = 735
End
Begin VB.TextBox Text1
Alignment = 1 'Right Justify
Height = 375
Left = 1080
Locked = -1 'True
MaxLength = 24
TabIndex = 0
Top = 600
Width = 2175
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim lastMode As Integer
Dim Tmp As SinglePrivate Sub Command1_Click(Index As Integer)
If (Index = 0 Or Index = 10) And Text1 = "" Then
Text1 = Text1 & "0."
Else
Text1 = Text1 & Command1(Index).Caption
End If
End SubPrivate Sub Command2_Click()
Text1 = ""
End SubPrivate Sub Command3_Click()
Text1 = Left(Text1, Len(Text1) - 1)
End SubPrivate Sub Command4_Click()
Unload Me
End SubPrivate Sub Form_Load()
Dim i As Integer
For i = 0 To 9
Command1(i).Caption = i
Next
End SubPrivate Sub Option1_Click(Index As Integer)
On Error GoTo errhdlr
If Text1 = "" Then lastMode = Index: Exit Sub
Tmp = CDbl(Text1)
Select Case lastMode
Case 0 'cm
Select Case Index
Case 1 'to chi
Tmp = Tmp * 3 / 100
Case 2 'to inch
Tmp = Tmp / 2.54
End Select
Case 1 'chi
Select Case Index
Case 0 'to cm
Tmp = Tmp * 100 / 3
Case 2 'to inch
Tmp = Tmp * 100 / 7.62
End Select
Case 2
Select Case Index 'Inch
Case 0 'to cm
Tmp = Tmp * 2.54
Case 1 'to chi
Tmp = Tmp * 7.62 / 100
End Select
End Select
If Tmp <> Int(Tmp) Then
Text1 = Format(Tmp, "############0.############")
Else
Text1 = Tmp
End If
lastMode = Index
Exit Sub
errhdlr:
MsgBox "Error:" & Err.Number & " - " & Err.Description
lastMode = Index
End Sub
不过现在IT里面最赚钱的行业好像都是用C++的,所以C++程序员这两年比较牛,加上VB好学,很多初学者都从VB开始,所以VB程序员的水平差距很大,有些不成熟的程序也给攻击留下口实。
但好学也正说明的VB本身不错。毕竟易于掌握也是个优点。