Help and How To articles for our fantastic products
You can create toolbars in either design-time using the DotNetBar Windows Forms designer or in run-time by writting the code. You can always create the toolbar in design-time and explore the InitializeComponent method that is automatically created on the form and which will have all the code that is needed to create the toolbar that […]
See following code for sample implementation. Also review the BarFromCode sample shipped with DotNetBar for working sample and full source code. VB: Imports DevComponents.DotNetBar . . . ‘ Create a new Bar Dim bar As Bar = New Bar("Standard") bar.GrabHandleStyle = eGrabHandleStyle.StripeFlat m_DotNetBar.Bars.Add(bar) bar.DockSide = eDockSide.Top ‘ Add Items to it Dim item, subItem […]
Sample below shows how to create the popup toolbar that looks like the Excel popup toolbar that allows you to pick border type. The toolbar is created completely in design-time with following key settings on main toolbar button: Click-here to download C# Sample project. Click-here to download VB Sample project.
Adding any .NET control to DotNetBar is very easy with the help of ControlContainerItem object. Please note that this process is completely automatic using DotNetBar Windows Forms designer and you do not have to write any code if you do not have special requirements. To add the any control at design-time to toolbar, ribbonbar or […]