2012年7月1日

C#图片的特效设置

摘要: 在form1里面设置按钮下可以弹出图片特效窗口form1{设置button{from2 ff=new from2();ff.ig=picture.image;ff.show();}}from2{public Image ig;//窗体加载private void t图片特效_Load(object sender, EventArgs e){toolStripComboBox1.Text = "浮雕";pictureBox1.Image = ig;pictureBox2.Image = ig;//comboxlist1里面的数组功能string a = "浮雕&qu 阅读全文

posted @ 2012-07-01 09:27 枫叶㈱≌海】 阅读(408) 评论(0) 推荐(0) 编辑

2012年6月22日

映射部分using System.Reflection;

摘要: public class L { static void Main() { #region ZL1这里我们用映射获得类一里面的成员! Console.WriteLine("\n\n我们获取类一里面的成员!"); Type types = typeof(L1); //获取字段! //获取一个字段的方法 FieldInfo fid =types.GetField("name"); Console.WriteLine("L1里面的字段:"+fid.GetValue(l)); //获取两个字段的方法 FieldInfo[] fd = type 阅读全文

posted @ 2012-06-22 15:46 枫叶㈱≌海】 阅读(129) 评论(0) 推荐(0) 编辑

2012年6月21日

C#继承类,继承构造函数实例

摘要: public class L1 { //字段! public string name; public int age; //构造函数 public L1() { Console.WriteLine("类1的构造函数!"); } public L1(string name, int age) { Console.WriteLine("☆★●→" + name + "■■&▲" + age); } //方法 public string F1() { return "欢迎:" + name + "!!!&quo 阅读全文

posted @ 2012-06-21 11:54 枫叶㈱≌海】 阅读(1287) 评论(0) 推荐(0) 编辑

2012年6月14日

I/O流。简单利用File.copy

摘要: 首次在博客上发表文章,其中多有不足。在windows窗口中建立的程序!public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { //首先将我的音乐文件付给Listbox1中! //我们先将路径连接起来再查看文件夹里的音乐 string lj = "D:\\Kugou"; //Directory.Exists(lj); string[] yu=Directory.GetFi 阅读全文

posted @ 2012-06-14 15:49 枫叶㈱≌海】 阅读(166) 评论(0) 推荐(0) 编辑

导航