Associate
Hi,
I have been using Borland (CodeGear)C++ IDE's for several years and currently have v2007 which I am fairly familiar with.
I have started to look at moving to Visual Studio and have what seems like a stupid question that I don't see an obvious answer.
If I create a new project and select a "Windows Forms Application" then the VS IDE creates a single empty form like you would expect.
I now add a button to the form and double click the button. The IDE then creates the framework for the click event. But, it puts it in the header file of the form.
Borland puts the framework in the .cpp file associated with the form which makes much more sense. It always put prototypes and event handlers where I expected them and never had to think twice about it.
So, my dummy question, is why by default does VS create all my events in the Form1.h file? And how do i stop that?
I would never think of putting executeable code in a header file but it seems the default way that VS 2000 C++ does it.
I tried looking for a really basic tutorial/example but never actually found anything suitable.
Thanks
I have been using Borland (CodeGear)C++ IDE's for several years and currently have v2007 which I am fairly familiar with.
I have started to look at moving to Visual Studio and have what seems like a stupid question that I don't see an obvious answer.
If I create a new project and select a "Windows Forms Application" then the VS IDE creates a single empty form like you would expect.
I now add a button to the form and double click the button. The IDE then creates the framework for the click event. But, it puts it in the header file of the form.
Borland puts the framework in the .cpp file associated with the form which makes much more sense. It always put prototypes and event handlers where I expected them and never had to think twice about it.
So, my dummy question, is why by default does VS create all my events in the Form1.h file? And how do i stop that?
I would never think of putting executeable code in a header file but it seems the default way that VS 2000 C++ does it.
I tried looking for a really basic tutorial/example but never actually found anything suitable.
Thanks