02 2013 档案

摘要:// 拖动一个label 设置背景色为透明,不添加文字 添加以下代码private bool m_isMouseDown = false;private System.Drawing.Point m_mousePos = new System.Drawing.Point();private void label4_MouseDown(object sender, MouseEventArgs e){ base.OnMouseDown(e); m_mousePos = System.Windows.Forms.Cursor.Position; m_isMouseDown = true;}priv 阅读全文
posted @ 2013-02-27 10:57 oftenlin 阅读(258) 评论(0) 推荐(0)
摘要:final TextView tx = (TextView)findViewById(R.id.textView1);// 自动补齐的TextViewAutoCompleteTextView mPlace = (AutoCompleteTextView)findViewById(R.id.autoCompleteTextView1);String[] books = new String[] { "rollen", "allen", "rollenren", "roll" };// 先定义一个原始数据的适配器Arr 阅读全文
posted @ 2013-02-20 13:27 oftenlin 阅读(1630) 评论(0) 推荐(0)
摘要:// --------------------------上传图片并保存至数据库--------------------------------------// 从本地文件中读取图片System.IO.FileStream fs = new System.IO.FileStream(picPath, System.IO.FileMode.Open, System.IO.FileAccess.Read);// 创建buff存储二进制数据byte[] buffbyt = new byte[fs.Length];fs.Read(buffbyt, 0, (int)fs.Length);// 关闭文件流 阅读全文
posted @ 2013-02-20 13:26 oftenlin 阅读(3013) 评论(0) 推荐(1)
摘要:直接上代码Intent intent = new Intent();intent.setClass(MainActivity.this, Test1Activity.class);intent.putExtra("str", "come from first activity");startActivity(intent);在另一个Activity中接受参数protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent inte 阅读全文
posted @ 2013-02-05 11:25 oftenlin 阅读(2514) 评论(0) 推荐(0)