C#Form和Load和Shown这两个玩意容易混淆不? 案例测试一下: 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; namespace LoadShown { ...【阅读全文】
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 System.Diagnostics; using System.Threading; namespace TestDos { &...【阅读全文】
最近在客户机器上出现了无法导出报表的问题,错误提示为: System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM ...【阅读全文】
主要实现代码如下:using System; using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace AlignForHashtable{ class Program&nb...【阅读全文】
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 System.Data.SqlClient;namespace wlw_database{ public partial class Form1 : Form  ...【阅读全文】