Adjust the order of dock for multiple controls.

https://stackoverflow.com/questions/2607508/how-to-control-docking-order-in-winforms Go to View -> Other windows -> document outline. In that window drag the controls so the docking is as you like it to be.   The order is in reverse order. this.pnlNavigator.BackColor = System.Drawing.Color.White;1  this.pnlNavigator.Controls.Add(this.ttlMemberWebsiteSystemStep);  2  this.pnlNavigator.Controls.Add(this.ttlProgramSystemStep);3  this.pnlNavigator.Controls.Add(this.ttlGeneralStep); After adjustment, the order of adding background is reverse order. First display 3, then display 2, the...

Do not rely on any third party, simply use Vue to realize Tree tree control.

Received a demand these days, there is a need to do a property component, looking for a third party, but can not fully meet my needs, there is time, I do a small wheel it. Let’s look at the renderings first.The font icon used before the red dot is a right sign. Here, for convenience, the circle is used instead of the selected state, so it is not very good-looking. It needs to be modified by itself.) I directly use vue-cli to build the project, the code directory is as follows: The way of use is as follows: treeDataThe format is as follows: treeData: [ {open: false, name: '...

[Python] common sorting and search algorithm

Explain:   This article mainly uses Python to achieve common sorting and search algorithms:Bubble sort、Selection sorting、Insertion sort、Shell Sort、Fast sorting、Merging sortingas well asTwo point lookupWait.   The basic idea of the algorithm is briefly explained, so long as the basic idea is understood, it has nothing to do with language realization.   This article mainly refers to the internet article, for learning only.   Development environment: Python3.5      Bubble sort   Bubble Sort is a relatively common sorting algorithm. It iterates over the sequence...

Oracle basic cursor

Cursor   Cursors are used to process multiple rows of records retrieved from the database (using SELECT statements). Using cursors, programs can process and traverse the entire recordset returned once retrieved one by one.      To process the SQL statement, Oracle will allocate a region in memory, which is the context area. This section contains the number of processed rows, pointers to the analyzed statement, and the entire section is the data row set returned by the query statement. The cursor refers to the handle or pointer of the context area.   Two. Classification of cursors: ...

Datagrid. Itemsource = dt. DefaultView when wpf’s DataFGrid control binds to datatable

DataGridWhen Binding datatable, Datagrid.Itemsource=dt.DefaultView; DataGRID will find many lines. Solution 1 is as follows: The operation of CanUserAddRows attribute of Datagrid is OK. <DataGrid CanUserAddRows="False"../> takeCanUserAddRowsAssignmentFalse,Otherwise, an extra row will be generated automatically, even thoughItemSourceBoundListAcountIt’s 0. Set to false can avoid this problem.True,Cooperate with each otherDataGridCheckBoxColumnIt’s even more strange. If the checkbox on the last line is checked, then clicking on any of the other lines will generate an e...

DTD notes

DTD(Document Type Definition)Document type definition: DTDUsed to define the structure of an XML document, as a content model for a canonical XML document, DTD is formalized in various domainsA unified specification document. Use DTD in XML documents: Internal DOCTYPE statement: Wrap the DTD:&lt!! DOCTYPE root element in the XML document [element declaration]> <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE student [ <!ELEMENT student (name,hometown,age)> <!ELEMENT name (#PCDATA)> <!ELEMENT hometown (#PCDATA)> <!ELEMENT age (#PCDATA)> ]>...

Template mode and usage scenario of Java design pattern

Template mode, as the name implies, is through the way of template rubbing.   Defining templates is defining frameworks, structures, and prototypes. Define an agreement that we always abide by.   Defining the template, our remaining work is to enrich it, enrich it, and improve its shortcomings.   Definition templates are defined by abstract classes. Common structured logic needs to be completed in abstract classes. Only non-public partial logic is abstracted into abstract methods, leaving the subclasses to enrich the implementation.   So the shortcomings mentioned above are th...

Python student selection system

Campus management system (02)Demand:From the "student elective system" these words can be seen, our core function is actually only elective courses.Role:Student administratorFunction:Landing: administrators and students can login and automatically distinguish their identity after landing.chooseLesson: students are free to choose courses for themselves.Create Users: The course selection system is for our students, so all users should be done by the administratorbecomeLook at the course selection: each student can check his own course selection, and the administrator should be able to check it...