设计模式c#语言描述——合成(Composite)模式 2005-12-23 0 · 设计模式c#语言描述——合成(Composite)模式*本文参考了《JAVA与模式》的部分内容,适合于设计模式的初学者。合成模型模式属于对象的结构模式,有时又叫做部分-整体模式。合成模式将对象组织到树结构中,可以用来描述整体与部分的关系。合成模式可以使客户端将单纯元素与复合元素同等看待。如文 ...
C#中如何对当前窗体进行打印预览 2005-12-23 0 · [System.Runtime.InteropServices.DllImport("gdi32.dll")]
public static extern long BitBlt (IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, int dwRop);
private Bitmap memoryImage;
private void CaptureScreen()
{Grap...
使用C#拷贝String到struct 2005-12-23 0 · 使用C#拷贝String到structBy dgiljr介绍本文介绍使用C#拷贝String到struct 。代码using System;
using System.Runtime.InteropServices;
using System.Text;class Class1
{[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]public struct MyStruct{[MarshalAs(UnmanagedType.ByVal...
[c#]:如何在C#中读写INI文件(一) 2005-12-23 0 · INI文件就是扩展名为“ini”的文件。在Windows系统中,INI文件是很多,最重要的就是“System.ini”、“System32.ini”和“Win.ini”。该文件主要存放用户所做的选择以及系统的各种参数。用户可以通过修改INI文件,来改变应用程序和系统的很多配置。但自从Windows 95的退出,在Windows系统中引入了 ...
[c#]:如何在C#中读写INI文件(三) 2005-12-23 0 · using System ;using System.Drawing ;using System.Collections ;using System.ComponentModel ;using System.Windows.Forms ;using System.Data ;using System.Runtime.InteropServices ;using System.Text ;namespace C_操作INI文件__写操作{public class Form1 : System.Windows.Forms.Form{pr...
[c#]:如何在C#中读写INI文件(四) 2005-12-23 0 · this.button2.TabIndex = 3 ;this.button2.Text = "写入INI文件" ;this.button2.Click += new System.EventHandler ( this.button2_Click ) ;this.textBox2.Location = new System.Drawing.Point ( 160 , 62 ) ;this.textBox2.Name = "textBox2" ;this.textBox2.Size = new Sy...
[c#]:如何在C#中读写INI文件(五) 2005-12-23 0 · this.Controls.AddRange ( new System.Windows.Forms.Control [ ] {this.button3 ,this.textBox4 ,this.textBox3 ,this.textBox2 ,this.button2 ,this.textBox1 ,this.button1 ,this.label3 ,this.label2 ,this.label1 } ) ;this.MaximizeBox = false ;this.Name = "Form1" ;this.Text =...
C#中在应用程序和DLL使用消息 2005-12-23 0 · C#中在应用程序和DLL使用消息在C#中采用的是事件驱动方式,但在我们使用的过程中,有时候通过调用系统原有的消息,处理起来会比较简单一些,特别是在处理与DLL文件的交互时,的确是非常的方便。在C#中使用自定义消息在C#中使用自定义消息非常简单,只需要下面几个简单的步骤就可以了:
1、 定义消...
探究Singleton设计模式 2005-12-23 0 · [简介]
上期我们刊登了Jeffrey Richter的《探究Observer模式》,详细讲解了在微软架构下实现Observer模式的技术和经验。本期我们继续探讨设计模式方面的话题。Singleton通常被认为是最简单的设计模式,很多初学者都是通过它来了解设计模式的含义。然而,熟悉设计模式的技术人员都知道,要正确实现S...
用C#去除代码的SourceSafe管理 2005-12-23 0 · 用C#去除代码的SourceSafe管理作者:秋枫经常看一些的程序,有些一个解决方案带有多个项目,由于代码比较多,多人开发,所以好多vs.net下的工程是用source safe进行版本控制的。而用source safe进行版本控制需要局域网路径共享,因此好多项目换一台机器打开会出现一些问题,比如“解决方案看起来是...
用C#去除代码的SourceSafe管理(续篇) 2005-12-23 0 · 用C#去除代码的SourceSafe管理(续篇)作者:秋枫三、测试使用程序测试运行界面,界面部分代码大多数由设计器生成,下面列出了主要添加代码,//委托,更新文本框private delegate void AppendTextHandler(string content);//标记转换操作是否完成private int convertOK =0;private System.Windows.Fo...
将xml作为DataGrid 操作(Sort, Edit, Delete) 2005-12-23 0 · 我们将显示如何将一个XML文件作为datagrid,这样对其的排序,编辑,等操作将是非常简单的事。
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data" %>
<HTML>
<script language="VB" runat="server">Sub Pag...
HTTPBrowserCapabilities---在asp.net中显示 ... 2005-12-23 0 · 属性 描述 ActiveXControls 检查浏览器是否支持ActiveXControls返回true,false AOL 检查浏览器是否是AOL返回true,false Cookies 检查浏览器是否支持Cookies但是不检查用户是否启用Cookies返回true,false Crawler Browser 浏览器的名字,例如“IE” Frames 检查浏览器是否支持frame M...
解决一个比较奇怪的NET问题的方法 2005-12-23 0 · 最近遇到一个比较棘手的问题,在编译完一个。NET项目后,遇到如下出错信息
After you compile your Web application, you may receive the following error messages in the Microsoft Visual Studio .NET task list: Could not copy temporary files to the output directory.
-and-
The file '...
用C#实现无需iiS环境就可以执行aspx文件 2005-12-23 0 · myhost.cs 编译:
csc MyHost.cs /r:System.Web.dllusing System;
using System.IO;
using System.Web;
using System.Web.Hosting;public class MyExeHost : MarshalByRefObject { public void ProcessRequest(String page)
{
HttpRuntime.ProcessRequest(new SimpleWorkerRequ...
深度剖析Duwamish 7.0 (1--数据结构) 2005-12-23 0 · 不好意思啊,让大家久等了,第一次写这种文章,可能没有开心那么专业,废话少说,我们开始:1.结构概述
Duwamish 7.0 结构分为四个逻辑层:
Web 层
Web 层为客户端提供对应用程序的访问。这一层是作为 Duwamish.sln 解决方案文件中的 Web 项目实现的。Web 层由 ASP.NET Web 窗体和代码隐藏文件 ...
ASP.NET移植须知(续) 2005-12-23 0 · 'ASP Syntax (Implicit retrieval of Column Value property)
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open("TestDB")
Set RS = Conn.Execute("Select * from Products")
Response.Write RS("Name") 'ASP.NET Syntax (Explicit ret...
关于上下文-2 (转自msdn) 2005-12-23 0 · 图 1:浏览器中呈现的标准页眉和页脚示例
这是一个简单的示例,但您可以很容易地将它扩展,使其包含标准的页眉与导航,或者仅输出相应的 <!-- #include ---> 语句。请注意,如果希望页眉或页脚包含交互内容,应考虑使用 ASP.NET 用户控件。[SomePage.ASPx 源代码 - 内容示例]<FONT face=&...
DataList控件也玩分页 (转自aspcn.com) 2005-12-23 0 · 众所周知,ASP.Net中给我们提供了三个数据控件--DataGrid,Repeater,DataList。在这三个控件中,DataGrid控件的功能最强大,Repeater控件最忠实于模版原样,DataList控件则兼而有之。DataGrid控件太有名了,所以以前用的讲的也很多,Repeater功能太少,没有什么好讲的。这里主要是讲一讲DataList ...
页次:62 /229 20篇/页 首页 上一页 下一页 尾页 合计 4578 篇 Go:第1页 第2页 第3页 第4页 第5页 第6页 第7页 第8页 第9页 第10页 第11页 第12页 第13页 第14页 第15页 第16页 第17页 第18页 第19页 第20页 第21页 第22页 第23页 第24页 第25页 第26页 第27页 第28页 第29页 第30页 第31页 第32页 第33页 第34页 第35页 第36页 第37页 第38页 第39页 第40页 第41页 第42页 第43页 第44页 第45页 第46页 第47页 第48页 第49页 第50页 第51页 第52页 第53页 第54页 第55页 第56页 第57页 第58页 第59页 第60页 第61页 第62页 第63页 第64页 第65页 第66页 第67页 第68页 第69页 第70页 第71页 第72页 第73页 第74页 第75页 第76页 第77页 第78页 第79页 第80页 第81页 第82页 第83页 第84页 第85页 第86页 第87页 第88页 第89页 第90页 第91页 第92页 第93页 第94页 第95页 第96页 第97页 第98页 第99页 第100页 第101页 第102页 第103页 第104页 第105页 第106页 第107页 第108页 第109页 第110页 第111页 第112页 第113页 第114页 第115页 第116页 第117页 第118页 第119页 第120页 第121页 第122页 第123页 第124页 第125页 第126页 第127页 第128页 第129页 第130页 第131页 第132页 第133页 第134页 第135页 第136页 第137页 第138页 第139页 第140页 第141页 第142页 第143页 第144页 第145页 第146页 第147页 第148页 第149页 第150页 第151页 第152页 第153页 第154页 第155页 第156页 第157页 第158页 第159页 第160页 第161页 第162页 第163页 第164页 第165页 第166页 第167页 第168页 第169页 第170页 第171页 第172页 第173页 第174页 第175页 第176页 第177页 第178页 第179页 第180页 第181页 第182页 第183页 第184页 第185页 第186页 第187页 第188页 第189页 第190页 第191页 第192页 第193页 第194页 第195页 第196页 第197页 第198页 第199页 第200页 第201页 第202页 第203页 第204页 第205页 第206页 第207页 第208页 第209页 第210页 第211页 第212页 第213页 第214页 第215页 第216页 第217页 第218页 第219页 第220页 第221页 第222页 第223页 第224页 第225页 第226页 第227页 第228页 第229页