In VB.NET is there a library of template dialogs I can use? It’s easy to create a custom dialog and inherit from that, but it seems like there would be some templates for that sort of thing.
I just need something simple like Save/Cancel, Yes/No, etc.
Edit: MessageBox is not quite enough, because I want to add drop-down menus, listboxes, grids, etc. If I had a dialog form where I could ask for some pre-defined buttons, each of which returned a modal result and closed the form, then I could add those controls and the buttons would already be there.
Why not create your own template? I’ve done that with several types of forms, not just dialogs. It is a great way to give yourself a jump-start.
Create your basic dialog, keeping it as generic as possible, then save it as a template.
Here is an article that will help you:
http://www.builderau.com.au/program/dotnet/soa/Save-time-with-Visual-Studio-2005-project-templates/0,339028399,339285540,00.htm
And:
http://msdn.microsoft.com/en-us/magazine/cc188697.aspx