
.NET
sjefy
.NET,物资管理系统、设备管理系统开发
展开
-
asp.net连接Access数据库
Dim myConnection As OleDbConnection Dim myCommand As OleDbCommand sub page_load(sender as Object,e as EventArgs) 1.连接数据库 dim dbname as string dbname=server.mappath("author原创 2005-11-23 16:22:00 · 499 阅读 · 0 评论 -
VS 2008 概述 2--对象、集合初始化器
1、 对象初始化器 NET框架中的类型非常依赖于属性的使用。当生成对象实例和使用新的类型时,写出象下面这样的编码是非常常见的情形: Person item = new Person(); item.PersonID = 1; item.FirstName = "steven";转载 2008-07-02 12:06:00 · 324 阅读 · 0 评论 -
Silverlight 2.0 beta2 自定义控件调用方法
Page.xaml: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:XXX ="clr-namespace:SilverlightApplic原创 2008-08-21 17:12:00 · 366 阅读 · 0 评论 -
LINQ返回IList,绑定到ComboBox
//构造"自定义通用代码"数据集 Infos CustomTYDMInfos = new Infos(); MM_TYDMInfo item = new MM_TYDMInfo(); item.LBID = (de原创 2008-05-22 12:23:00 · 1569 阅读 · 0 评论 -
移除指定Cookie
/// /// 移除指定Cookie /// /// Cookies名称 public static void RemoveCookies(string cookiesName) { //HttpContext.Current.Response.Cookies.Remove(cooki原创 2007-12-04 10:03:00 · 378 阅读 · 0 评论 -
删除TFS团队项目
VSTS2005中未在界面中提供删除团队项目的功能,但可通过如下命令行的方式删除:用法: TfsDeleteProject [/q] [/force] > 例:打开Visual Studio 2005命令窗口:TfsDeleteProject /q /server:http://192.168.1.200:8080 ahhg随后弹出登录窗口从 Team Foundation 中原创 2007-06-16 15:30:00 · 2335 阅读 · 0 评论 -
C#中返回中文字节长度
string str="中国";str.Length的结果是2(字符长度)Encoding.Default.GetBytes(str).Length的结果是4(字节长度) Encoding类所属命名空间是:System.Text原创 2007-06-06 10:02:00 · 561 阅读 · 0 评论 -
报表上金额由阿拉伯数字转换成中文大写
/// /// 总金额大小写转换 /// /// /// private void xrTableCell22_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) { string s原创 2007-04-29 17:13:00 · 690 阅读 · 0 评论 -
关于XtraReport报表分组
现在有个报表是要显示物资目录明细要按物资品种(即分类的意思)来显示对应的物资。0100101001001010000101002010010020100001010020100002010020100003010020100004…… RPTWZMLMXBBMaster:物资目录明细报表分组主表窗口界面上Detail中放置主表显示内容的表格,再插入一个Subreport,在原创 2007-04-29 17:05:00 · 3183 阅读 · 1 评论 -
为.NET部署应用程序添加卸载程序
为.NET部署应用程序添加个卸载程序 地球人都知道.NET自带的部署程序用起来很方便很简单,但.NET部署程序是没有卸载文件。下面的方法可以很简单的为你的程序添加1个卸载文件,.NET是利用windows Installer来部署程序的,所以我们也就可以用windows Installer来卸载程序。1、先部署程序,记下程序的ProductCode 的值 (选择解决方案资源管理器根目录原创 2007-04-03 20:20:00 · 889 阅读 · 0 评论 -
在窗体的Load时怎么退出窗体?
现在需要在窗体A的OnLoad事件中检查一个条件,如果条件不成立,则退出此窗体,但我在用this.Close() 或 this.Dispose()时 都会出错:"执行 CreateHandle() 时无法调用值 Dispose()""执行 CreateHandle() 时无法调用值 Close()"请问这个怎么解决,代码如下 private void A_Load(objec原创 2007-04-05 13:04:00 · 2233 阅读 · 0 评论 -
将文件读取成二进制数组保存到数据库
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.IO;-----------------------将原创 2007-04-03 20:18:00 · 1597 阅读 · 0 评论 -
.NET 程序员十种常用辅助开发工具
一: .NET 程序员十种工具 - Visual Studio Converter(转换器工具)Visual Studio .NET 项目转换器(参见下图)非常类似于 ASP.NET Version Switcher,区别在于它用于转换 Visual Studio 项目文件的版本。尽管在 .NET 框架的 1.0 版和 1.1 版之间只有很小的差异,但一旦将项目文件从 Visual Studio转载 2007-01-14 13:46:00 · 5066 阅读 · 3 评论 -
ValidationSummary验证对话框显示(原)
ValidationGroup="VG_WZ" ControlToValidate="txt_JHSL" Display="None"> ValidationGroup="VG_WZ" ControlToValidate="txt_PHSL" Display="None"> ValidationGroup="VG_WZ" />ValidationGroup="VG_WZ"原创 2006-06-07 11:50:00 · 1172 阅读 · 0 评论 -
利用DataGrid控件显示主从数据表内容
环境:Visual Studio .NET 2005+SqlServer 2000数据库结构:父表:news_type:字段:id,news_type_name,news_type_id子表:news_class:字段:id,news_class_name,news_class_id,news_type_id公共字段:news_type_id type_man原创 2006-04-07 11:25:00 · 1366 阅读 · 0 评论 -
终于解决了“无法启动调试,不支持此接口 ”
试图运行项目时出错:无法启动调试。不支持此接口 解决方法:运行 Regsvr32 c:/winnt/system32/oleaut32.dll原创 2006-03-02 11:07:00 · 1510 阅读 · 0 评论 -
VS 2008 概述 1 --自动属性
1、framework 2.0以前的寫法:public class Person{ private string _personID; private string _firstName; private string _lastName; private int _sex; private DateTime _birthd转载 2008-07-02 11:46:00 · 381 阅读 · 0 评论