1. 直接变形代码2. Qt designer.pro文件FORMS += widget.ui.h文件private: Ui::Widget *ui;main.cpp文件#include "ui_widget.h" //虽然没有这个文件,但在编译UI文件时会生成。 ui->setupUi(this)...
分类:
其他好文 时间:
2014-11-21 12:10:56
阅读次数:
162
今天我们先来看一下在WP8.1开发中最长见到的几个文件之间的关系。比较论证,在看这个问题之前我们简单看看.NET平台其他两个不同的框架:Windows Forms先看看Window Forms中的情况,下图为在VS中创建的默认Windows Forms项目结构:分别回顾一下每个文件以及它们之间的关系...
分类:
其他好文 时间:
2014-11-20 18:34:55
阅读次数:
384
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows.Forms; 6 using System.Runt...
今天我们先来看一下在WP8.1开发中最长见到的几个文件之间的关系。比较论证,在看这个问题之前我们简单看看.NET平台其他两个不同的框架:Windows Forms先看看Window Forms中的情况,下图为在VS中创建的默认Windows Forms项目结构:分别回顾一下每个文件以及它们之间的关系...
分类:
其他好文 时间:
2014-11-19 21:54:50
阅读次数:
178
TSC条码打印机C#例程(tsclib.dll调用)//----program.csusing System;using System.Collections.Generic;using System.Windows.Forms;using System.Runtime.InteropService...
分类:
Windows程序 时间:
2014-11-19 18:04:09
阅读次数:
2032
封装自定义控件很简单,没什么技术含量,这里通过封装自定义的数字文本框实例简单总结一下:
【1】新建自定义控件库 -- Windows Forms Control Library
【2】添加自定义组件 -- Component Class
【3】继承TextBox,添加KeyPress事件,代码如下:
using System;
usi...
最主要是取得了桌面的DC,并且设置为背景色透明:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type ...
分类:
其他好文 时间:
2014-11-17 21:08:06
阅读次数:
199
C# 带滚动条的Label控件,用鼠标选的时候还是有点闪烁:namespace 带滚动条的Label控件
{
public class TextBoxLabel : System.Windows.Forms.TextBox
{
[DllImport("user32", EntryPoint = "HideCaret")]
private static...
只启动一个exe方法: 1 using System; 2 using System.Collections.Generic; 3 using System.Runtime.InteropServices; 4 using System.Windows.Forms; 5 6 namespace S....