Differences between Windows Form design in VC++ and C#

J

Jiang Yue Brandon

I am very confused about the different ways of VC++ and
C# for doing windows form/dialog design in Visual
Studio.NET.

In C#, after you drag & drop the components to the form,
the underlying codes will be automatically modified to
add corresponding objects.

However, in VC++, in order to design any forms/dialogs,
resources must to be created first, then we need manually
add the classes for those forms/dialogs and add variables
for the different components in the forms/dialogs.

So my question is that, are the underlying mechanisms for
design windows forms in VC++ and C# the same? Is there
also an resource concept for Visual C#? Is the Visual C#
superior to VC++ because C# can add classes and variables
automatically? If not, what the advantage of design
window forms/dialogs in VC++ way?

Thanks
 
J

Joe Thompson

Hi,

If you are using the latest version of VS.net (2003) you can create VC++
projects that use WinForms just like VB and C#. That is, you just drag and
drop the components you want onto a form, set their properties and add event
handlers. The advantage of using the old style (resource) for dialogs, etc.
is mostly backwards compatibility (if the project is already written that
way) and maybe a little speed improvement but don't quote me on that. But
as far as building the GUI, the new way is far faster.

Hope this helps,
Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top