#region 回车键当Tab键使用 private void enter_KeyPress(object sender, KeyPressEventArgs e) { foreach (Control c in this.Controls) { c.KeyPress += new System.W...
分类:
其他好文 时间:
2014-07-14 08:09:07
阅读次数:
240
背景: private System.Windows.Controls.Border _borderTouch; private bool _mouseDown = false; private System.Windows.Point _currentPoint = new System.Wi.....
分类:
其他好文 时间:
2014-07-10 00:29:50
阅读次数:
287
如何将一个窗体显示到一个容器控件中,刚开始想的比较简单,用窗体容器控件添加一般控件的方法,试了一试,代码如下: Form2 frm = new Form2(); this.panel1.Controls.Add(frm); frm.S...
private RichTextBox FindControl() { RichTextBox ret = null; try { Control[] controls = Application.OpenForms["MainForm"].Controls.Find("txtContent", ....
一、silverlight 静态页面1、时间控件:DatePicker ,添加引用: xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls",触发事件:SelectedDateChanged...
分类:
Web程序 时间:
2014-07-02 19:28:42
阅读次数:
196
unit Unit1;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, ...
分类:
其他好文 时间:
2014-07-02 19:11:48
阅读次数:
202
这篇内容我们继续上一篇的例子接着做下去,为其再添加3个table view的例子,有了之前的基础,学习下面的例子会变得很简单,很多东西都是举一反三,稍稍有些不同的内容,好了,闲话少说,开始这次的学习。如果没有上一篇的代码,可以从这里下载Nav_11)第三个subtableview:Controls ...
分类:
移动开发 时间:
2014-07-02 17:09:37
阅读次数:
316
1 using System; 2 using System.IO; 3 using System.Collections.Generic; 4 using System.Windows; 5 using System.Windows.Controls; 6 using System....
分类:
其他好文 时间:
2014-06-27 19:57:12
阅读次数:
232
在FormLoad里面添加控件时,用this.Controls.Add()方法向窗体里面动态添加控件,调试,一直不显示,后来发现原来窗体上有一个groupbox覆盖了整个窗体,其实控件已经添加上去了,只是被遮盖了。后面改为this.groupBox1.Controls.Add(),把控件添加到gro...
unit Unit1;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V.....
分类:
其他好文 时间:
2014-06-24 23:36:30
阅读次数:
486