第三部分:使用多线程1. 单元模式和Windows Forms 单元模式线程是一个自动线程安全机制, 非常贴近于COM——Microsoft的遗留下的组件对象模型。尽管.NET最大地放弃摆脱了遗留下的模型,但很多时候它也会突然出现,这是因为有必要与旧的API 进行通信。单元模式线程与Windows ...
分类:
编程语言 时间:
2014-09-04 14:49:09
阅读次数:
315
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Drawing;usingSystem.Data;usingSystem.Text;usingSystem.Windows.Forms...
一,调用系统字体文本框首先在bin文件夹右击--添加引用--.net标签里选择System.Windows.Forms--确定然后在cs文件里引入,using System.Windows.Forms;在代码里写C#代码FontDialogfd=newFontDialog();fd.ShowDial...
分类:
Web程序 时间:
2014-09-02 14:05:45
阅读次数:
527
方法一: 禁止多个进程运行using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;namespace 开启新的进程{ static class Program {...
题目链接:uva 11107 - Life Forms
题目大意:给定n个字符串,求一个最长的字符串,为n/2个字符串的子串。
解题思路:后缀数组,处理除后缀数组后,二分长度,每次遍历height数组,当长度不足时就分段,如果存在一段中包含n/2个起点,则为可行长度。
#include
#include
#include
#include
using namespace s...
分类:
其他好文 时间:
2014-09-01 22:48:53
阅读次数:
326
虽然ASP.NET Web Forms不是vNext计划的一部分,但它并没有被忽视。作为Visual Studio 2013 Update 2的一部分,它重新开始支持新工具、EF集成和Roslyn。 为什么Web Forms不是ASP.NET vNext的一部分 作为开始,让我们先为这个坏消息...
分类:
Web程序 时间:
2014-09-01 10:34:02
阅读次数:
259
using System;using System.Collections.Generic;using System.Windows.Forms;using System.Text;using System.Collections;using System.Drawing;using System....
分类:
其他好文 时间:
2014-08-31 01:37:40
阅读次数:
273
1 DateTimePicker.CustomFormat = "yyyy-MM-dd HH:mm";2 3 DateTimePicker.Format=System.Windows.Forms.DateTimePickerFormat.Custom;
分类:
其他好文 时间:
2014-08-30 20:20:09
阅读次数:
697
1、SSH端,APP用户登录;2、输入env,确定环境变量名称FORMS_WEB_CONFIG_FILE(11i为FORMS60_WEB_CONFIG_FILE);3、定位模板文件: $AD_TOP/bin/adtmplreport.sh contextfile=$CONTEXT_FILE tar....
分类:
编程语言 时间:
2014-08-29 19:43:28
阅读次数:
294
命名空间:using System.Drawing;using System.Drawing.Imaging;using System.Windows.Forms;相关代码//获得当前屏幕的分辨率Screen scr = Screen.PrimaryScreen;Rectangle rc = scr...
分类:
其他好文 时间:
2014-08-29 14:27:37
阅读次数:
216