上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: 当击了某个按钮相当于是按了某个键盘上按键privatevoidbtnPre_Click(objectsender,EventArgse){this.treeView1.Focus();//此句必要,要不然都不知道操作的是什么。SendKeys.Send("{UP}");}上面是按钮去关联键盘。下面Send的参数的对应值http://www.cnblogs.com/sydeveloper/archive/2013/02/25/2932571.html 阅读全文
posted @ 2014-01-20 16:59 pnljs 阅读(1617) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsFormsApplication1{publicpartialclassForm1:Form{ListnodeInfoList=newList();publicForm1(){InitializeComponent();}priva 阅读全文
posted @ 2014-01-20 11:53 pnljs 阅读(407) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){Programp=newProgram();p.Move();Console.ReadLine();}ListproductList=newList(){"AAAA","BBBB","CCCC",& 阅读全文
posted @ 2014-01-17 11:03 pnljs 阅读(231) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){ListproductList=newList(){"AAAA","BBBB","CCCC","DDDD","EEEE"};//货物MoveHelpermov 阅读全文
posted @ 2014-01-15 15:32 pnljs 阅读(575) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Practices.Unity;using System.Configuration;using Microsoft.Practices.Unity.Configuration;namespace ConsoleApplication2{ class Program { static void Main(string[] args) { var container = new UnityContai. 阅读全文
posted @ 2013-12-30 17:44 pnljs 阅读(2006) 评论(0) 推荐(0) 编辑
摘要: public byte[] FileToStream(string path) { byte[] s = null; StreamReader reader = new StreamReader(path); s = File.ReadAllBytes(path); return s; } public void StreamToFile(string path, byte[] bytes) { FileStream stream = null; stream = new FileStream(path, FileMode.Create, FileAccess.Write, FileSha.. 阅读全文
posted @ 2013-12-10 17:28 pnljs 阅读(207) 评论(0) 推荐(0) 编辑
摘要: SELECT ROW_NUMBER() OVER (ORDER BY A.orderdate,A.orderid),* from Sales.Orders A 阅读全文
posted @ 2013-12-06 17:09 pnljs 阅读(256) 评论(0) 推荐(0) 编辑
摘要: gridview:ShowViewCaption = TrueViewCation = "32435354354" 阅读全文
posted @ 2013-11-27 15:52 pnljs 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 读XmlDocument document = new XmlDocument();document.Load("Data\\books.xml");List bookList = new List();foreach (XmlElement book in document.DocumentElement.ChildNodes){ string isbn = book.GetAttribute("ISBN").ToString();//属性 string genre = book.GetAttribute("genre").ToSt 阅读全文
posted @ 2013-11-26 17:36 pnljs 阅读(177) 评论(0) 推荐(0) 编辑
摘要: USE [MTEMP]GO/****** Object: UserDefinedFunction [dbo].[GS] Script Date: 11/18/2013 12:19:10 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER FUNCTION [dbo].[GS](@Id INT) RETURNS NVARCHAR(4000)ASBEGIN DECLARE @SNames NVARCHAR(4000) SET @SNames = '' SELECT @SNames = @SNames+char(10)+ 阅读全文
posted @ 2013-11-25 13:45 pnljs 阅读(204) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页