无法在标签上显示消息。请查看下面的代码 [英] not able to show the msg on label .Please have a look through the code below

查看:68
本文介绍了无法在标签上显示消息。请查看下面的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Protected Sub ButtonAdd_Click(sender As Object, e As EventArgs)
       a = a + 1
       If a <= 8 Then
           AddNewRow()
       Else
           lblmsg.Text = " You can set only 8 Objectives"
       End If

   End Sub

推荐答案

显示addnewrow()的一些代码,如果您的值为a,也会看到>只有它才会运行其他部分。





你的情况下a的价值是多少?
show some code for addnewrow() , also see that if your value of a > 8 than only it will run the else part.


what is the value of a in your case ?


这篇关于无法在标签上显示消息。请查看下面的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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