首先,需要连接SQLServer数据库的服务器名称server.数据库名database.数据库用户名uid以及密码pwd,如下图: 然后需要以下数据库SQL代码段,还有一个myHelper.cs代码,粘贴复制即可: DbHelperSQL.cs代码: 注意要更改红框中的内容 using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.Data.
[DllImport("user32.dll", EntryPoint = "FindWindow")] public static extern int FindWindow( string lpClassName, string lpWindowName ); [DllImport("user32.dll", EntryPoint = "SendMessage")] public static extern int Sen
title author date CreateTime categories WPF 修改按钮按下的颜色 lindexi 2018-08-10 19:16:53 +0800 2018-03-15 20:26:22 +0800 WPF 本文告诉大家如何使用附加属性修改按钮按下去时的背景 先让大家看个图片,下面来告诉大家如何做 首先在后台创建一个附加属性 public class ButtonBrush { public static readonly DependencyProperty But
有人直接把dll名字改了,我的程序运行出错,说这是我程序的问题,难道真是这样吗? 总感觉直接改dll名字不对,但哪儿不对呢,带着这样的疑惑研究了一下,重新做了一下试验,结果程序抛出了错误: Could not load file or assembly 'AssemblyName' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference