求高手将以下vb6.0代码转化为vb.net可执行源码,急用 30

OptionExplicitPrivateSubCommand1_Click()IfText5.Text=Text2.TextThenMsgBox"恭喜您,顺利通过验证"... Option Explicit

Private Sub Command1_Click()
If Text5.Text = Text2.Text Then
MsgBox "恭喜您,顺利通过验证", , "= ="
Else
MsgBox "出错啦", , "= ="
End If
End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Form_Load()

Text2.Text = ""
Dim strlen As Long
Dim i, j As Long
Dim num() As Variant
Dim sn() As Integer
strlen = Len(Text1.Text)
ReDim num(1 To strlen)
ReDim sn(1 To strlen)
For i = 1 To strlen
num(i) = Mid(Text1.Text, i, 1)
Randomize
restart: sn(i) = CInt((Rnd * (strlen - 1)) + 1)
For j = 1 To strlen
If i = j Then GoTo jump
If sn(j) = sn(i) Then
GoTo restart
End If
jump: Next j
Next i
For i = 1 To strlen
Text2.Text = Text2.Text + num(sn(i))
Next i
End Sub

Private Sub Label4_Click()

Text2.Text = ""
Dim strlen As Long
Dim i, j As Long
Dim num() As Variant
Dim sn() As Integer
strlen = Len(Text1.Text)
ReDim num(1 To strlen)
ReDim sn(1 To strlen)
For i = 1 To strlen
num(i) = Mid(Text1.Text, i, 1)
Randomize
restart: sn(i) = CInt((Rnd * (strlen - 1)) + 1)
For j = 1 To strlen
If i = j Then GoTo jump
If sn(j) = sn(i) Then
GoTo restart
End If
jump: Next j
Next i
For i = 1 To strlen
Text2.Text = Text2.Text + num(sn(i))
Next i
End Sub
Private Sub Timer1_Timer()
Label5.Caption = Text2.Text
End Sub
展开
 我来答
ryuginka
2011-12-15 · TA获得超过956个赞
知道小有建树答主
回答量:2839
采纳率:0%
帮助的人:749万
展开全部
用vb。net直接打开vb的工程,会出现转换界面的,你的这段代码应该可以直接转换编译的。
freeparadise
2011-12-15 · TA获得超过250个赞
知道小有建树答主
回答量:238
采纳率:0%
帮助的人:257万
展开全部
winform还是webform?
追问
winform
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式