摘要: 阅读全文
posted @ 2013-09-28 11:14 iEvent 阅读(381) 评论(1) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2013-09-27 11:36 iEvent 阅读(698) 评论(0) 推荐(0) 编辑
摘要: //使用一个Button,鼠标移入listView显示,移出隐藏 private void button2_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e) { listView1.Visibility = Visibility.Visible; } private void button2_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e) ... 阅读全文
posted @ 2013-09-24 10:41 iEvent 阅读(498) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Net;using System.Net.Sockets;using System.Text;using System.IO;using System.Collections;using System.Collections.Generic;using System.Text.RegularExpressions;using System.Globalization;namespace UpdateSys.Common{ /// /// ftp文件上传、下载操作类 /// public class FTPHelpe... 阅读全文
posted @ 2013-09-18 15:41 iEvent 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 重叠控件点击透过用HitTest属性做修改xaml:IsHitTestVisible="False"。简答的登录模块: private void signIn_Click(object sender, RoutedEventArgs e) { int i = 0; string str = signIn.Content.ToString(); if (textBox1.Text.ToString() == "" && str == "登陆") { S... 阅读全文
posted @ 2013-09-18 15:38 iEvent 阅读(248) 评论(0) 推荐(0) 编辑
摘要: void Loaded(object sender, RoutedEventArgs e) { ContextMenu contextMenu = new ContextMenu(); contextMenu.Background = new SolidColorBrush(Colors.Transparent); MenuItem item1 = new MenuItem(); item1.Header = "红色"; item1.Click += new RoutedE... 阅读全文
posted @ 2013-09-17 16:06 iEvent 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://blog.csdn.net/ou8811/article/details/5295780整个程序大致可以分为2个部分,第一部分是实现单个文件下载的方法[c-sharp] view plaincopy/// /// 单个文件下载方法 /// /// 保存文件的本地路径 /// 下载文件的FTP路径 public void download(string adss, string ftpadss) { //FileMode常数确定如何打开或创建文件,指定操作系统应创建新文件。 //FileMode.Create如果文件已存在,它将被改写... 阅读全文
posted @ 2013-09-12 09:03 iEvent 阅读(1473) 评论(0) 推荐(0) 编辑
摘要: package book.String;import java.io.UnsupportedEncodingException;/** *//*** 转换字符串的编码* @author joe**/public class ChangeCharset ...{/** *//** 7位ASCII字符,也叫作ISO646-US、Unicode字符集的基本拉丁块 */public static final String US_ASCII = "US-ASCII";/** *//** ISO拉丁字母表 No.1,也叫做ISO-LATIN-1 */public static fina 阅读全文
posted @ 2013-09-10 09:19 iEvent 阅读(1353) 评论(0) 推荐(0) 编辑
摘要: 小技巧把execl.exe转换成dll1.把excel.exe复制到CProgram FilesMicrosoft Visual Studio .NET 2003SDKv1.1Bin夹中,和TlbImp.exe同目录2.在这个文件夹中写一个bat文件---------------------------TlbImp.exe EXCEL.EXEpause---------------------------3.执行bat后,在这个文件夹中就会生成Excel.dll 阅读全文
posted @ 2013-09-09 15:10 iEvent 阅读(1221) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Data;using System.Data.Odbc;using System.Linq;using System.Reflection;using System.Text;using System.Windows;using System.Windows.Input;using Excel = Microsoft.Office.Interop.Excel;namespace ExcelExportImport{ public class ExcelHelper ... 阅读全文
posted @ 2013-09-09 15:06 iEvent 阅读(991) 评论(0) 推荐(0) 编辑