一、目的:自訂TreeNode屬性,讓控制項可以儲存更多屬性。有利於開發二、方法:public class GroupTreeNode : TreeNode { private IPAddress ip; private HostStatus status; public HostStatus Status { set { status = value; } get { return
posted by Nicholas Blachford on Wed 9th Jul 2003 16:43 UTC This article started life when I was asked to write a comparison of x86 and PowerPC CPUs for work. We produce PowerPC based systems and are often asked why we use PowerPC CPUs instead of x86
介面控制項操作,Dock操作老是出錯。原來是控制項停靠父容器邊緣遠近的問題!msdn備忘:使用 Dock 屬性可以定義在調整控制項的父控制項大小時如何自動調整控制項的大小。例如,將 Dock 設定為 DockStyle.Left 將導致控制項與其父控制項的左邊緣對齊,並在父控制項調整大小時調整自身大小。控制項按照 Z 順序停靠,Z 順序是表單上的控制項沿表單的 Z 軸(深度)的可視化分層。解決辦法:在介面設計時,選中要放於介面前面的的控制項,然後再在右鍵菜單中進行“置於底層”的操作!!!
由於我們會經常在命令列下執行命令,每次開啟一個新的命令列視窗預設的目前的目錄都是C:\Documents and Settings\$UserName,這樣在執行命令之前都要切換目錄,很麻煩,所以我們先來解決這個問題。在“開始”-“運行”中輸入“regedit”,開啟註冊表。找到\HKEY_CLASSES_ROOT\Folder\shell,如果沒有shell,可以在Folder下建立一個名為shell的鍵,在shell下建立一個名為"命令列(Command
An upset men came to wise Socrates and said:"Listen, I have to tell you about your friend...""Wait!" interrupted Socrates."Have you strained what you intend to tell through three strains?" The men wondered:"Three strains?""Yes my friend, three
自訂控制項、使用者定義控制項,方便使用者定義功能強大的控制項。Control屬性:Size,BackGround,Location等屬性Control方法:滑鼠事件繼承了System.Windows.Form.Control 自訂了一個視頻播放的視窗控制項: CodeCode highlighting produced by Actipro CodeHighlighter
namespace ConsoleApplication1{ public class Configuration { Collection<Group> groups = new Collection<Group>(); public Collection<Group> Groups { get { return groups; } set { groups =