1. Set the subform to attach the parent form
Set the IsMdiContainer property in the parent form to True first, or set the form as an MDI form. Both the subform and the parent form are inherited from Ribbonform.
The code is as follows:
| 123 |
1MainList main = new MainList(); 2 main.MdiParent = this;3main.Show(); |
2. Set the form load box.
1. Add Splashscreenmanager,
2. Set the form winformwait1 referenced by Splashscreenmanager's Active Splash form.
3. Writing code
| 12345678 |
public void sqltoresult (String sql)   {   Splashscreenmanager1.showwaitform ();   datatable dt = sqlitehelper.executetable (sql );   gridcontrol1.datasource = DT;   getmodifygridview (DT);   splashscreenmanager1.closewaitform ();   |
3. When the parent form's IsMdiContainer is set to true, the subform adapts to the size of the parent form
Set the WindowState of the subform to maximized.
4, ribbonform remove the upper left corner of the triangle
Properties, Showtoolbarcustomizeitem:false
Code:
Ribboncontrol.showtoolbarcustomizeitem = False
5. DevExpress Remove the DX icon or replace it with your own icon
Ribbonfrom-> Properties-applicationicon: Set to your own. or none.
Dev Common settings