资源简介
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.Visualstyles.VisualstyleElement.Button;
using CheckBox = System.Windows.Forms.CheckBox;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
//button2.Size = new Size(200 150);
RefreshFont();
}
private void RefreshFont()
{
listBox1.Items.Add(“篮球“);
listBox1.Items.Add(“足球“);
listBox1.Items.Add(“羽毛球“);
listBox1.Items.Add(“排球“);
listBox1.Items.Add(“网球“);
listBox1.Items.Add(“乒乓球“);
}
private void button1_Click(object sender EventArgs e)
{
//Console.Write(“Hello World“);
MessageBox.Show(“hello world!“);
MessageBox.Show(“hello world!“ “友情提示“);
MessageBox.Show(“hello world!“ “友情提示“ MessageBoxButtons.OKCancel);
MessageBox.Show(“hello world!“ “友情提示“ MessageBoxButtons.OKCancel MessageBoxIcon.Warning);
MessageBox.Show(“hello world!“ “友情提示“ MessageBoxButtons.OKCancel MessageBoxIcon.Error);
MessageBox.Show(“hello world!“ “友情提示“ MessageBoxButtons.OKCancel MessageBoxIcon.Information);
MessageBox.Show(“hello world!“ “友情提示“ MessageBoxButtons.OKCancel MessageBoxIcon.Stop);
}
private void button2_Click(object sender EventArgs e)
{
//if (button2.Text == “begin“)
//{
// button2.Text = “STOP“;
//}
//else {
// button2.Text = “else“;
//}
button2.Text = button2.Text == “begin“ ? “stop“ : “else“;
//button2.Width = 200;
//button2.Height = 200;
//button2.Size = new Size(200 150);
}
private void toolTip1_Popup(object sender PopupEventArgs e)
{
}
private void button2_MouseEnter(object sender EventArgs e)
{
ToolTip p = new ToolTip();
//p.ShowAlways = true;
p.IsBalloon = true;
p.SetToolTip(this.button2 “提示“);
}
private void button5_Click(object sender EventArgs e)
{
if (listBox1.Items.Count > 0)
{
if (listBox1.SelectedIndex > -1)
{
while (listBox1.SelectedIndex != -1)
{
listBox2.Items.Add(listBox1.SelectedItem);
listBox1.Items.Remove(listBox1.SelectedItem);
} ;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 36864 2020-12-01 09:54 windows窗体+控件操作\WindowsFormsApp1\.vs\WindowsFormsApp1\v16\.suo
文件 189 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\App.config
文件 15360 2020-12-01 09:53 windows窗体+控件操作\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe
文件 189 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe.config
文件 36352 2020-12-01 09:53 windows窗体+控件操作\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.pdb
文件 5094 2020-06-29 14:48 windows窗体+控件操作\WindowsFormsApp1\Form1.cs
文件 15259 2020-06-29 14:48 windows窗体+控件操作\WindowsFormsApp1\Form1.Designer.cs
文件 6186 2020-06-29 14:48 windows窗体+控件操作\WindowsFormsApp1\Form1.resx
文件 214 2020-12-01 09:53 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\.NETfr
文件 1435 2020-06-29 09:23 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7208 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 42 2020-06-28 15:26 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.CoreCompileInputs.cache
文件 975 2020-06-28 17:54 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.FileListAbsolute.txt
文件 1012 2020-12-01 09:53 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csproj.GenerateResource.cache
文件 2379 2020-12-01 09:53 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.csprojAssemblyReference.cache
文件 15360 2020-12-01 09:53 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.exe
文件 180 2020-12-01 09:53 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Form1.resources
文件 36352 2020-12-01 09:53 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.pdb
文件 180 2020-12-01 09:53 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\WindowsFormsApp1.Properties.Resources.resources
文件 528 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\Program.cs
文件 1324 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\Properties\AssemblyInfo.cs
文件 2845 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\Properties\Resources.Designer.cs
文件 5612 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\Properties\Resources.resx
文件 1103 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\Properties\Settings.Designer.cs
文件 249 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\Properties\Settings.settings
文件 3620 2020-06-28 15:26 windows窗体+控件操作\WindowsFormsApp1\WindowsFormsApp1.csproj
文件 1137 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\WindowsFormsApp1.sln
目录 0 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\.vs\WindowsFormsApp1\v16
目录 0 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\obj\Debug\TempPE
目录 0 2020-06-28 15:23 windows窗体+控件操作\WindowsFormsApp1\.vs\WindowsFormsApp1
............此处省略11个文件信息
- 上一篇:bartender二次开发
- 下一篇:C#调用托管C++的dll
评论
共有 条评论