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.