How to add common dialog control in vb 2010 - vb.net

In a school tutorial document I need to add a common control dialog to my form through project menu then components, but I cannot find the components button. I am using visual basic 2010.

VB.NET doesn't use the Common Control Dialog. What you are looking for is the SaveFileDialog and OpenFileDialog.
Common Controls are what you would use in a COM-based language, like VB6.

Instead of commondialog control, VS 2010 had offered five individual controls located under Toolbox -> dialogs. these are ColorDialog, FolderBrowserDialog, FontDialog, OpenFileDialog, SaveFileDialog. you can use one of these as per your requirement.

Related

How to create vb app as a Microsoft Word right-click menu option

I am trying to make a Windows Form application using Visual Studio in which I right click on a word document, select an item 'pages count' from the right-click menu, and a form will pop up with the number of pages in that document.
Am I right to be using Visual Studio for this?
How do I call "thisDocument" or "activeDocument", and make the document the one that is selected in the menu, if the document is not actually open?
I saw that for application.ThisWorkbook, if it the application is an add-in, it will bring up the application calling it, but I am not quite sure if an add-in is part of Visual Studio?
https://msdn.microsoft.com/en-us/library/office/ff193227.aspx
I hope this question isn't too basic -- all these things sound so similar to me, I'm having trouble sorting it all out with googling and reading questions.
Thanks for any clarification!

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

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

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.

How can I add a control like a DateTimePicker to my office ribbon I'm creating using visual basic?

I'm creating an Microsoft Office 2010 add-in ribbon with a bunch of controls on it. I am able to add things like buttons, TextBoxes, and Labels. :-) I am not, however, able to add the one control I need, which is a DateTimePicker. :-( Is there some workaround or hack to getting other controls like a DateTimePicker on my ribbon?
If it helps any, I'm using Visual Basic 2010.
I wound up just making one of my buttons open up a separate form which then was able to have the DateTimePicker control on it. :-)

Windows Forms' Appearance

Just started using Visual Studio 2008 and was hoping to convert my VBA UserForms to VB.NET with the intent of upgrading my antiquated UserForm controls to newer Windows form controls that match the operating system.
The Windows forms I create in Visual Studio look great, but when I load them in PowerPoint or Excel, the form controls look just as ugly as they did before (e.g. plain, rectangular buttons).
Is there a way to employ modern controls in my Windows forms using VB.NET in Visual Studio?
You either use one of the many available custom drawn buttons. Or it could be that you have to turn on visual style to make them render better http://dotnet.mvps.org/dotnet/faqs/?id=xpvisualstyles&lang=en