C # winform and dotnetbar notes

Source: Internet
Author: User
1. datagridview format and display the data dates in the cell.
Go to the edit column and select the column to be set. In defaultcellstyle, choose "behavior"> "formart ".

2. The combination of tabstrip and MDI window adds tabpage to the MDI window.
Drag a tabstrip to the tabstrip window and select the name of the main window to add tabpage. Set the dock to top. However, when the child MDI window is opened for the first time, the above section does not come out. It is equivalent to a tabpage height that blocks the content of the MDI window, but it is better to open the MDI window for the second time. Solution: Set MDI support> mdiautohide to false.
 

3.Devcomponents. dotnetbar. tabcontrol dynamically Add a tab
Unlike the system tabpage, A tabpage is divided into devcomponents. dotnetbar. tabitem and devcomponents. dotnetbar. tabcontrolpanel. The simplest way to add a tab and a pannels is to use the tabcontrol. createtab method, and then return the tabitem object. In this way, you can use the tabitem. attachedcontrol method to access the pannel of the tab. On this pannel, you can use methods like tabitem. attachedcontrol. Controls. Add (mycontrol ).

Code: tabitem Tim = This. tabcontrol1.createtab ("one tab ");
Label lbltest = new label ();
Lbltest. Text = "wawawa ";
Tim. attachedcontrol. Controls. Add (lbltest );

The way to see this: http://www.devcomponents.com/kb/questions.php? Questionid = 45

 

 

 

 

Set the dotnetbar topic to black

 

1. inherit from public partial class form1: devcomponents. dotnetbar. office2007ribbonform

 

2. Reference

Using devcomponents. dotnetbar;
Using devcomponents. dotnetbar. Rendering;

 

3. Put a ribboncontrol in the page

 

4. Set the control

This. ribboncontrol1.office2007colortable = devcomponents. dotnetbar. Rendering. eoffice2007colorscheme. Black;

This sentence can be placed in desingner. CS initializecomponent.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.