• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
张勇涛
博客园    首页    新随笔    联系   管理    订阅  订阅
2011年3月15日
C#中Append()用法
摘要: Append()用法Class Preson{private string firstName;private string middletName;private string lastName; //定义3个私有变量 firstName middleName lastNamePublic Preson(string fn,string mn,string ln) //构造函数{firstName=fn;middleName=mn;lastName=ln;}public void displayFull Name() //定义一个方法名{StringBuilder FullName =new 阅读全文
posted @ 2011-03-15 09:30 张勇涛 阅读(10113) 评论(2) 推荐(0)
超炫JS拖拽翻页效果(左右拖拽html源码)
摘要: <html> <head> <title>blog</title> <FCK:meta http-equiv=content-type content="text/html; charset=gb2312" /> <style> body{ border:0px; margin:0px; overflow:hidden; background-color:transparent; font-family:宋体; } .page{ position:absolute; width:700px; borde 阅读全文
posted @ 2011-03-15 09:28 张勇涛 阅读(969) 评论(0) 推荐(0)
C#操作excel(多种方法比较)
摘要: 我们在做excel资料的时候,通常有以下方法。一.导入导出excel常用方法:1.用查询表的方式查询并show在数据集控件上。代码 public static string strCon = " Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source =C:\\08.xls;Extended Properties=Excel 8.0"; public static DataSet ds; protected void Page_Load(object sender, EventArgs e) {OleDbConnection con 阅读全文
posted @ 2011-03-15 09:26 张勇涛 阅读(620) 评论(0) 推荐(0)
JS实现翻书效果(html源码)
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>JS实现图片翻书效果-懒人图库</title><META http-equiv=imagetoolbar content=no><STYLE type=text/css>#center {LEFT: 50 阅读全文
posted @ 2011-03-15 09:24 张勇涛 阅读(2446) 评论(0) 推荐(0)
C#操作Excel电子表格
摘要: 添加引用:Microsoft Excel 11.0 Object Library ;添加:using Microsoft.Office.Interop.Excel;★打开Excel文件============================ Microsoft.Office.Interop.Excel.Application excel1 = new Microsoft.Office.Interop.Excel.Application(); Workbook workbook1 = excel1.Workbooks.Open(@"E:\aaa.xls", Type.Miss 阅读全文
posted @ 2011-03-15 09:22 张勇涛 阅读(469) 评论(0) 推荐(1)
ASP.NET冒泡排序(C#)
摘要: 冒泡排序(BubbleSort)的基本概念是:依次比较相邻的两个数,将小数放在前面,大数放在后面。即首先比较第1个和第2个数,将小数放前,大数放后。然后比较第2个数和第3个数,将小数放前,大数放后,如此继续,直至比较最后两个数,将小数放前,大数放后。重复以上过程,仍从第一对数开始比较(因为可能由于第2个数和第3个数的交换,使得第1个数不再小于第2个数),将小数放前,大数放后,一直比较到最大数前的一对相邻数,将小数放前,大数放后,第二趟结束,在倒数第二个数中得到一个新的最大数。如此下去,直至最终完成排序。 由于在排序过程中总是小数往前放,大数往后放,相当于气泡往上升,所以称作冒泡排序。 用二重循 阅读全文
posted @ 2011-03-15 09:20 张勇涛 阅读(1363) 评论(0) 推荐(0)
在C#应用程序中嵌入暴风影音播放器
摘要: 先去下载一个 暴风影音2007 然后坐下冲杯咖啡,慢慢来在C#应用程序中嵌入暴风影音播放器步骤1、建立新项目步骤2、在项目中导入暴风影音中的mps.dll,(“Com组件”中名为“StormPlayer Object”)工具箱里就出现了名为“StormPlayer Object”的组件,直接拖到窗体上就可以用了。步骤3、 设置窗体FormBorderStyle为None; 设置axStormPlayer1.controlBarVisible=0; 设置axStormPlayer1.infoBarVisible=0; 设置axStormPlayer1.titleVisible=0; 设置axSt 阅读全文
posted @ 2011-03-15 08:40 张勇涛 阅读(1478) 评论(1) 推荐(1)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3