Dev Common settings

Source: Internet
Author: User

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

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.