c# winform之菜单menu_menuitem_mainmenu_etc
//手工编写winform class test : Form { public test() { ...
c# winform之多个控件统一事件处理程序
using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing;using System.Drawing.Drawing2D;using System.Collections;namespace WindowsApplication1{ //手工...
c# winform之小型数学计算器
using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing;using System.Drawing.Drawing2D;using System.Collections;namespace WindowsApplication1{ //手工...
c#项目启动路径及资源文件jpg_bmp相关
public keytest() { Button b = new Button(); // E:\net_self_learning\openfiledialog\openfile...
c# winform之手工定时器timer操作示例
class keytest : Form { //在整个客户区显示文本 private Button btn1; //手工编写定时器timer,实现间隔性...
敏捷软件开发:原则,模式,实践
阅至p14希望可以学到一些东东.虽然本例示例以JAVA编写.但我想C#与JAVA大同小异,其码在语法是这样的,思想的东东总是共通的吗. 能有一点儿的提升.对于之后的工作与编程也有大有提益的....
winform font字体编程续
//学习同种字形以不同磅值在不同行显示的多种效果 const string fontstr = "Times New Roman";//time new roman字形 public keytest() ...
winform之font字体
//学习字体,字体包括字形(字体名)及镑值,字体有truetype和opentype,这是两处技术;还有早期的光栅字体和矢量字体,虽早已不用\ //字体或字形都属于一个字形系列,它一般有个简单的名...
arraylist.toarray转换为指定类型的array及drawlines折线
//学习toarray方法 private ArrayList al=new ArrayList();//集合适用于动态分配的集合,试想此时用数组,只能固定分配,要后来少了,报错,要多少,浪费内存,所以采用arraylist...
arraylist之添加元素add与capacity及count的关系
private ArrayList al = new ArrayList(2); public keytest() { al.Add(1); ...
winform手绘直线drawline
//手工编写直线 private bool istrack = false;//按下true,放开false,不然一直画线 private Point beginpoint; protected overr...
winform之手绘矩形及光标字符串与光标关联显示
class keytest:Form { private Label lbl1; //在窗体画多个矩形,每个矩形填充光标的不同形状  ...
winform之鼠标进入及停留相关事件及光标cursor
//onmouseenter仅是一个瞬间的动作,马上结束 protected override void OnMouseEnter(EventArgs e) { Point pt =...
winform手工绘制矩形drawrectangle_fillrectangle
using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing;using System.Drawing.Drawing2D;namespace WindowsApplication1{ //手工编写winform ...
c# winform鼠标相关onmouseup,onmousedown,onmousemove,onmousewhell
protected override void OnMouseUp(MouseEventArgs e) { string x = "this is\n"+ &...
c# winform旋转显示绘画
// onpaintbackground为背景绘制事件,如果启用它,窗体工作区看不到,哈哈 protected override void OnPaint(PaintEventArgs e) { ...
键盘上的什么键可以代替鼠标上的右击键
先说如题的答案,结果如下:在键盘的右ctrl旁边有一个文本加箭头的按键,它可以取代代替鼠标的右击键; 凡事有因有果,现在用C#进行开发,使用IDE virsual studio2005时,不时用鼠标右击而后点击转到定义,...
c# winform编程转例
using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using System.Drawing;namespace openfiledialog{ class keytest:Form { &n...
c# winform之绘画及画直曲线相关
protected override void OnPaint(PaintEventArgs pea) { //绘制直线或曲线的工具 ,你要画线必须要用pen,它就类似于画笔一样 pen ;可以基于画...
c# winform 之control onpaint事件及drawstring方法
protected override void OnPaint(PaintEventArgs pea) { Graphics gpis = pea.Graphics; g...