2009-11-06 3 views

답변

1
  1. 클래스

    public class DllFileNameEditor : 
    System.Windows.Forms.Design.FileNameEditor {   protected override void InitializeDialog(OpenFileDialog openFileDialog) 
    { 
        base.InitializeDialog(openFileDialog); 
        openFileDialog.Filter = "Class Library Files (*.dll) |*.dll|All (*.*) |*.*"; 
        openFileDialog.Title = "Select Class Library File"; 
    } } 
    
  2. 수정 특성

    [Category("Identity")] 
    [Description("Dll Location")] 
    [EditorAttribute(typeof(DllFileNameEditor), typeof(System.Drawing.Design.UITypeEditor))] 
    public string DllName 
    { 
        get { return this.GraphDoc.DllName; } 
        set { this.GraphDoc.DllName = value; } 
    } 
    
만들기 System.Design

  • 에 대한 참조를 추가

    mgznet.com/EditFullPathProperty.aspx

  • 관련 문제