上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 遍历 HashTable DictionaryView Code 1 Dictionary<int, string> food = new Dictionary<int, string>(); // HashTable<int, string> food = new HashTable<int, string>(); 2 food.Add(1, "A"); 3 food.Add(2, "B"); 4 IDictionaryEnumerator myEnumerator=food.GetEnumerator( 阅读全文
posted @ 2012-05-07 16:11 一篮饭特稀 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 打开Excel->工具->宏->Viaual Basic编辑器在弹出来的窗口中对着VBAproject点右键->插入->模块下面会出现一个名为"模块1",点击在右边的空白栏中粘贴以下内容:Function getpychar(char)tmp = 65536 + Asc(char)If (tmp >= 45217 And tmp <= 45252) Thengetpychar = "A"ElseIf (tmp >= 45253 And tmp <= 45760) Thengetpychar = &qu 阅读全文
posted @ 2012-05-07 16:10 一篮饭特稀 阅读(236) 评论(0) 推荐(0) 编辑
摘要: ContactShow.aspx:View Code 1 <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContactShow.aspx.cs" Inherits="Strongsoft.FloodControl.Web.Contact.ContactShow" %> 2 <%@ Register Assembly="System.Web.Silverlight" Namespace="System 阅读全文
posted @ 2012-04-19 08:58 一篮饭特稀 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1 private void Init() 2 { 3 TreeViewItem tvi_0 = new TreeViewItem(); 4 5 CheckBox cb = new CheckBox(); 6 cb.Content = "所有"; 7 cb.Checked += new RoutedEventHandler((sender, e) =>{foreach (TreeViewItem item in tvi_0.Items){((item.Header as StackPanel).Children[0] as CheckBox... 阅读全文
posted @ 2012-04-19 08:58 一篮饭特稀 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 请先设置窗体的keyPreView属性为True,确认控件的键盘事件向窗体注册;在窗体的KeyPress事件中编写如下代码:1 private void Form1_KeyPress(object sender, KeyPressEventArgs e) 2 { 3 if (e.KeyChar == (char)13)4 { 5 ... 6 } 7 } 阅读全文
posted @ 2012-03-01 11:17 一篮饭特稀 阅读(226) 评论(0) 推荐(0) 编辑
摘要: --手动分页View Code 1 WordApp.Selection.InsertBreak(Missing.Value);-- 阅读全文
posted @ 2012-02-15 15:49 一篮饭特稀 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 <html> 2 <head></head> 3 ----------------实例1--------------- 4 <script language="javascript"> 5 function add() 6 { 7 var myTable = document.getElementById("aa"); 8 var newRow = aa.... 阅读全文
posted @ 2012-02-15 10:17 一篮饭特稀 阅读(3956) 评论(0) 推荐(0) 编辑
摘要: 1 <script language="javascript"> 2 var intIndex=0;arrList = new Array(); 3 arrList[intIndex++] = "www.flyso.net"; 4 arrList[intIndex++] = "flyso@163.com"; 5 arrList[intIndex++] = "b22dsafsdf"; 6 arrList[intIndex++] = "c333asdfsadf"; 7 arrList[i 阅读全文
posted @ 2012-02-15 10:16 一篮饭特稀 阅读(965) 评论(1) 推荐(0) 编辑
摘要: 1 框架编程概述 2 一个HTML页面可以有一个或多个子框架,这些子框架以<iframe>来标记,用来显示一个独立的HTML页面。这里所讲的框架编程包括框架的自我控制以及框架之间的互相访问,例如从一个框架中引用另一个框架中的JavaScript变量、调用其他框架内的函数、控制另一个框架中表单的行为等。 3 框架间的互相引用 4 一个页面中的所有框架以集合的形式作为window对象的属性提供,例如:window.frames就表示该页面内所有框架的集合,这和表单对象、链接对象、图片对象等是类似的,不同的是,这些集合是document的属性。因此,要引用一个子框架,可以使用如下语法: 阅读全文
posted @ 2012-02-15 10:16 一篮饭特稀 阅读(1609) 评论(1) 推荐(0) 编辑
摘要: 1 1、数字 2 function testisNum(object) 3 { 4 var s =document.getElementById(object.id).value; 5 if(s!="") 6 { 7 if(isNaN(s)) 8 { 9 alert("请输入数字"); 10 object.value=""; 11 object.focus(); 12 } 13 } 14 } 15 16 2、电话号码,传真 17 //校验普... 阅读全文
posted @ 2012-02-15 10:13 一篮饭特稀 阅读(1885) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页