2013年11月27日

摘要: 【转载】首先在窗体中添加一个 notifyIcon1控件 ,Then://添加事件《实现最小化之后任务栏显示图标》 private void Form1_StyleChanged(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Minimized) { this.notifyIcon1.Visible = true; this.Visible = false; ... 阅读全文
posted @ 2013-11-27 16:31 MasonChi 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 1 private void Form1_Load(object sender, EventArgs e) 2 { 3 4 System.Windows.Forms.Timer StopRectTimer = new System.Windows.Forms.Timer(); 5 StopRectTimer.Tick += new EventHandler(timer1_Tick); 6 StopRectTimer.Interval = 50; 7 Sto... 阅读全文
posted @ 2013-11-27 16:27 MasonChi 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 【转载】当点击窗体1的按钮,窗体2就出现在窗体1的左边:窗体1public partial class Form1 : Form{public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){Form2 f = new Form2(this.Location.X+this.Width,this.Location.Y);//窗体2出现在左还是右,在new Form2()输入参数f.Show();}}窗体2public partial class Form2 : Form{i 阅读全文
posted @ 2013-11-27 16:25 MasonChi 阅读(192) 评论(0) 推荐(0) 编辑
摘要: window->customize perspective/Command Groups Availability 勾选Android SDK and AVD Manager 阅读全文
posted @ 2013-11-27 16:18 MasonChi 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 【转载】搭建Android 的开发环境啦,步骤如下:1. 安装JDK。注意这里只是安装JRE是不行的,需要安装JDK笔者是去http://www.oracle.com/technetwork/java/javase/downloads/index.html下载了 JDK 6 Update 20。注: 根据www.eclipse.org的官方信息,在windows 平台上安装了JDK 6 Update 21,然后运行Eclipse Helios (3.6) 会出现 crashing,需要进行一些设置 (http://wiki.eclipse.org/FAQ_How_do_I_run_Eclips 阅读全文
posted @ 2013-11-27 16:14 MasonChi 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 【转载】Android中实现拍照有两种方法,一种是调用系统自带的相机,然后使用其返回的照片数据。 还有一种是自己用Camera类和其他相关类实现相机功能,这种方法定制度比较高,洗染也比较复杂,一般平常的应用只需使用第一种即可:读写sd卡文件必须首先要在Mainifest.xml文件中配置权限: 用Intent启动相机的代码:Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, 1);拍完照后就可以在:onActivityResult(int requestCode. 阅读全文
posted @ 2013-11-27 16:02 MasonChi 阅读(183) 评论(0) 推荐(0) 编辑

2013年5月12日

摘要: 【转载】//在c# / ASP.net中我们可以通过使用DataTime这个类来获取当前的时间。通过调用类中的各种方法我们可以获取不同的时间:如:日期(2008-09-04)、时间(12:12:12)、日期+时间(2008-09-04 12:11:10)等。//获取日期+时间DateTime.Now.ToString(); // 2008-9-4 20:02:10DateTime.Now.ToLocalTime().ToString(); // 2008-9-4 20:12:12//获取日期DateTime.Now.ToLongDateString().To... 阅读全文
posted @ 2013-05-12 12:23 MasonChi 阅读(114) 评论(0) 推荐(0) 编辑

导航