上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 对一个表中的数据进行重新拍序SELECT ID ChangeId,ConfigID,ProjectID,name, [Index],row_number () over(partition by ConfigID,ProjectID order by [index] )as numberFROM tb_SystemConfigOption order by configid,projectid,[Index] 阅读全文
posted @ 2012-12-24 16:53 pnljs 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-12-20 17:40 pnljs 阅读(1065) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-12-20 17:25 pnljs 阅读(164) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Microsoft.Win32; using System.IO;namespace SetStart { public partial class Form1 : Form { public Form1() { ... 阅读全文
posted @ 2012-10-16 10:00 pnljs 阅读(258) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE Student ( ID int primary key identity, Name nvarchar(50) not null, Age int not null )CREATE TABLE Student_Temp ( ID int primary key, Name nvarchar(50) not null, Age int not null )--复制数据INSERT INTO Student_Temp(ID,Name,Age) SELECT ID,Name,Age FROM Student WHERE ID IN (1,2,3)UPDATE Studen 阅读全文
posted @ 2012-09-21 15:51 pnljs 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 有人要说了,弹一个ShowDialog不就完了吗?!或者MessageBox.Show("saaaaa");就可以达到目的。但你要看到下面的情况,你就不这样说了。我在C#中创建了一个Excel,每当我编辑一个值的时候,都会用C#代码判断这些值是否是有效的,当无效进就提醒他们。我用的就是MessageBox.Show("aaaaaaa");但它不一定弹在最前面,因为它是C#的代码,故当Excel在最前面时,那个消息框是不能显示在最头面的。用以下方法可以解决此问题:MessageBox.Show("要弹的信息。", "信息&qu 阅读全文
posted @ 2012-09-19 19:10 pnljs 阅读(2048) 评论(0) 推荐(0) 编辑
摘要: 我们在C#中通过这样的代码创建了一个Excel。Microsoft.Office.Interop.Excel.Application m_ExcelApplication= new Microsoft.Office.Interop.Excel.Application();Microsoft.Office.Interop.Excel.Workbook m_ExcelWorkBook = this.m_ExcelApplication.Workbooks.Add();Microsoft.Office.Interop.Excel.Workbook m_ExcelWorkBook.Sheets[1] 阅读全文
posted @ 2012-09-19 18:56 pnljs 阅读(6717) 评论(0) 推荐(0) 编辑
摘要: 在word或Excel的宏中运行如下函数即可Sub ShowFaceIDs() Dim NewToolbar As CommandBar Dim NewButton As CommandBarButton Dim i As Integer, IDStart As Integer, IDStop As Integer ' Delete existing FaceIds toolbar if it exists On Error Resume Next Application.CommandBars("FaceIds").Delete On Error GoTo 0 & 阅读全文
posted @ 2012-07-19 11:06 pnljs 阅读(1973) 评论(0) 推荐(0) 编辑
摘要: #33333这样的不是RGB的颜色,是HTML中用的, 。NET 框架有个方法可以来转换:System.Drawing.ColorTranslator.ToHtml 和 System.Drawing.ColorTranslator.FromHtml例子:this.button1.BackColor = System.Drawing.ColorTranslator.FromHtml("#FF34B3"); 阅读全文
posted @ 2012-07-10 14:29 pnljs 阅读(13417) 评论(0) 推荐(0) 编辑
摘要: ----------修改:----------------------------------------------------------------------string sql = "select * from [{0}A:DA]";string sql = "select * from [录像测试用例$A:DA]";--------一下为原因--------------------------------------------------------------------string strSql = "select * fro 阅读全文
posted @ 2012-07-02 14:25 pnljs 阅读(1177) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页