public TreeViewAdvSearchDemo()
 {
     InitializeComponent();
     try
     {
         System.Drawing.Icon ico = new System.Drawing.Icon(GetIconFile(@"common\Images\Grid\Icon\sfgrid.ico"));
         this.Icon = ico;
     }
     catch { }
     this.FormBorderStyle            = System.Windows.Forms.FormBorderStyle.Sizable;
     this.MetroColor                 = System.Drawing.Color.FromArgb(((int)(((byte)(17)))), ((int)(((byte)(158)))), ((int)(((byte)(218)))));
     this.WindowState                = FormWindowState.Normal;
     this.StartPosition              = FormStartPosition.CenterScreen;
     this.Padding                    = new System.Windows.Forms.Padding(10);
     this.MinimumSize                = this.Size;
     this.treeViewAdv1.SelectionMode = Syncfusion.Windows.Forms.Tools.TreeSelectionMode.MultiSelectAll;
     f = new TreeViewSearchForm(this.treeViewAdv1);
     this.treeViewAdv1.PreviewKeyDown += new PreviewKeyDownEventHandler(treeViewAdv1_PreviewKeyDown);
     this.treeViewAdv1.HideSelection   = false;
     this.richTextBox1.AppendText("\n");
     this.treeViewAdv1.OnNodeAfterFound += new Syncfusion.Windows.Forms.Tools.TreeViewOnAfterFindArgs(treeViewAdv1_OnNodeAfterFound);
     this.treeViewAdv1.OnNodeBeforeFind += new Syncfusion.Windows.Forms.Tools.TreeViewOnBeforeFindArgs(treeViewAdv1_OnNodeBeforeFind);
     this.treeViewAdv1.OnNodeReplacing  += new Syncfusion.Windows.Forms.Tools.TreeViewOnReplacingArgs(treeViewAdv1_OnNodeReplacing);
     this.treeViewAdv1.OnNodeReplaced   += new Syncfusion.Windows.Forms.Tools.TreeViewOnReplacedArgs(treeViewAdv1_OnNodeReplaced);
 }
Example #2
0
 void treeViewAdv1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
 {
     if (e.Modifiers == Keys.Control && e.KeyValue == (Char)Keys.F)
     {
         f = new TreeViewSearchForm(this.treeViewAdv1);
         f.ShowDialog();
     }
 }
Example #3
0
 public TreeViewAdvSearchDemo()
 {
     InitializeComponent();
     this.treeViewAdv1.CanOverrideStyle = false;
     this.treeViewAdv1.ThemeStyle.TreeNodeAdvStyle.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.treeViewAdv1.ThemeName = "Office2019Colorful";
     this.WindowState            = FormWindowState.Normal;
     this.StartPosition          = FormStartPosition.CenterScreen;
     this.Padding     = new System.Windows.Forms.Padding(10, 0, 10, 10);
     this.MinimumSize = this.Size;
     this.treeViewAdv1.SelectionMode = Syncfusion.Windows.Forms.Tools.TreeSelectionMode.MultiSelectAll;
     f = new TreeViewSearchForm(this.treeViewAdv1);
     this.treeViewAdv1.PreviewKeyDown   += new PreviewKeyDownEventHandler(treeViewAdv1_PreviewKeyDown);
     this.treeViewAdv1.HideSelection     = false;
     this.treeViewAdv1.OnNodeAfterFound += new Syncfusion.Windows.Forms.Tools.TreeViewOnAfterFindArgs(treeViewAdv1_OnNodeAfterFound);
     this.treeViewAdv1.OnNodeBeforeFind += new Syncfusion.Windows.Forms.Tools.TreeViewOnBeforeFindArgs(treeViewAdv1_OnNodeBeforeFind);
     this.treeViewAdv1.OnNodeReplacing  += new Syncfusion.Windows.Forms.Tools.TreeViewOnReplacingArgs(treeViewAdv1_OnNodeReplacing);
     this.treeViewAdv1.OnNodeReplaced   += new Syncfusion.Windows.Forms.Tools.TreeViewOnReplacedArgs(treeViewAdv1_OnNodeReplaced);
 }