'Set the Parent Form of the Child window. Protected Sub MDIChildNew_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click
Be aware that, depending on the specifics of your application architecture, your New menu item may not be MenuItem2. In the following example, the event handler handles the Click event for MenuItem2. Select Open to add the form to the project. In the Add New Item dialog box, select Windows Form (in Visual Basic or in Visual C#) or Windows Forms Application (.NET) (in Visual C++) from the Templates pane. In Solution Explorer, right-click the project, and then select Add > New Item. Set the Text property for these items to New and Window. Set its Text property to File.Ĭlick the ellipsis (…) next to the Items property, and click Add to add two child tool strip menu items.
This designates the form as an MDI container for child windows.įrom the Toolbox, drag a MenuStrip control to the form. Assuming you all are beginners to visual basic, each and every lesson in this tutorial is explained step by step with examples and source code. This Visual Basic 6 (VB6) tutorial helps you to learn Visual Basic 6.0 (VB6) programming in your own.
#VISUAL BASIC 6.0 TUTORIAL IN HINDI FREE#
In the Properties window for the form, set its IsMdiContainer property to true and its WindowsState property to Maximized. Welcome to Free Visual Basic 6 (VB6) tutorial for beginners. Create MDI child formsĬreate a new Windows Forms application project in Visual Studio. By substituting the control with other controls, such as the DataGridView control, or a mixture of controls, you can create MDI child windows (and, by extension, MDI applications) with diverse possibilities. In the following procedure, you'll use Visual Studio to create an MDI child form that displays a RichTextBox control, similar to most word-processing applications. MDI child forms are an essential element of Multiple-Document Interface (MDI) applications, as these forms are the center of user interaction.