My brother started the project a few days ago and used vb.net for the first time. I believe that many beginners will encounter these problems more or less. For the convenience of learning for beginners, I have summarized some small experiences for your reference and discussion.Article 1: How to control attributes of the parent form in the MDI child formFunction: for example, after opening a child form, you must set a menu item or button in the parent
VCType
: It features
MDI
ProgramWhen the mode dialog box is opened (for example, the file dialog box is opened), the file that is double-clicked in resource manager is not opened;
UltraeditType
: It features
MDI
When the program opens the mode dialog box, the file that is double-clicked in resource manager is still opened;
WordType
: It features
MDI
# Region adds background to the MDI parent form and solves the problem of blinking// 1. Add a background image named "backgroundimage" to properties/resources. resx.
// 2. Add backgroundnosplash () in the following locations ();
Public frmmain (){
Initializecomponent ();
// Add background to the MDI parent form and solve the problem of blinkingBackgroundnosplash ();
}
// The followingCo
What should I do if the panel on the MDI main form overwrites the child form? Development and Application of VCL Components
Http://www.delphi2007.net/DelphiVCL/html/delphi_20061222144928188.html
What should I do if the panel on the MDI main form overwrites the child form?
The main form uses the fsmdiform type, and the child form uses the fsmdichild type.
When a widget is placed in a panel, the child f
At the Computer College of Beijing University of Technology, Mr. Hu's "Deep MDI client window Programming" article discusses two ways to change the background of MDI client windows in the learning process, and describes one of the implementation methods, as well as sample code. I admire the author's diligent attitude towards learning, and at the same time suggest the solutions I have taken when I encounter
"When a child window is opened in the MDI mode, the display cannot be Maximized. It is clear that the WindowState of the child window is set to Maximized ?", I believe many people will encounter this problem. Set the following method to maximize the MDI subform:
1. Set IsMdiContainer of the parent form to True;2. Set the WindowState of the subform to Normal;3. In the parent form, use the following method t
Tangram commercial version Preview (2): tabbed MDI Interface
The purpose of the commercial version of Tangram is to allow users to directly obtain a highly customizable commercial software framework without writing program code using XML descriptions. In fact, some code in the software framework is basically unrelated to the functions of the software. Just like a high-end office building, it can only improve your identity. Therefore, A descriptive an
Use the MDI form in Delphi. The project file is as follows:
Application. initialize;Application. createform (tmainform, mainform );Application. createform (taboutbox, aboutbox );Aboutbox. show;Aboutbox. Hide;Mainform. showmodal;Application. Run;
If the order of creation of aboutform and mainform is reversed, opening an mdichild form in the main form will result in the following error.
Can not create form, no
It is very easy to make the MDI form in VB. This is not easy in C #, but it is very convenient.
First, add a form in C #, name it mdimain, and set ismdicontainer to true, so that the MDI main form is created. Then add a new form named mdichild. Run nowProgramOnly the mdimain form is running. Because we didn't write anythingCodeOf course, the second form cannot appear. Add this code now.
Add a menu on the
In my "MDI form mutual call 1" article, I have explained how to make the MDI windows call each other.
However, the method used in the previous article uses the basic features of the "reference type". In the following method, I use the class definition to complete the above functions. In general, I do not approve of your use of the second method. The second method mentioned here is just to be discussed with
Reproduced to: http://blog.csdn.net/henreash/article/details/7618414
Qt provides the mdiarea control to easily implement standard MDI forms, but it is not convenient to use. it seems that it is better to switch the subform through the tab like the 360 browser. click the menu item or the button on the toolbar to create a new tab and generate a subform. click the cross sign on the tab to close the tab and release the child form object. to implement this
Etienne,
This has no effect since the scrollbars do not belong to the MDI frameWindow itself, they belong to the client window, which is not a DelphiForm. Which means one has to attack the problem on the API level.Since this question has come up so frequently in recent days I haveModified a sample based on the stock MDI project to include thisFeature. The salient parts are quoted below.
Open the main forms
C # learning notes-MDI form (Multi-Document Interface ),
1. Set the parent form:
To set a form as the parent form, set the IsMdiContainer attribute of the form to True.
2. Set the subform:
Set the MdiParent attribute of a form to determine that the form is a subform of the form.
Syntax:
1: public Form MdiParent{get;set;}
3. Arrange the MDI subforms:
Syntax:
1: public void LayoutMdi(MdiLayout value)
Value:
/// ///function: Set the main form size to the display workspace size in the MDI program/// /// main form Instance Public Static voidsetmainformsize (Form mainform) {mainform.location=NewPoint (0,0); Mainform.width=Screen.PrimaryScreen.WorkingArea.Width; Mainform.height=Screen.PrimaryScreen.WorkingArea.Height; }***************************************************** /// ///function: Child form size in
C # It is very easy to merge the child form menu in the MDI form menu. You only need to set the attribute AllowMerge = True to OK;But to merge the toolbar, it is a little complicated.
C # merge child forms in the MDI form Toolbar
First, the MDI form code:
// FrmMain is the MDI formPrivate void frmMain_Load (object send
I. Design of MDI Form1.MDI IntroductionMDI (Multiple document Interface) is the so-called multi-document interface , which corresponds to a single document interface (SDI), which is Microsoft Corporation from Microsoft Windows 2.0 when an Excel spreadsheet program is introduced, an Excel spreadsheet user sometimes needs to manipulate multiple tables at the same time, and
If multiple child forms are opened at the same time in an MDI form, if the order of the Child forms is not adjusted, the interface will be very messy and difficult to browse. How can this problem be solved? You can use the layoutmdi method with mdilayout enumeration to arrange child forms in the parent form of the Multi-document interface.Syntax:Public void layoutmdi (mdilayout value)Value: One of the mdilayout enumerated values, used to define the la
Brother some days ago to do projects, the first use of vb.net, met a lot of problems, I believe that many beginners will encounter these problems, in order to learn the convenience of beginners, younger brother summed up some small experience for everyone to refer to the discussion.
First: How to control the properties of a parent form in an MDI child form and so on
Features: For example, when you open a subform, you set a menu item or button in the p
How to solve the problem of merging the title bar of the child form and the menu bar of the main form by maximizing the child form of WinForm MDi, winformmdi
Write the following code in the ItemAdded event in the main form menu bar:
* MsMain is the Name attribute value in the menu bar of my main form.
// The private void msMain_ItemAdded (object sender, ToolStripItemEventArgs e) {if (e. item. text. length = 0) {e. item. visible = false;} else {e. item
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.