摘要: 转载自:http://sperling.com/examples/box/Note:this is a box with rounded corners. I have reviewed the available references and found similar solutions, but none that do it this way.✓ This box was created by using eight very small gifs. One for each corner, and one for each side (total combined size of o 阅读全文
posted @ 2011-06-07 09:12 刘理想 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 简要说明:可扩展程序包括三个部分,第一部分是个接口程序,包含IAppFunctionality接口,所有扩展都要实现该接口,第二部分是扩展,实现IAppFunctionality,第三部分是主程序,它检测与它同级目录下是否有plugins文件夹,如果没有,就创建,如果有,查找该目录下所有实现IAppFunctionality接口的程序集,并更新菜单。未添加扩展(即plugins下无dll程序)的运行情况安装插件之后点击Plugin1和Plugin2:程序源码:1234567891011121314151617//AuthorInfoAttribute.csusing System;namesp 阅读全文
posted @ 2011-06-02 10:30 刘理想 阅读(854) 评论(2) 推荐(0) 编辑
摘要: This article is about communicating through the PC's Serial COM RS-232 port using Microsoft .NET 2.0 or later by using the System.IO.Ports.SerialPort class. If you're looking for USB info,see here.Way in the Past...Back in my early (pre C# MVP) days, I had written an article onDevHoodtitledS 阅读全文
posted @ 2011-05-04 17:08 刘理想 阅读(10073) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-03-08 11:05 刘理想 阅读(4287) 评论(4) 推荐(1) 编辑
摘要: 一、input()与raw_input()的区别代码从上面的例子可以看到,raw_input()将输入看作字符串,而input则不是,input()根据输入来判断类型,当然如果你想输入字符串的话就必须在字符串钱加引号。二、输出的问题如果我们定义一个整数,然后要将其与字符串同时输出,如下所示代码可见不能直接用加号来表示,解决方法有三种:第一种可以把n转化为字符串,用str()内建函数:[代码]第二种... 阅读全文
posted @ 2010-05-25 12:09 刘理想 阅读(402) 评论(0) 推荐(0) 编辑