Showing a Form in VS 2005 ?
-
Hi all, I have just acquired Visual Studio 2005 after moving over from Borland's C++ so this VS is a totally different environment from what I ma used to. I have created a new default MFC project using Project|New and when run obviously shows a form with controls. I would like to build on this base form to create the application I want but I am unsure how I go about displaying the default form. Can someone assist ? Pete :laugh:
-
Hi all, I have just acquired Visual Studio 2005 after moving over from Borland's C++ so this VS is a totally different environment from what I ma used to. I have created a new default MFC project using Project|New and when run obviously shows a form with controls. I would like to build on this base form to create the application I want but I am unsure how I go about displaying the default form. Can someone assist ? Pete :laugh:
Hi there! You should setup your project's settings so that a default form will show at startup. Select your project in the Solution Explorer and right click it. Select Properties on the popup menu. On the dialog than appears you must select Common Properties - General. On the right select the Startup Project. Here is also a sample for showing a form in code: **** Dim frmNewForm as New frmMyForm frmNewForm.Show **** I hope this is what you wanted to know. A programmer's life is good... or is it?? Ek dink nie so nie!