Vista风格按钮 [英] Vista Style Button

查看:62
本文介绍了Vista风格按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Vista样式的按钮创建了一个计算器,当我运行该应用程序并按数字时,它无法在文本框中显示数字..

这是示例:

I have created a calculator using vista style buttons, and when i''m running the application and i press the numbers it can''t display the numbers on the text box..

here is the example:

private void vistaButtonSeven_Click(object sender, System.EventArgs e)
{
        if (inputStatus)
        {
          txtInputResult.Text += vistaButtonSeven.Text;
        }
        else
        {
          txtInputResult.Text = vistaButtonSeven.Text;
          inputStatus = true;
        }
}


请帮忙.

Roni Jata


Please help.

Roni Jata

推荐答案

这段代码对我来说没问题.

您确定txtInputResult是要在其中显示文本的正确文本框吗?
This code looks ok to me.

You sure txtInputResult is the right text box you want to display the text in?


Please subit some additional data like

1. The name of textbox control U R Using

2.The code is written under Button_Click event or not

3.The inputStatus is previously set to TRUE or not Before clicking the button.



首先检查所有这些关于Ur自我

并保持冷静:cool :: cool :: cool :: cool:



First of all check all these for Ur self

And Be Cool:cool::cool::cool::cool:


这篇关于Vista风格按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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