如何使用“然后”声明? [英] How to use "Then" statement?

查看:79
本文介绍了如何使用“然后”声明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对编程有点新意,如果有人能帮我解决这个问题,我会感激不尽。我有:

Hi Im a little bit new to programming and would be reallt grateful if anyone could help me with this problem Im having:

我想在显示时显示一个消息框我插入的进度条已满载(100)。我手动将进度条的值设置为100,以便立即进入。这是我写的代码:

I want to display a message box when the progressbar I have inserted are fully loaded(100). I manually set the value of the progressbar to 100 so it goes there instantly. This is the code i wrote:

  private void progressBar1_Click(object sender,EventArgs e)

        {

            if(progressBar1.Value == 100)

            {

                MessageBox.Show(" Hi")

            }¥b $ b        }

 private void progressBar1_Click(object sender, EventArgs e)
        {
            if (progressBar1.Value == 100)
            {
                MessageBox.Show("Hi")
            }
        }

当我运行代码时,它告诉我有"构建错误"。我得到错误代码"CS1002"并且描述是"预期的"。请帮忙! 

When i run the code it tells me there were "build errors" and i get the error code "CS1002" and the description is "expected". Please help! 

推荐答案

奇怪的是它甚至可以编译。我想念一个分号";""
Strange that it even compiles. I miss a semicolon ";"


这篇关于如何使用“然后”声明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆