Windows Develop Bookmark and Share   
 index > Windows Forms General > Windows Form vs Dialog Box
 

Windows Form vs Dialog Box

Hi everyone,

I was working on a tutorial yesterday and an interesting question came up. I was working on a dll project and needed to add a box to get some info from the user. I used the Add Item option in the Solution Explorer (VB.NET 2005 Express) and I was offered a choice between a Windows Form or a Dialog Box.

My question is this: what is the difference between both of these choices? The one difference I noticed right away is that the dialog box includes OK and Cancel buttons right from the start. If they are the same thing, why does VB Express offer a template for each?

Hope to hear something soon. Happy New Year!

Sean Campbell

Sean K. Campbell  Friday, December 30, 2005 8:41 PM
Dialog Box template it's just a Windows Form with OK/Cancel buttons. It's so common that you need a form with OK and Cancel buttons so they added this template as a commodity.
Mike Danes  Saturday, December 31, 2005 10:13 AM
Dialog Box template it's just a Windows Form with OK/Cancel buttons. It's so common that you need a form with OK and Cancel buttons so they added this template as a commodity.
Mike Danes  Saturday, December 31, 2005 10:13 AM

You can use google to search for other answers

Custom Search

More Threads

• Listbox selected items
• Force winform to redraw/reload?
• Generic User Controls?
• can i embed html text formatting in a textbox?
• Cookies are not retained in a new I.E. Browser window if created from a winform using AxSHDocVw.AxWebBrowser or WebBrowser.
• global error handling
• AppUpdater and Non-Admin Users...
• How to get VPN login name from a windows forms application
• How to access "items" property of combobox when iterating with "foreach Control"
• combo box question