上一页 1 2 3 4 5 6 7 8 ··· 12 下一页

2014年5月16日

sqlite创建自增长主键的表

摘要: CREATE TABLE person(id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(20))CREATE TABLE person(id INTEGER PRIMARY KEY AUTOINCREMENT, name) 阅读全文

posted @ 2014-05-16 23:57 IOTer 阅读(1928) 评论(0) 推荐(0) 编辑

SQL中使用xp_cmdshell将硬盘中文件内容导入数据库

摘要: SQL同样拥有读取文件的功能,只要知道如何使用xp_cmdshell组件,即可实现,如下我将用一个简单例子做相关介绍:首先,要知道xp_cmdshell是一个过于强大的组件,它可以直接以操作系统命令行解释器的方式执行给定的命令字符串,因此SQL Server 阻止了对组件 'xp_cmdshell'... 阅读全文

posted @ 2014-05-16 23:56 IOTer 阅读(488) 评论(0) 推荐(0) 编辑

c#快捷键(成为高手必备)

摘要: CTRL + SHIFT + B生成解决方案CTRL + F7 生成编译CTRL + O 打开文件CTRL + SHIFT + O打开项目CTRL + SHIFT + C显示类视图窗口F4 显示属性窗口SHIFT + F4显示项目属性窗口CTRL + SHIFT + E显示资源视图F12 转到定义C... 阅读全文

posted @ 2014-05-16 23:53 IOTer 阅读(15510) 评论(0) 推荐(0) 编辑

不使用第三个变量交换两个变量的值

摘要: 假如有:int x = 1, y = 2;方法零:y = 2;x = 1;此方法纯属搞笑。请跳过阅读。方法一:x = x ^ y;y = x ^ y;x = x ^ y;此方法网上最常见,用二进制来看很容易理解。方法二:x = x + y;y = x - y;x = x - y;主要想说说此方法,因... 阅读全文

posted @ 2014-05-16 23:52 IOTer 阅读(168) 评论(0) 推荐(0) 编辑

WPFToolkit DataGrid 使用介绍

摘要: 下载地址:http://wpf.codeplex.com/releases/view/40535下载安装文件,安装以后,在目录:C:\Program Files\WPF Toolkit\v3.5.50211.1下面有需要的dll接下来开始使用介绍:主要给DataGrid添加了4种类型的列:DataG... 阅读全文

posted @ 2014-05-16 23:50 IOTer 阅读(495) 评论(0) 推荐(0) 编辑

C#程序开发中经常遇到的10条实用的代码

摘要: 1 读取操作系统和CLR的版本OperatingSystem os = System.Environment.OSVersion;Console.WriteLine(“Platform: {0}”, os.Platform);Console.WriteLine(“Service Pack: {0}”... 阅读全文

posted @ 2014-05-16 23:48 IOTer 阅读(128) 评论(0) 推荐(0) 编辑

C# 禁止应用程序启动两次

摘要: static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() ... 阅读全文

posted @ 2014-05-16 23:39 IOTer 阅读(614) 评论(0) 推荐(0) 编辑

C#检测U盘拔插

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window... 阅读全文

posted @ 2014-05-16 23:37 IOTer 阅读(653) 评论(0) 推荐(0) 编辑

如何在C#中利用蜂鸣编写歌曲

摘要: 用Console.Beep(频率, 延时毫秒);方法发声每个八度之间频率翻一倍using System;namespace ConsoleTest{ class Test{ static public void Main(String []args){ ... 阅读全文

posted @ 2014-05-16 23:36 IOTer 阅读(459) 评论(1) 推荐(1) 编辑

C#弹出U盘

摘要: using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.Threading;namespace Ulog{ /// ... 阅读全文

posted @ 2014-05-16 23:35 IOTer 阅读(1782) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 12 下一页

导航