需要在窗体增加imageList和listview控件,并把ListView控件的LargeImageList设置为imageList1 ListView控件显示图片的大小可以在imageList1控件中调整ImageSize属性,如果图片失真,可以设置imageList1控件的ColorDepth值为Depth32Bit. 窗体设计: 参考代码: using System; using System.Collections.Gene...【阅读全文】
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 计算器{ public partial class Form1 : Form { Boo...【阅读全文】
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; using System.Runtime.InteropServices; namespace TaskBar { public pa...【阅读全文】