2011年5月18日

摘要: /* 说明:三控件,button1 开始,button2 复制代码.txt_file(TextBox控件) 显示文件路径,另外一个TextBox 显示结果。有个openfiledialog打开文件。*/namespace 文件去除行号{ public partial class Form1 : Form { bool isHasName = false; //是否有文件 string fileName = string.Empty; //文件名 public Form1() { InitializeComponent(); } private void button1_Click(object 阅读全文
posted @ 2011-05-18 17:11 胖子黎 阅读(277) 评论(0) 推荐(0) 编辑

2011年2月27日

摘要: --数据库的分离和附加--分离:选数据库(右键)--任务--分离--附加:选数据库(右键)--附加 --select* from sysobjects where name= "proc_%"--在数据库中如果想从上到下直接运行下来要注意的:--用到master数据库;查系统数据库;判断自己现在要创建的数据库的名字与系统数据库中数据库的名字是否相同,如果有那么自己可以改自己现在要创建的数据库名字,或判断这个数据库是否还有用,如果没用就将其删掉,创建新数据库;(分两种:第一种:指定路径;第二种:不需要指定路径。指定路径:注意要用到on primary(易忘记的)主数据文件(指 阅读全文
posted @ 2011-02-27 18:03 胖子黎 阅读(557) 评论(0) 推荐(0) 编辑

2011年2月23日

摘要: <style type="text/css">DIV#qTip {BORDER-RIGHT: #fff 1px solid; PADDING-RIGHT: 20px; BORDER-TOP: #fff 1px solid; DISPLAY: none; PADDING-LEFT: 20px; FONT-SIZE: 12px; Z-INDEX: 1000; BACKGROUND: #1ea3de; PADDING-BOTTOM: 10px; BORDER-LEFT: #fff 1px solid; COLOR: #fff; LINE-HEIGHT: 170%; P 阅读全文
posted @ 2011-02-23 23:58 胖子黎 阅读(384) 评论(0) 推荐(0) 编辑
摘要: <div id="nifty"> <b class="rtop"><b class="r1"></b><b class="r2"></b> <b class="r3"></b><b class="r4"></b></b> <h1>演示代码</h1> <style type="text/css"&g 阅读全文
posted @ 2011-02-23 17:43 胖子黎 阅读(214) 评论(0) 推荐(0) 编辑

2011年1月29日

摘要: class Class3 { static int a = ushort.MaxValue,b; static short c; static void Main() { //调试的时候不会报错。 Console.WriteLine(a); c = (short)a; Console.WriteLine(c); } } class Class3 { static int a = ushort.MaxValue,b; static short c; static void Main() { Checked //调试的时候如果出现溢出,会报错。直接运行不会报错。 { Console.Write 阅读全文
posted @ 2011-01-29 13:19 胖子黎 阅读(252) 评论(0) 推荐(0) 编辑

2011年1月21日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 链表{ class Program { static void Main(string[] args) { Noteint temp = new Noteint(); ILinkListint list = new ILinkListint(temp); list.Append(10); list.Append(30); list.Append(50); list.Insert(20, 2); C 阅读全文
posted @ 2011-01-21 13:18 胖子黎 阅读(409) 评论(0) 推荐(0) 编辑

2010年12月31日

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace ConsoleApplication22 { /// /// 异步操作 /// /// /// /// delegate int MainRun(int data,int sleep); class Program { static void Main(string[] args) { MainRun mainRun = TakeAWhile; IAsync 阅读全文
posted @ 2010-12-31 17:18 胖子黎 阅读(272) 评论(0) 推荐(0) 编辑

2010年12月30日

摘要: ///WPF 文件里面是建有一个button,一个TextBox,和一个TextBlockusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using Syste 阅读全文
posted @ 2010-12-30 17:33 胖子黎 阅读(1524) 评论(0) 推荐(0) 编辑

2010年12月24日

摘要: using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;/// summary///Class1 的摘要说明namespace MyModule{ public class MyM 阅读全文
posted @ 2010-12-24 00:40 胖子黎 阅读(518) 评论(0) 推荐(0) 编辑

2010年12月16日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication2{ classProgram { staticvoid Main(string[]args) { Console.WriteLine("请输入一个数大于6"); intintNum = Convert.ToInt32(Console.ReadLine()); boolblFlag = IsGDBHArith(intNum); if(blFlag) { Console.Writ 阅读全文
posted @ 2010-12-16 13:38 胖子黎 阅读(291) 评论(0) 推荐(0) 编辑

导航