-
Using a ExplorerBarGroup as a Container Control [Janus GridEX WinForms Control v3.5 for .NET]
This tutorial is intended to show you how to set an ExplorerBarGroup as a container control.
The steps followed to create this project are:
1) Create a new Visual Basic or C# project using "Windows Application" Template.
2) Drag an ExplorerBar control from the toolbox into the Form designer.
3) Right click in the ExplorerBar control and select "ExplorerBar Designer" menu. In the
ExplorerBar dialog add a new group and set its Container property to true in the property
window.
4) In the Load event of the form add the TreeView control as follows:
In C#
private void Form1_Load(object sender, System.EventArgs e)
{
this.explorerBar1.Groups[0].ContainerControl.Controls.Add(this.treeView1);
this.treeView1.Dock = DockStyle.Fill;
}
In VB
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _
MyBase.Load
Me.ExplorerBar1.Groups(0).ContainerControl.Controls.Add(Me.TreeView1)
Me.TreeView1.Dock = DockStyle.Fill
End Sub
Note: At design time you can just drag the TreeView control into the ExplorerBarGroup directly
5) Run the project.
Source Of Information : Janus v3.5 Help Files for VS 2008
Subscribe to:
Post Comments (Atom)
0 comments: