摘要: 解决方法一:关闭Ubuntu(注意是关闭,不是挂起,只是挂起的话,加速3D图形选项不能勾选);依次选择虚拟机->设置->显示器,然后把加速3D图形选项的勾点掉。 解决方法二: 管理员模式运行CMD, netsh winsock reset然后重启电脑! 阅读全文
posted @ 2017-12-19 23:11 pop1234ggg 阅读(5344) 评论(0) 推荐(0) 编辑
摘要: deb安装格式 命令格式如下:$ sudo dpkg -i <package.deb> 常用的Linux命令的基本使用 命令 作用ls 查看当前文件夹下的内容pwd 查看当前所在文件夹cd 切换文件夹touch 如果文件不存在,新建文件mkdir 创建目录rm 删除指定的文件名clear 清屏 小技 阅读全文
posted @ 2017-12-04 15:55 pop1234ggg 阅读(232) 评论(0) 推荐(0) 编辑
摘要: wpf程序 在App.xaml中增加如下代码 1 DispatcherUnhandledException="Application_DispatcherUnhandledException" 完成代码如下: 在App.xaml.cs中增加如下代码 阅读全文
posted @ 2017-12-02 10:33 pop1234ggg 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1 using (TransactionScope ts = new TransactionScope()) 2 { 3 //dal.Insert(Sql2); 4 //dal.Insert(Sql3); 5 //事务,只有Sql2,Sql3这两条SQL... 阅读全文
posted @ 2017-12-02 10:23 pop1234ggg 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1 OpenFileDialog ofd = new OpenFileDialog(); 2 ofd.Filter = "JPG|*.jpg|PNG|*.png|所有文件|*.*"; 3 if (ofd.ShowDialog() == true) 4 { 5 image... 阅读全文
posted @ 2017-11-24 21:20 pop1234ggg 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1 class SqlHelper 2 { 3 private static string connStr = ConfigurationManager.ConnectionStrings["dbConnStr"].ConnectionString; 4 public static int ExecuteNonQuery(string sq... 阅读全文
posted @ 2017-11-16 20:51 pop1234ggg 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 1 string connStr = ConfigurationManager.ConnectionStrings["dbConnStr"].ConnectionString; 2 using (SqlConnection conn = new SqlConnection(connStr)) 阅读全文
posted @ 2017-11-16 17:27 pop1234ggg 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1 using (SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=StudentDB;User ID=sa;Password=123456")) 2 { 3 conn.Open(); 4 ... 阅读全文
posted @ 2017-11-16 11:30 pop1234ggg 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-03-05 12:04 pop1234ggg 阅读(240) 评论(0) 推荐(0) 编辑