DevComponents.com

Category » How Torss button

How to do things with DotNetBar

There were 19 questions found in this category:

  1. questionHow to add any control to menu, toolbar and other DotNetBar controls
    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 de ...
  2. questionHow to change global text rendering properties
    Applies to DotNetBar for Windows Forms 7.2 .NET Framework 2.0+ or later.DotNetBar by default uses Graphics DrawString (GDI+) method for text rendering. .NET Framework 2.0 introduces the TextRenderer class as an alternative text rendering way that you might prefer over default GDI+ method.To swit ...
  3. questionHow to change ListViewEx border color
    Expand Border property by clicking + next to it. Change BorderColor property.From code simply use following: listViewEx1.Border.BorderColor = Color.Green
  4. questionHow to change TabControl tab and panel colors
    By default TabControl and its panels use the colors that are pre-determined by the style that is set using TabControl.Style property.To customize TabControlPanel colors which hosts the controls you add to the tab follow these steps:1. Select TabControlPanel in VS.NET designer.2. Set UseCustomSty ...
  5. questionHow to Create Context Menus
    Creating the context menus consists of adding the ContextMenuBar control to the form and using the designer action items or right-click context menu commands to add items to it. The top level button that is added to the ContextMenuBar acts as the context menu parent that is assigned to the contr ...
  6. questionHow to create Dockable Windows
    Creating and manipulating dockable windows using DotNetBar is very easy and does not require writing any code. Follow these steps to create dockable windows: Add DotNetBarManager to the the form Right-click DotNetBarManager icon and choose one of the Create Dock Bar context menu commands Add you ...
  7. questionHow to Create Menu Using Code
    You can create menus in either design-time using the DotNetBar Windows Forms designer or in run-time by writting the the code to do so. You can always create the menu in design-time and explore the InitializeComponent method that is automatically created on the form and which will have all the c ...
  8. questionHow to Create Popup Menu or Toolbar
    Please create first top-level items either menu or toolbar see appropriate how to samples. Note that you can always perform this in design-time using DotNetBar Windows Forms designer by simply right-clicking the Button on Bar or any other DotNetBar control and using the context menu commands lie ...
  9. questionHow to Create Toolbars Using Code
    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 tha ...
  10. questionHow to customize DateTimeInput, DoubleInput, IntegerInput and TextBoxX colors
    Colors customization for all controls in DotNetBar is done through Office2007ColorTable. Following code shows how to customize border color for input controls:C#: private void CustomizeColors() { Office2007Renderer renderer = GlobalManager.Renderer as Office2007Renderer; if (renderer == null ...
  11. questionHow to find CrumBarItem in CrumbBar control by name
    Here is code that shows how to enumerate all items in CrumbBar control and find one by name. You can modify it to search by any other criteria.VB:This is code that is part of the setup and used to test find routine: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventA ...
  12. questionHow to right-align the cell text in AdvTree control
    If you want to right-align the text in AdvTree cell control you need to create new style and assign it to all cells that you want to have text right-aligned.Note that using styles you can change many other appearance properties of the cell, like text color, background color etc.Follow these step ...
  13. questionHow To Save Default Docking Layout
    Following code can be used in Form Load event to save default layout to a string:private void SaveDefaultLayout() { ArrayList customBars = new ArrayList(); foreach (Bar bar in dotNetBarManager1.Bars) { if (!bar.CustomBar) { bar.CustomBar = true; customBars.Add(bar); } } m_DefaultLayou ...
  14. questionHow to scroll SideBar using MouseWheel
    Code below shows an example of how to scroll current SideBarPanel using MouseWheel:private void frm_Load(object sender, EventArgs e) { sideBar1.MouseMove += new MouseEventHandler(sideBar1_MouseMove); sideBar1.MouseWheel += new MouseEventHandler(sideBar1_MouseWheel); } void sideBar1_MouseMove(obj ...
  15. questionHow to select all days in week when week number is clicked in MonthCalendarAdv control
    To select all week days when week number in MonthCalendarAdv is clicked handle ItemClick event and use following code: private void monthCalendarAdv1_ItemClick(object sender, EventArgs e) { DayLabel label = sender as DayLabel; // If day label is clicked and label is used to display week of y ...
  16. questionHow to set custom shape for ButtonX or ButtonItem
    ButtonX and ButtonItem controls support custom shapes out of box. To create custom shape you need to create Class which inherits from ShapeDescriptor and provide implementation. Here is sample code which creates triangle button shape:C#: public class TriangleButtonShape : DevComponents.DotNe ...
  17. questionHow to start using Windows Forms CrumbBar control
    1. Adding CrumbBar control to a form Double-click CrumbBar control in Visual Studio.NET toolbox to add it to the form 2. Opening design-time editor Select CrumbBar control and expand the task popup by clicking the expand button as marked above. Then click Edit Items... 3. CrumbBa ...
  18. questionHow To Use StyleManager in DotNetBar for Windows Forms
    DotNetBar 8.2 includes new component StyleManager to provide you with single place to manage styles and color tinting for all controls that have style set to style manager controlled.To use StyleManager as central place for style changes you must set Style=StyleManagerControlled property on all ...
  19. questionWinForms Schedule Control Quick Start Guide
    DevComponents Windows Forms Schedule Quick Start Guide Windows Forms Schedule control provides Outlook style scheduling functionality for your Windows Forms applications. The Schedule control is built on a Model/View paradigm. The Model represents the actual schedule, i.e. appointments and recu ...