• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
COCPOWER
博客园 首页 新随笔 联系 订阅 订阅 管理

随笔分类 -  学习笔记

 
C#中的格式化字符串
摘要:从今天起,积累格式化字符串一、准备工作: 我们需要在web.Config中指定区域性,不然中文Server换英文Server,¥就变$。 <globalizationculture="zh-CN"uiCulture="zh-CHS"/>查看区域性名称列表二、货币(一)C或者c1.补齐2位小数 Console.Write("{0:C}", 25); ¥25.00 Console.Writ... 阅读全文
posted @ 2005-12-02 17:55 夸克动力 阅读(558) 评论(0) 推荐(0)
[C# WinForm] How to: Get the Name of a DataGrid Column
摘要:This is a formidable mission!:)But a complex question always has a simple answer private void dataGrid1_MouseDown(object sender, MouseEventArgs e){ DataGrid.HitTestInfo hti= ((DataGrid) sender).Hi... 阅读全文
posted @ 2005-08-13 15:33 夸克动力 阅读(403) 评论(0) 推荐(0)
[C# winform]How To:Create and use TrayIcon Control
摘要:step1. Create a solution with C# winfrom project. now,we hava a new Form named "form1" step2. Drag-Drop an NotifyIcon control named "notifyIcon1" step3. Drag-Drop a ContextMenu control named "contextM... 阅读全文
posted @ 2005-08-11 23:23 夸克动力 阅读(792) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3