如何停止按钮的进度

如何停止按钮的进度

本文介绍了如果...如何停止按钮的进度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

        If Val(TextBox1.Text) = "0" Then
            Label2.Visible = True
        ElseIf Val(TextBox2.Text) = "0" Then
            Label2.Visible = True
        ElseIf Val(TextBox3.Text) = "0" Then
            Label2.Visible = True
        End If
Next codes.....



if Val(textbox1.text)=0 - Val(TextBox2.Text)=0 - (TextBox3.Text)=0然后label2会说:ENTER数字!从那里button1_click的进度将停止,所以下一个代码.....将不会继续,直到用户输入正确的数字,再次点击按钮,基本上我想停止button1_click的进度如果我说的事情不是它们应该在用户点击按钮之后


if Val(textbox1.text) = "0" - Val(TextBox2.Text) = "0" - (TextBox3.Text) = "0" then label2 will say: ENTER NUMBERS! and from there progress of button1_click will be stop so "Next codes....." will not continue until user enter proper numbers, and click again on Button, Basically I want to stop progress of button1_click If the things I said were not as they should be after user click button

推荐答案

If Val(TextBox1.Text) = "0" Or Val(TextBox2.Text) = "0" Or Val(TextBox3.Text) = "0" Then
     Label2.Visible = True
     Return
 End If


这篇关于如果...如何停止按钮的进度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 18:22