可以實現側邊欄的展開
界面
相關代碼
展開
private void toolStripButton
{
//鼠標懸停事件
if (!this
{
Thread ts = new Thread(new ParameterizedThreadStart(TaskShowPanel));
ts
ts
ts
}
}
//定義的線程執行函數
private void TaskShowPanel(Object ParObject)
{
int w = (int)ParObject;
for (int i =
{
ShowPanel(this
}
}
private delegate void SetTextCallback(Panel p
/// <summary>
/// 展開動作
/// </summary>
/// <param name="p
/// <param name="w">寬度</param>
private void ShowPanel(Panel p
{
//跨線程訪問
try
{
if (p
{
SetTextCallback d = new SetTextCallback(ShowPanel);
p
}
else
{
p
if (!p
{
p
}
}
}
catch (Exception ex)
{
MessageBox
}
}
隱藏
private void listView
{
Point panelPoint = this
//this
//this
if (this
{
this
}
}
鎖定
private void button
{
//刪除隱藏事件
this
}
From:http://tw.wingwit.com/Article/program/net/201311/14295.html