Windows窗体应用程序---添加---小…
来源:互联网 发布:大月薰 知乎 编辑:程序博客网 时间:2024/06/03 20:01
----程序截图
public partial classForm1 : Form { public Form1() { InitializeComponent(); } private void textBox1_TextChanged(object sender,EventArgs e) { stringtextBox1 = Console.ReadLine(); }
private voidlistBox1_SelectedIndexChanged(object sender, EventArgs e) { Console.WriteLine("textBox1.Text"); }
private void button1_Click(object sender,EventArgs e) { listBox1.Items.Add(textBox1.Text); }
private void button2_Click(object sender,EventArgs e) { if(listBox1.SelectedIndex!= -1) listBox1.Items.RemoveAt(listBox1.SelectedIndex); }
private void button3_Click(object sender,EventArgs e) { listBox1.Items.Clear(); }
private void button4_Click(object sender,EventArgs e) { Application.Exit; } }
----代码实现
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication3
{
}
0 0
- Windows窗体应用程序---添加---小…
- 如何:向 Windows 窗体应用程序添加工具栏
- Windows窗体应用程序
- 2-Windows 窗体应用程序模型
- 创建 C# Windows 窗体应用程序
- Windows窗体编程基础学习:使用 NotifyIcon 组件向任务栏添加应用程序图标
- 为Office文档添加Windows窗体控件:在运行时向应用程序级外接程序中添加控件
- C#窗体应用程序添加现有窗口项
- Win32窗体应用程序如何添加资源文件?
- c# 窗体应用程序 如何添加图片
- Windows 窗体应用程序中的数据绑定
- 使用 ClickOnce 部署 Windows 窗体应用程序
- 基于桌面的Windows(窗体)应用程序
- 使用 ClickOnce 部署 Windows 窗体应用程序
- windows应用程序窗体间的属性调用
- 使用 ClickOnce 部署 Windows 窗体应用程序
- 使用 ClickOnce 部署 Windows 窗体应用程序
- 使用 ClickOnce 部署 Windows 窗体应用程序
- Java面试题全集(四)
- CALayer
- 每日小记2013.3.1
- Vuejs(16)——Vue插件写、用详解(附demo)
- jquery取table中某一行td的值
- Windows窗体应用程序---添加---小…
- HTML5 绘制时钟
- 用MapReduce把hdfs数据写入HBase中
- HTML5绘制太阳系
- PowerDesigner生成SQL数据库
- .NET刷新页面的六种方法
- C#操作Word模板并且修改书签
- 数据库中联合查询和连接查询的区别…
- 运用Python/Django和Swift 3开发UberEats