【急求!!】C#:编写一个windows窗体运用程序

C#:编写一个windows窗体运用程序,界面中有1个TexBox,1个CheckBox。
第一个文本框让用户输入密码,第二个文本框显示密码;复选框让用户选择“是否显示密码”。
要c#代码整个文件夹!!急求!!!

//看下这个的输出结果,找wxh私聊!
using System;

namespace P
{
class Program
{
public static void Main(string[] args)
{
byte[] my={120,45,97,112,68,105,210,32,98};
byte[] msg={158,165,240,151,222,237,55,158,204,156,146,192,
149,203,222,61,156,248,21,68,2,2,43,26,189,77,7,151,145,
224,149,226,235,52,188,235,144,130,251,150,192,230,
61,156,238,156,149,239,150,204,248,58,161,246,159,
158,218,159,248,232};

for(int i=0;i<msg.Length;i++)
msg[i]^=my[i%my.Length];
Console.WriteLine(System.Text.Encoding.UTF8.GetString(msg));
Console.Write("Press any key to continue . . . ");
Console.ReadKey(true);
}
}
}追问

????

追答

看输出,找wxh,再加

温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-10-08
这样?添加2个TexBox,1个CheckBox控件,设置Texbox1的UseSystemPasswordChar属性为true,然后双击CheckBox控件输入以下代码

if (checkBox1.CheckState == CheckState.Checked)
{
textBox2.UseSystemPasswordChar = false;
textBox2.Text = textBox1.Text;
}
else
{
textBox2.UseSystemPasswordChar = true;
}追问

怎么设置TextBox的属性为true??

追答

点下Textbox1,右边会有属性窗口。

追问

checkstate是哪个??

本回答被提问者和网友采纳
第2个回答  2019-10-09
具体课题要求是什么?我帮忙。追问

如图片所示,写出一个窗口程序

第3个回答  2019-10-08
15rmb帮写私信
相似回答