博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
one world !
wdhhjj.cublog.cn
管理博客
发表文章
留言
收藏夹
博客圈
音乐
相册
文章
首页
关于作者
姓名:wdhhjj 职业:学生 年龄: 位置: 个性介绍:
||
<<
>>
||
我的分类
最新照片
上一张
下一张
幻灯片
停止播放
最新文章
·
结婚时间安排表》 女生必..
·
你的手上有几个斗?看婚姻..
·
C#操作Word
·
带权无向图转化为最小生成树
·
使用多线程显示进度条
最新留言
·
镜子
仲秋节快乐!
·
happytt
太懒了,我都不好意思把你的..
·
镜子
好久没过来,你依旧这么懒..
·
竹羽
现在看到的最新的是7月28号..
·
wdhhjj
呵呵,惭愧,是有些懒啊,..
最新评论
·
顶起 ^_^
·
df
·
好,很详细..
·
好啊,写的好,我正需要呢。
·
有些高深
最新收藏
·
汤汤
·
眼镜
·
阿德红
·
梅梅,路
·
海色珊瑚
统计信息
·
总访问量:53775
·
文章个数:97
·
评论条数:18
·
留言条数:10
·
网友推荐:
【置顶】我的 blog
<DIV>欢迎光临 我 的 blog !</DIV> <DIV>由于学习需要,我的blog主要是是关于(linux和c语言)(VS.NET)的技术性文章,</DIV> <DIV>也有一些个人的心情日记之类的东东,分在不同的目录中。</DIV> <DIV>对于技术性文章,欢迎给出修正和指点,谢谢</DIV> <DIV>其他的随便发,多谢光顾。 <DIV align=center><IMG src="http://www.cublog.cn/u/18527/upfile/060520120631.jpg" onload="javascript:if(this.width>500)this.width=500;" border=0></DIV></DIV> <DIV></DIV> <DIV></DIV>
查看全文
发表于:2006-05-20 ┆
阅读(418)
┆
评论(2)
【置顶】提醒
<DIV>每次的学习都应写下来,不然很快就忘掉了!</DIV> <DIV> </DIV> <DIV>习惯和学会使用foreach语句,特别是对于有集合属性的对象,如TreeView.Nodes,以及容器控件的Controls等。</DIV> <DIV></DIV>
查看全文
发表于:2007-08-15 ┆
阅读(566)
┆
评论(0)
【置顶】做到下面10点,你将成为股市高手
<DIV class=t_msgfont id=message2194949>做到下面10点,你将成为股市高手: <BR>1.做趋势的跟随者,不盲目预测顶和底.<BR><BR>2.买卖操作时要有明确的技术依据和理由,对可能的判断失误要提前想好应对措施.<BR><BR>3.要懂得顶和底是区域的概念,不是点的概念,顶和底不是一天就能形成的.<BR><BR>4.不要寄希望找到能准确预测大盘或个股每一天走势的人,世界上根本就不存在,应学会判断趋势行情.<BR><BR>5.不能把抢反弹当成主要的盈利手段,操作上应学会去赚取大波段利润,放弃蝇头小利的操作和想法.<BR><BR>6.对于众多博客写手的观点及建议,你应仔……
查看全文
发表于:2007-11-06 ┆
阅读(333)
┆
评论(0)
结婚时间安排表》 女生必看,男生珍藏,留着备用...
<DIV> <P>婚礼前三个月 <P>1.购买婚戒 <P>2.选择化妆师并试装试妆 <P>3.选择婚纱摄影公司,拍摄结婚照 <P>4.选定婚庆公司,商量具体形式,各项细节(整体花饰,仪式及婚宴上采用的音乐,摄像等) <P>5.确定伴郎伴娘花童 <P>6.选择新郎新娘伴郎伴娘和父母的礼服 <P>7.和酒店讨论菜单等细节 <P>8.选定仪式上的主婚词,证婚词,新人致辞 <P>9.如果去国外度蜜月,应考虑办理护照 </P> <P>婚礼前一个月 <P>1.检查美容,美体效果,及时调整护理方案 <P>2.试穿礼服,以便修改 <P>3.选择捧花及其他配饰 <P>4.请婚假 ……
查看全文
发表于:2010-03-06 ┆
阅读(33)
┆
评论(0)
你的手上有几个斗?看婚姻很准的
<DIV class="gs_userdefined_input lh18 c_text mt20"><FONT size=2><SPAN>十个斗的人和十个簸箕的是上天注定的姻缘,他们要受好几世磨难不能相守,才可以换来下一生缘份,而且呀即使离去也不必再喝孟婆汤,这样就可以生生世世都记着对方,不再分离。 科学分析:十个斗和十个簸箕的人是完全的互补型性格,一个刚一个柔,一个主动一个被动。互相吸引互相拿对方没辙。在一起是十全十美(民间也有这种古老的说法) <BR>总之这是最佳组合,在一起会很幸福的。 <BR> 由于这两种人都是极端性格(其中含有复杂斗纹或者反……
查看全文
发表于:2010-02-28 ┆
阅读(88)
┆
评论(0)
C#操作Word
<DIV>首先要添加引用:</DIV> <DIV>在 解决方案资源管理器 的 引用 中添加,选择 COM 选项卡,引入“Microsoft Word 11.0 Object Library”;</DIV> <DIV>然后添加命名空间:“using System.Reflection;”和“usin……
查看全文
发表于:2008-11-28 ┆
阅读(900)
┆
评论(0)
带权无向图转化为最小生成树
<DIV align=left>看电子书看到的,就粘图片上来吧<IMG src="http://blogimg.chinaunix.net/blog/upfile2/080628163233.gif" onload="javascript:if(this.width>500)this.width=500;" border=0></DIV> <DIV> <DIV align=center><IMG src="http://blogimg.chinaunix.net/blog/upfile2/080628163400.gif" onload="javascript:if(this.width>500)this.width=500;" border=0></DIV></DIV>
查看全文
发表于:2008-06-28 ┆
阅读(458)
┆
评论(0)
使用多线程显示进度条
<DIV>程序需求:</DIV> <DIV>主窗体上有一个按钮,点击后显示另外一个窗体 BEPxjForm ,但这个窗体的初始化过程非常缓慢,因此需要在其 new 的过程中显示 进度条 和“正在计算”字样,在 new 完成后隐藏,并且新窗体的 Show() 或 ShowDialog() 方法由主窗体调用。</DIV> <DIV> </DIV> <DIV> </DIV> <DIV>解决方法:</DIV> <DIV><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">//</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">以下部分处于主窗体的类中<SPAN lang=EN-US>---------------------------------------------------------</SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>BEPxjForm bepxjF;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">private</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">void</SPAN><FONT color=#000000> button1_Click(</FONT><SPAN style="COLOR: blue">object</SPAN><FONT color=#000000> sender, </FONT><SPAN style="COLOR: teal">EventArgs</SPAN><FONT color=#000000> e)<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>showCalCtrl();<SPAN style="mso-tab-count: 1"> </SPAN></FONT><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">显示 正在计算 控件</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p><FONT color=#000000> </FONT></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: teal">newBEPxjDT</SPAN><FONT color=#000000> newBEPxjO = </FONT><SPAN style="COLOR: blue">new</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: teal">newBEPxjDT</SPAN><FONT color=#000000>(newBEPxjF);<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 5pt; TEXT-INDENT: -5pt; TEXT-ALIGN: left; mso-layout-grid-align: none; mso-char-indent-count: -.5" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: teal">IAsyncResult</SPAN><FONT color=#000000> res = newBEPxjO.BeginInvoke(</FONT><SPAN style="COLOR: blue">null</SPAN><FONT color=#000000>, </FONT><SPAN style="COLOR: blue">null</SPAN><FONT color=#000000>);<SPAN style="mso-tab-count: 1"> </SPAN></FONT><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">注意:是<SPAN lang=EN-US>newBEPxjO.BeginInvoke </SPAN>而不是 <SPAN lang=EN-US>this.BeginInvoke<o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p><FONT color=#000000> </FONT></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">注意:理论上,这里不需要使用委托而直接调用 <SPAN lang=EN-US>ShowProgress() </SPAN>就可以实现目标,但是实际上如果直接调用,由于主线程会不断的测试辅助线程是否结束和执行 <SPAN lang=EN-US>Thread.Sleep() </SPAN>命令,<SPAN lang=EN-US>showCalCtrl() </SPAN>所执行的使各控件显示的命令虽然执行了,但是界面中却并不能表现出来。因此,必须要使用新的线程来做进度条前进的动作。<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>showProDT showProO = </FONT><SPAN style="COLOR: blue">new</SPAN><FONT color=#000000> showProDT(ShowProgress);<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>showProO.BeginInvoke(res, </FONT><SPAN style="COLOR: blue">null</SPAN><FONT color=#000000>, </FONT><SPAN style="COLOR: blue">null</SPAN><FONT color=#000000>);</FONT><SPAN style="COLOR: green"><SPAN style="mso-tab-count: 1"> </SPAN>//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">注意:是 <SPAN lang=EN-US>showProO.BeginInvoke </SPAN>而不是 <SPAN lang=EN-US>this.BeginInvoke</SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>}</FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><o:p></o:p></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">//</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">初始化耗时窗体<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">delegate</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">void</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: teal">newBEPxjDT</SPAN><FONT color=#000000>();<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">void</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000> newBEPxjF()<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>bepxjF = </FONT><SPAN style="COLOR: blue">new</SPAN><FONT color=#000000> BEPxjForm(netCashOut, Tax, discountRate, JF, ZF);<SPAN style="mso-tab-count: 1"> </SPAN></FONT><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">(耗时过程)</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>endBEPxjF();<SPAN style="mso-tab-count: 2"> </SPAN></FONT><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">在耗时过程完成后,使其他窗体控件等恢复原状</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>}</FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><o:p></o:p></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">//</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">初始化窗体完成并使其显示,其他窗体控件等恢复原状<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">delegate</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">void</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: teal">endBEPxjDT</SPAN><FONT color=#000000>();<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">void</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000> endBEPxjF()<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (!</FONT><SPAN style="COLOR: blue">this</SPAN><FONT color=#000000>.InvokeRequired)<SPAN style="mso-tab-count: 2"> </SPAN></FONT><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">如果是主线程自用(本例中不会直接由主线程调用)</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>hideCalCtrl();<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>bepxjF.ShowDialog();<SPAN style="mso-tab-count: 2"> </SPAN></FONT><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">由于是由主线程调用的,所以属于主窗体管理</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: blue">else<SPAN style="mso-tab-count: 1"> </SPAN><SPAN style="mso-tab-count: 3"> </SPAN></SPAN><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">如果是在辅助线程中调用,由于辅助线程不能直接控制主线程中创建的控件,所以需要使用委托来完成。注意,是使用 <SPAN lang=EN-US>this.BeginInvoke </SPAN>而不是 <SPAN lang=EN-US>endBEPxjO.BeginInvoke </SPAN>,这是与主线程中所用的方法的不同之处<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: teal">endBEPxjDT</SPAN><FONT color=#000000> endBEPxjO = </FONT><SPAN style="COLOR: blue">new</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: teal">endBEPxjDT</SPAN><FONT color=#000000>(endBEPxjF);<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: blue">this</SPAN><FONT color=#000000>.BeginInvoke(endBEPxjO);<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>}</FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><o:p></o:p></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">//</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">使进度条不断前进<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">delegate</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000> </FONT><SPAN style="COLOR: blue">void</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: teal">showProDT</SPAN><FONT color=#000000>(</FONT><SPAN style="COLOR: teal">IAsyncResult</SPAN><FONT color=#000000> res);<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">void</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000> ShowProgress(</FONT><SPAN style="COLOR: teal">IAsyncResult</SPAN><FONT color=#000000> res)<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (!</FONT><SPAN style="COLOR: blue">this</SPAN><FONT color=#000000>.InvokeRequired) <SPAN style="mso-tab-count: 1"> </SPAN></FONT><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">如果是主线程自用(本例中不会直接由主线程调用)</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: blue">while</SPAN><FONT color=#000000> (!res.IsCompleted)<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">这里并不是根据实际执行进度显示进度条的,而是进度条不断向前走,如果达到最大,则变为<SPAN lang=EN-US>0</SPAN>,重新前进</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: teal">Thread</SPAN><FONT color=#000000>.Sleep(500);<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>progressBar1.PerformStep();<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: blue">if</SPAN><FONT color=#000000> (progressBar1.Value >= progressBar1.Maximum)<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN></FONT><SPAN style="COLOR: teal">Thread</SPAN><FONT color=#000000>.Sleep(500);<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>progressBar1.Value -= progressBar1.Maximum;<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">如果辅助线程结束了,即耗时的工作已完成,则使进度条快速前进到最大</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: blue">while</SPAN><FONT color=#000000> (progressBar1.Value < progressBar1.Maximum)<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>progressBar1.PerformStep();<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: teal">Thread</SPAN><FONT color=#000000>.Sleep(100);<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: blue">else<SPAN style="mso-tab-count: 3"> </SPAN></SPAN><SPAN style="COLOR: green">//</SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">如果是在辅助线程中调用,由于辅助线程不能直接控制主线程中创建的控件,所以需要使用委托来完成。注意,是使用 <SPAN lang=EN-US>this.BeginInvoke </SPAN>而不是 <SPAN lang=EN-US>showProO.BeginInvoke </SPAN>,这是与主线程中所用的方法的不同之处</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: teal">showProDT</SPAN><FONT color=#000000> showProO = </FONT><SPAN style="COLOR: blue">new</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: teal">showProDT</SPAN><FONT color=#000000>(ShowProgress);<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><SPAN style="mso-spacerun: yes"><FONT color=#000000> </FONT></SPAN><SPAN style="COLOR: blue">this</SPAN><FONT color=#000000>.BeginInvoke(showProO, </FONT><SPAN style="COLOR: blue">new</SPAN><FONT color=#000000> </FONT><SPAN style="COLOR: blue">object</SPAN><FONT color=#000000>[] { res });<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">//</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">显示 正在计算 控件<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">void</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000> showCalCtrl()<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>labelCal.Visible = </FONT><SPAN style="COLOR: blue">true</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>progressBar1.Value = progressBar1.Minimum;<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>progressBar1.Visible = </FONT><SPAN style="COLOR: blue">true</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">//</SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">隐藏 正在计算 控件<SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">void</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000> hideCalCtrl()<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>{<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>labelCal.Visible = </FONT><SPAN style="COLOR: blue">false</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000><SPAN style="mso-spacerun: yes"> </SPAN>progressBar1.Visible = </FONT><SPAN style="COLOR: blue">false</SPAN><FONT color=#000000>;<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes"><FONT color=#000000>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-no-proof: yes">//end------------------------------------------------------------------------------</SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left></SPAN></P></DIV> <P> </P>
查看全文
发表于:2008-06-19 ┆
阅读(785)
┆
评论(0)
测试奇偶性
<P>测试奇偶性最常用的方法就是除2求余,如</P> <P>if(value % 2 == 0)...</P> <P>但是这种算法不是最高效的,计算机最擅长做的是位运算,因此下面的算法是高效的:</P> <P>public static bool IsEven(int value) //测试是否位偶数</P> <P>{</P> <P> return ((value & 1) == 0);</P> <P>}</P> <DIV> <P>public static bool IsOdd(int value) //测试是否位奇数</P> <P>{</P> <P> return (!IsEven(value));</P> <P>}</P></DIV>
查看全文
发表于:2008-05-20 ┆
阅读(372)
┆
评论(0)
将文本转换为等价枚举值(C#)
<DIV>方法:使用Enum类静态方法Parse。</DIV> <DIV> </DIV> <DIV>例:</DIV> <DIV>enum language<BR>{<BR> other=0,CSharp=1,VBnet=2,Java=4<BR>}<BR>static void Main()<BR>{</DIV> <DIV> try<BR> {<BR> language lan = (language)Enum.Parse(typeof(language), "CSharp", true);<BR> }<BR> catch (ArgumentException e)<BR> {<BR> &nb……
查看全文
发表于:2008-05-20 ┆
阅读(486)
┆
评论(0)
80后呐喊:我们是被出卖的一代,被牺牲的一代!
所有出生于1980年代的同龄人们,我们被出卖了! <BR> 现实彷徨、失望、茫然的你,是否在暗夜无助地心伤、哭泣? <BR> 我们,被时代出卖,我们注定成为大时代巨浪的牺牲品,我们注定被吞噬,只有少数人能得到救赎! www.6park.com <BR> 你活着累吗?你想到过自杀吗? <BR> 在命运面前,我们有太多的梦想,而梦想就象偶尔射进我们房间里的阳光,在刹那间迷醉了你我,然后就消失殆尽。 www.6park.com <BR><CLK> ★首先,我们已经输在起跑线上!如果把人生比作万米长跑,我们大多数人都必须从零起步,而那些官僚权……
查看全文
发表于:2008-05-07 ┆
阅读(421)
┆
评论(0)
普通中缀表达式转化为逆波兰式(c#实现)
<DIV><FONT size=2>逆波兰式也叫后缀表达式(将运算符写在操作数之后),如:我们平时写a+b,这是中缀表达式,写成后缀表达式就是:ab+,使用逆波兰式的好处是有利于计算机运算。当计算机遍历一个逆波兰式时,从式中取出数字压栈,当遇到一个运算符,就将栈顶的两个数进行运算,然后将运算结果压栈,再继续遍历逆波兰式后面的元素。这样,计算机就不需要考虑中坠表达式中的括号、运算顺序等,从而有利于计算机运算。人工将普通表达式转换为逆波兰式时,方法例如: (a+b)*c-(a+b)/e的后缀表达式为:</FONT> <BR><FONT size……
查看全文
发表于:2008-04-22 ┆
阅读(1131)
┆
评论(1)
获取可执行文件(程序文件)的文件信息
<DIV>使用System.Diagnostics命名空间的FileVersionInfo类,可以获取可执行文件的各项文件信息。</DIV> <DIV> </DIV> <DIV>例:</DIV> <DIV> //注意这句的使用方法:没有new,而是调用了其静态方法,返回值仍为FileVersionInfo<BR> FileVersionInfo myInfo = FileVersionInfo.GetVersionInfo(myFileName);</DIV> <DIV> ……
查看全文
发表于:2008-03-01 ┆
阅读(418)
┆
评论(0)
股市六大生存法则
笔者一直认为,炒股票技术面不是最重要,基本面不是最重要,哪怕您对股市一窍不通,都没关系,但有三点必须做到:<FONT color=#0000ff>第一是心态要稳定;第二是理念要坚定;第三是要遵守纪律。</FONT>这些看来都是比较虚的东西,却能让我们从骨子里具备赚钱的本领,而不是徒有外表。古人说,腹有诗书气自华,说得大概就是这个意思。 <P style="TEXT-INDENT: 2em">看看那些赚了大钱的人,再看看在股市大涨过程中仍处于亏损状态的人,笔者认为,物竞天择,适者生存,强者之所以成为强者,主要是他们遵循了以下六条法则,这些法则都在笔者的……
查看全文
发表于:2008-01-04 ┆
阅读(354)
┆
评论(0)
购买新股
申购新股在中国股市历史上向来就有不败之说,新股中签往往意味着获得了一笔可观的无风险收益。今年9月19日,《证券发行与承销管理办法》(以下简称《办法》)正式施行,这部7000余字的法规重点规范了首次公开发行股票的询价、定价以及股票配售等环节,完善了现行询价制度。《办法》的正式实施,使新股申购再次成为市场热议的话题。 <P> 中小投资者中签机会增加</P> <P> 《办法》中至少有两项规定利好中小投资者,增加了中小投资者申购新股中签的机会。</P> <P> 一是《办法》第32条规定,首次公开发行股票达到一定规模的,发行……
查看全文
发表于:2007-11-16 ┆
阅读(503)
┆
评论(0)
奥运前一两个月中国股市表现达到顶峰
<P style="TEXT-INDENT: 2em">王元平 </P> <P style="TEXT-INDENT: 2em"></P> <P style="TEXT-INDENT: 2em"><NOBR oncontextmenu="return false;" onmousemove=kwM(0); id=key0 onmouseover="kwE(event,0, this);" style="FONT-WEIGHT: bold; COLOR: #009900; BORDER-BOTTOM: #009900 1px dotted; BACKGROUND-COLOR: transparent; TEXT-DECORATION: underline" onclick="return kwC();" onmouseout="kwL(event, this);" target="_blank">国际</NOBR>知名投行高盛今日在北京<A href="http://weather.qq.com/preend.htm?dc125.htm" target……
查看全文
发表于:2007-11-13 ┆
阅读(335)
┆
评论(0)
对窗体进行打印预览
<P>此示例说明如何对当前窗体进行打印预览的副本。</P> <H4 class=dtH4>示例</H4><PRE class=code>[System.Runtime.InteropServices.DllImport("gdi32.dll")] public static extern long BitBlt (IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, int dwRop); private Bitmap memoryImage; private void CaptureScreen() { Graphics mygraphics = this.CreateGraphics(); Size s = this.Size; memoryImage = new Bitmap(s.Width, s.Height, mygraphics); Gr……
查看全文
发表于:2007-11-12 ┆
阅读(395)
┆
评论(0)
打印窗体
<P>此示例说明如何打印当前窗体的副本。</P> <H4 class=dtH4>示例</H4><PRE class=code>[System.Runtime.InteropServices.DllImport("gdi32.dll")] public static extern long BitBlt (IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, int dwRop); private Bitmap memoryImage; private void CaptureScreen() { Graphics mygraphics = this.CreateGraphics(); Size s = this.Size; memoryImage = new Bitmap(s.Width, s.Height, mygraphics); Graphics mem……
查看全文
发表于:2007-11-12 ┆
阅读(286)
┆
评论(0)
如何看K线图之卖出信号
<FONT size=2>1、十字线<BR> 在高价圈出现十字线(开盘收盘等价线),并留下上下影线,其中上影线较长。此情形表示股票价格经过一段时日后,已涨得相当高,欲振乏力,开始要走下坡,这是明显的卖出信号。<BR><BR> 2、覆盖线<BR> 行情连续数天扬升之后,隔日以高盘开出,随后买盘不愿追高,大势持续滑落,收盘价跌至前一日阳线之内。这是超买之后所形成的卖压涌现,获利了结盘大量抛出之故,将下跌。<BR><BR> 3、孕育线(阳线缩在较长的阳线之内)<BR> 连续数天扬升之后……
查看全文
发表于:2007-10-31 ┆
阅读(398)
┆
评论(0)
使窗体的关闭事件无效
要使窗体的关闭事件无效,只需要在窗体的FormClosing事件中加入以下代码:e.Cancel = true; <DIV></DIV>
查看全文
发表于:2007-10-29 ┆
阅读(551)
┆
评论(0)
版权所有 ChinaUnix.net 页面生成时间:0.05543