摘要: 1.两个窗体的联系 1)、构造传递 public Form2 (string m) { InitializeComponent(); label1.Text = m; } //Form 1调用 private void button1_Click(object sender, EventArgs e 阅读全文
posted @ 2017-10-06 21:24 吾_东峰 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 3.1~3.1 菜单栏:menuStrip; 状态栏的显示:this.toolStripStatusLabel1.Text = "大窗体"; 背景色设置:this.BackColor=Color.Red; 位置设置:label1.Location = new Point(92, 50); textb 阅读全文
posted @ 2017-09-24 14:17 吾_东峰 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 1.1、输入一个正整数n,如果是偶数则求n以内的所有偶数和,奇数则求n以内的所有奇数的和。 static void Main(string[] args) { int result=0; Console.WriteLine("请输入一个正整数:"); int n = Convert.ToInt32( 阅读全文
posted @ 2017-09-16 18:45 吾_东峰 阅读(635) 评论(0) 推荐(0) 编辑
摘要: 1.什么是.Net ? .NET的精髓在于Web Service. 不常用的foreach循环用法: 2.分隔: string str="a,b c.d"; string []a=str.Split(new char[3]{',',' ','.'}); foreach (string i in a) 阅读全文
posted @ 2017-09-16 12:24 吾_东峰 阅读(204) 评论(0) 推荐(0) 编辑