Google [站内搜索]

分类: Win编程预览模式: 普通 | 列表
Linq to SQlite使用DbLinq2008生成数据库上下文类,SQLite for .NET版本为sqlite-netFx35-binary-bundle-Win32-2008-1.0.109.0,项目生成正常,启动出错,提示未将对象引用设置到对象的实例:



我们知道,这一般是对空对象(null)进行操作引发的错误,但检查程序没有空对象,程序简化如下:

查看更多...

分类:Win编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3293
SQLite Administrator打开和创建SQLite数据库有时会出错,提示:

引用内容 引用内容
qAdmin:cannot perform this operation on a closed dataset


查看更多...

分类:Win编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 12200

Linq to SQlite简单示例(DbLinq版)

一、准备文件:

■SQLite Administrator:https://sqliteadmin.orbmu2k.de/
■System.Data.SQLite:http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki (下netFx35-binary-bundle-Win32这个版本)
■DbLinq: https://github.com/dblinq/dblinq2007 (本地下载)

查看更多...

分类:Win编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3753




WinForm字符串保存在Resources和Settings的区别

查看更多...

分类:Win编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 4328

折腾一晚,终于安装上了Visual Studio 2017

Visual Studio 2017采用了新的模块化安装方案,微软官方没有提供ISO镜像格式的离线安装包,仅提供一个EXE格式的在线安装程序。虽然官方有说明怎么下载Visual Studio 2017离线安装包进行离线安装,但想想反正都得下载,不如模块化安装按需下载可能快些,却也折腾了一晚上。



查看更多...

分类:Win编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 8724

Visual Studio 2010+ 可选功能

Visual Studio 2010



Visual Studio 2012

查看更多...

分类:Win编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2756

C#读取并显示其他应用程序图标示例



//using System.Drawing;
pictureBox1.Image = Icon.ExtractAssociatedIcon(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe").ToBitmap();

查看更多...

分类:Win编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 3106

Modular InnoSetup Dependency Installer[转]

Introduction

This article contains a modular InnoSetup install script that downloads (if setup files don't exist locally) and installs various dependencies like .NET Framework 1.1/2.0/3.5/4.0/4.6 or C++ Redistributable 2005/2008/2010/2012/2013/2015 on 32-bit and 64-bit Windows.

Background

查看更多...

分类:Win编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 11800
1.本地安装.Net Framework

[Files]
Source: "G:\myapp\dotnetfx.exe"; Flags: dontcopy noencryption

查看更多...

分类:Win编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 11538

Check .NET Version with Inno Setup[转]

Inno Setup by Jordan Russell is a great installation scripting program, but lacks a built-in function to determine the .NET Framework version installed on the target machine. Fortunately, it’s easy to write such a function using Inno Setup’s Pascal scripting language.

The Versions

Microsoft maintains a set of registry keys that indicate the installed .NET Framework versions and service packs. C# MVP Scott Dorman has posted a list comprising versions 1.0 through 4.0 (at the time of this writing) in this Stack Overflow thread. The required registry keys are quite similar for most .NET Framework versions except 1.0. We’ll ignore that version which has been obsoleted by 1.1 anyway.

查看更多...

分类:Win编程 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 21345