摘要:
Frm_Main.csView Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using System.Net.Sockets; 10 using System.Threading; 11 using Syste... 阅读全文
摘要:
Frm_Main.csView Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using System.Data.SqlClient; 10 11 namespace RefreshFormByChildFor... 阅读全文
摘要:
Frm_Main.csView Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Text; 7 using System.Windows.Forms; 8 using System.Runtime.InteropServices; 9 10 namespace FontForm11 {12 public partial class Frm_... 阅读全文
摘要:
Frm_Main.csView Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Text; 7 using System.Windows.Forms; 8 using System.Runtime.InteropServices; 9 10 namespace FlashWindowBar11 {12 public partial clas... 阅读全文
摘要:
创建非矩形窗体Frm_Main.csView Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Text; 7 using System.Windows.Forms; 8 using System.Runtime.InteropServices; 9 10 namespace RectangleForm11 {12 public partia... 阅读全文
摘要:
Frm_Main.csView Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using Microsoft.Office.Core;10 11 namespace WordInForm12 {13 public part... 阅读全文
摘要:
C#(WinForm)实现软件注册SoftReg类:View Code 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Management; 6 7 namespace SoftRegister 8 { 9 class SoftReg 10 { 11 ///<summary> 12 /// 获取硬盘卷标号 13 ///</summary> 14 ///<returns><... 阅读全文
摘要:
今天遇到一个这样的错误,具体的报错情况如下解决的方案如下。数据库MSSQL在比较大小时,出错提示:“将varchar值'24.5'转换为数据类型为int的列时发生语法错!”分析数据库设计列时的类型为VARCHAR,当搜索比较语句执行“select*fromdatalistwhereprice>10orderbyid”时即报告以上错误。琢磨下,只要price列里含有小数,就出错,而price为varchar类型,必须转换为数字类型。可以这样改写:“select*fromdatalistwhereconvert(int,convert(numeric(18,9),price) 阅读全文