在c#中显示字符串的字符串 [英] show charachter of string in c#

查看:212
本文介绍了在c#中显示字符串的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用c#在windows窗体中创建hangman。
I'm trying to make hangman in a windows form with c#.

推荐答案

Hi IssamHan,



感谢您发布此处。



>>我如何显示字母是什么?已经尝试了吗?

Hi IssamHan,

Thank you for posting here.

>>How can i show the letters what the player already tried?

请尝试以下代码:

Please try the code as follows:

        public Form1()
        {
            InitializeComponent();
            labelGebruikteLetters.Text = "";
        }
        labelGebruikteLetters.Text += c.ToString(); 



>>我还可以连续显示好的字母吗?

>>Can I also show the good letters in a row?

以下是完整代码:


这篇关于在c#中显示字符串的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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