I have a custom control that is a progress indicator, similar to the System.Windows.Forms.ProgressBar that continuously loops until its told to stop.
I also have a class that inherits from the System.Windows.Forms.TreeView class, the reason I did this was so that I could have my custom control be displayed while loading the TreeView on a background worker.
However, when I try to add the custom control in the inherited TreeView class I cannot for the life of me get the custom control to get displayed either in the design mode layout or in runtime. If I add a Button or any other .NET control it get's displayed.
I am attempting to add the control to the TreeView by using the constructor. Any advice would be great.
Code:/// <summary> /// Initializes a new instance of the <see cref="GxTreeView"/> class. /// </summary> public GxTreeView() { InitializeComponent(); _CircularProgress = new CircularProgress(); Controls.Add(_CircularProgress); _CircularProgress.BringToFront(); }




Reply With Quote