Zheng Zuo 2006-2-27
(1)WindowsformUnderDataGridUsed inCheckboxColumn
InCsdnOf. NetWe often see people asking howDataGridJoinCheckboxColumn, it seems a bit complicated, actuallyVs. net2003This function is directly supported, but it is not discovered because of its "concealment. The procedure is as follows,
1. Create on the formDataGrid;
2. SelectDataGridIn the Properties window, clickTablestylesClick the button on the right of the property to add it in the pop-up window.Datagrditablestyle1,In the Properties window on the right, clickGradclumnstylesButton on the right of the property;
3The next step is to select the column type from the Add button drop-down menu in the pop-up window, which includesDatagridtextboxcolumnAndDatagridboolcolumn, Which is a text column by default. As shown in:
(2) Use a linked file
The function of linking files I think reflects reuse to some extent. For example, if multiple projects in the solution require some common files, you only need one object file. Adding and referencing the file for other projects is a good way to handle this problem.WindowsThe file shortcuts in the system are different, because the link file is compiled at the same time during project compilation. For example, the file isCodeFile.
The solution is as follows:
ToZhzuo. windowstestLink in ProjectZhzuo. leletestInApp. configFile. Select the project for which you want to add files, right-click the project and choose add existing item from the context menu.App. configDirectory, select this file and select Open Mode drop-down menu "link file", as shown below:
The operation is as follows:
TheApp. configThere is a shortcut arrow on the file icon. From this operation process, I thoughtAccessThis is also true for exclusive file opening.
(2) Add solution item data
You must have noticed that a special folder above is the solution item,Vs.net 2003The function is still a little weak. In2005.
In2005Added the folder function. The demo operation result is as follows:
I feel pretty good. Of course, I am more concerned with the location of the physical directory of the file,
As expected, folders in solution items do not actually exist, and these files are stored in the top-level directory of the solution. I tried renaming in the solution.Textfile2.txtThe file name isTextfile1.txtThe prompt "You cannot rename this document because the specified name already exists in the Project .", Open. SlnFile cannot find the relevant configuration information, open. SuoFile (hidden state.
the above are some of the experiences that I think and use during project development, and these features are often not noticed by some Chinese counterparts. If you often see some open source . net Project, similar to "solution item ", " link file " this type of function is commonly used.