
.NET
文章平均质量分 58
Burgess_Liu
这个作者很懒,什么都没留下…
展开
-
The deployment identity at the deployment provider is not the same as the original deployment identity
Error Log:PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3615 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3615 (GDR.050727-3600) dfdll.dll : 2.0.50727.3053原创 2011-03-07 11:44:00 · 3714 阅读 · 0 评论 -
摄像头拍照及解析QR二维码
此项目用C#实现了摄像头拍照及解析QR二维码,下面附上测试截图及部分源码:拍照功能: 解析电脑拍摄的2D图片,能够正确显示文本信息 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;u原创 2013-06-10 22:21:38 · 14371 阅读 · 8 评论 -
实现ListView自动翻页(自动上下滚动)
在C# Winform程式中,如何实现自动翻页(自动上下滚动)呢?比如,ListView在UI中最多显示8行信息,如果超过8行,ListView的上线滚动条就自动出现,那么以8行为一个单位,定时(15秒)循环翻页呢? 我采用了比较笨的办法: void autoScroll(object source, System.Timers.ElapsedEventArgs e)原创 2013-03-07 08:26:58 · 10225 阅读 · 4 评论 -
禁用显示屏的休眠
通过让鼠标的光标自动定时移动,即模拟我们手动移动鼠标,来防止或唤醒显示器休眠: Cursor.Position = new Point(Cursor.Position.X - 10, Cursor.Position.Y - 10); System.Threading.Thread.Sleep(500); Cursor.Pos原创 2013-03-07 08:34:11 · 1189 阅读 · 0 评论 -
Autoscroll
Autoscroll (TextBox, ListBox, ListView) [C#]This example demonstrates how to programatically autoscroll WinForm controls TextBox, ListBox, ListView, TreeView and DataGridView.Autoscroll to the end转载 2013-03-05 13:32:52 · 1754 阅读 · 0 评论 -
WMS has encountered a problem and needs to close. We are sorry for the inconvenience.
Team一位同事修改系统,然后发布,User在安装或升级时总是出现下面的报错界面,说“WMS has encountered a problem and needs to close. We are sorry for the inconvenience.” 经检查,User本地都有安装对应的Framework 等,并且User过去的电脑都能安装或升级,为何现在突然不正常了呢?为了找出根源,我把项原创 2012-07-17 15:34:07 · 3786 阅读 · 0 评论 -
当应用程序不是以 UserInteractive 模式运行时显示模式对话框或窗体是无效操作。
问题:当应用程序不是以 UserInteractive模式运行时显示模式对话框或窗体是无效操作。请指定 ServiceNotification或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。 在 System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, Strin原创 2012-07-16 19:22:49 · 14911 阅读 · 0 评论 -
Error 47 "xxxxxxx"is an invalid value for the "InputManifest" parameter of the "GenerateApplicationM
今天在publish一个Winform系统时,遇到如下错误:Error 47 "xxxxxxx"is an invalid value for the "InputManifest" parameter of the "GenerateApplicationManifest" task. Multiple items cannot be passed into a parameter of t原创 2012-07-12 12:27:29 · 3797 阅读 · 0 评论 -
C#中执行SQL Server脚本
本文将简单介绍如何在C#中执行SQL Server脚本。SQLCMD是SQL Server的命令行,它提供了一种快速简便的方式来执行T-SQL脚本。在VS里,我们可以使用ProcessStartInfo这个类来调用sqlcmd,ProcessStartInfo这个类用于启动进程。假如我们有下面用于备份DB的脚本,其名称是backup.sql:BACKUP DATABASE [test] TO原创 2012-05-03 08:48:52 · 8652 阅读 · 6 评论 -
64位OS下如何注册MSCOMM32.OCX
如果在64位OS下直接运行“regsvr32 c:\windows\system32\MSCOMM32.OCX”,会报如下错误信息 The module "C:\Windows\System32\MSCOMM32.OCX" failed to load.Make原创 2011-08-22 10:16:45 · 13868 阅读 · 6 评论 -
How to trigger a scheduled task of server from local machine
In order to get the result in time, sometimes, it's a good way to trigger the server's scheduled task in user's local machine. Below codes原创 2011-07-25 17:32:01 · 785 阅读 · 0 评论 -
How to run an existing SQL Server Agent Job from C#
If you want to execute an existing Microsoft SQL Server Agent Job in C# you an use the following function: The function uses SQL authenticat转载 2011-07-24 17:29:51 · 1621 阅读 · 0 评论 -
SSRS Series Part I: Various ways of Report creation, deployment and invocation
SSRS Series Part I: Various ways of Report creation, deployment and invocationTable of ContentIntroductionBackgroundData SourceCreating a ba转载 2011-07-25 18:05:38 · 1415 阅读 · 0 评论 -
The application requires that Assembly Microsoft.ReportViewer.ProcessingObjecModel Version 9.0.0.0 b
Today, my users encounterred an issue, that's the application requires that Assembly Microsoft.ReportViewer.ProcessingObjecModel Version 9.0原创 2011-07-25 17:56:04 · 1877 阅读 · 1 评论 -
How to use ReportViewer Control
Following the below MS site, you can know how to view report in local or remote processing mode.Using the WinForms ReportViewer ControlUsing原创 2011-07-25 09:24:12 · 814 阅读 · 0 评论 -
编译和部署CLR程序集
SQL Server CLR集成,让我们可以用C#编程,实现我们熟知的存储过程、函数及触发器等,然后部署到SQL Server。部署完成后,又可以用我们熟知的方式来调用。SQL Server CLR是T-SQL的一个很好的补充,因为它提供编程构造使得数据操作和计算更加容易。对于计算和复杂的执行逻辑,CLR托管代码比 T-SQL 更适合,它全面支持许多复杂的任务,包括字符串处理和正则表达式。通过 .原创 2013-08-22 10:22:04 · 4266 阅读 · 0 评论