摘要:
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 ErrorProvider{ public partial class Form1 : Form { public Form1() { InitializeCompo... 阅读全文
摘要:
//可手动添加根节点和子节点,也可代码添加 //两个根节点 TreeNode tn1 = treeView1.Nodes.Add("省份"); TreeNode tn2 = treeView1.Nodes.Add("市区"); //三个子节点,用于显示省份 TreeNode tn01 = new TreeNode("河南省"); TreeNode tn02 = new TreeNode("江苏省"); TreeNode... 阅读全文
摘要:
代码添加图片:pictureBox1.Image = Image.FromFile(@"F:\360wallpaper_dt.jpg");http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=ZH-CN&k=k(SYSTEM.WINDOWS.FORMS.PICTUREBOX);k(TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV4.0%22);k(DevLang-CSHARP)&rd=true 阅读全文
摘要:
代码添加图片 ImageList1.Images.Add(Image.FromFile("c:\\windows\\FeatherTexture.bmp")); //设置控件的排列样式 listView1.View = View.Tile; //设置属性 listView1.LargeImageList = imageList1; //手动添加图片或者用代码添加 imageList1.Images.Add(Image.FromFile(@"F:\图片\Pictur... 阅读全文