How can I have one menu in all forms in VB.net Win Forms? - vb.net

May I know if it is possible to have one header menu in all windows forms?
And if so, how can I make it?

Yes its possible to have one header menu in all windows forms using MDI.
MDI is a popular interface because it allows you to have multiple documents (or forms) open in one application. Examples of MDI applications include Microsoft Word, Microsoft Excel, Microsoft PowerPoint®, and even the Visual Studio integrated development environment itself. Each application consists of one (or more) parent windows, each containing an MDI client area—the area where the child forms (or documents) will be displayed. Code you write displays as many instances of each of the child forms that you want displayed, and each child form can only be displayed within the confines of the parent window—this means you can't drag the child forms outside the MDI container.
For more details refer this blog.
Hope this will help you.

Two ways:
Add a User Control to your solution, place a Menu in the User Control and build the application. Then in the ToolBox you have the menu control that you can use on all forms.
Make a WinForm with a Menu then Inherit all your other forms from the base one.

One solution for this is that you can create MDI application.

Related

MDI forms disable/enable specific controls

Have some new challenge regarding my application as user requested application to be able to disable some controls which are placed all over my windows forms mdi program for specific users. I've prepared already shared class which containing user name but i have no idea how to mark some controls to be disable as control are placed on all different parent forms, child forms and so on. How to achieve that?

Opening Child Form in External Application VB.NET

I know it's possible to open an external application in an MDI form: Opening external application inside VB.NET MDI Form
But what I'm looking for is to open a VB.NET MDI Form inside an external application, notepad.exe for example. What I want to happen is for the form to open inside the external program(notepad in this case)
The only way you can do what you are asking is if the program allows "Add-ins". Some programs, like those in MS Office, will allow you to create add-ins to their programs which can be called in many different ways. I don't think I has see one that allows what you would call MDI Children but that does not mean there isn't something out there.
To get started creating add-ins for office, create a new project in visual studio using one of the supplied templates:
New Project
Templates
Visual Basic
Office
Or for visual studio:
New Project
Templates
Other Project Types
Extensibility

Dialog box name

Does any one know the dialog below like a lower third?
It's called the Component Tray.
Non-visual components added to the Windows Forms Designer are placed on the Component Tray, located below the design surface, so that they are easily accessible without cluttering the visual design space.

I want to make a control builder program when I add my custom control to the winform - VB.NET, VS2008

I am currently building custom user controls and would like to have a program (that I write) that sets the properties for the control when it is dragged onto the form.
I've seen this working with some controls I've been using - an external program opens (or is available by right clicking on the control).
How is this accomplished?
Edit: An example of an application I use that does this is Farpoint Spread Designer; You can right click on the component and launch the designer application.

.net Components ... a Custom Form

I've been working in the creation of some custom components adding functionalites to the basic components such as a Datagridview.
Now I want to create a custom Form ... I mean, when I choose add new item in the VS menu, there is a Windows form and some varians of it like an about box, or Dialog, that are simple Forms with a custom controls already on it.
I want to have a login form for my set of applications, so this login is avialable for all the development team to use it in the different modules.
How can I develop the form and then add it to the "Add New Item" screen?
Thanks !!!
I suggest you read this (assuming you use MSVS 2010, if not, there should be articles for other versions):
http://msdn.microsoft.com/en-us/library/ms247069.aspx
I found the Way to create a Form with special usage, and then deploy it to other applications, like a login screen.
I used the Inherit Forms :) ... here is some documentations, it was really easy !!!
http://visualbasic.about.com/od/usingvbnet/a/inheripckr_2.htm
The form is later deploy using a dll just like a component.
Greetigns !!!