自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 C#取得IP地址

<br />using System;using System.Net;class GetIP{ public static void Main() { IPHostEntry ipEntry = Dns.GetHostByName (localhost); IPAddress [] IpAddr = ipEntry.AddressList; for (int i = 0; i < IpAddr.Length;

2010-05-31 22:14:00 327

原创 C#发送邮件

<br />using System;using System.Web;using System.Web.Mail;public class TestSendMail{ public static void Main() { try { // Construct a new mail message MailMessage message = new MailMessage();

2010-05-31 22:13:00 271

原创 调用外部程序

<br />class Test{ static void Main(string[] args) { System.Diagnostics.Process.Start(notepad.exe); }} 

2010-05-31 22:12:00 273

原创 不太好用的文本框智能提示

<br />this.textBox1.AutoCompleteCustomSource.AddRange(new string[] { "aaaaaaa", "aabbbbb", "cccccc", "dddddd"}); this.textBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.textBox1.AutoC

2010-05-31 13:44:00 346

原创 【C#】截屏

string filePath = ""; private void tsbtnPrint_Click(object sender, EventArgs e) { //C#截屏打印 CaptureScreen(); if (this.saveFileDialog1.ShowDialo

2010-05-30 11:27:00 587

原创 【C#】将DataGridView数据保存到Excel中

 ng 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 Sy

2010-05-30 02:14:00 3787 1

原创 c#无刷新绘制验证码图片

using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using

2010-05-30 00:05:00 1076 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除