[RESOLVED] [.net 2.0] Visual C# Equivalent of CWnd
Preface -- I'm a C# novice so some of my terminology might be incorrect here.
Does C# have an equivalent of MFC's CWnd? Several of the functions I want to perform I need to do via calls the win api functions. It seems that some win api functions were built into CWnd. If C# has an equivalent I would prefer to use that.
Thanks. Any insight is appreciated.
Re: [.net 2.0] Visual C# Equivalent of CWnd
Quote:
Originally Posted by
Evets23
Preface -- I'm a C# novice so some of my terminology might be incorrect here.
Does C# have an equivalent of MFC's CWnd? Several of the functions I want to perform I need to do via calls the win api functions. It seems that some win api functions were built into CWnd. If C# has an equivalent I would prefer to use that.
Thanks. Any insight is appreciated.
C# and MFC are totally different things. There is no use of MFC in C# But the Form we are using in C# ( which have some similarity to old VB forms ) have a lot of Properties and methods so if you would define what you are wanting to do, maybe we can give you some hints how to design it in C#.
Best way to start with C# is
1) Forget all what you have done in C++ :D
2) Take an easy book about C# and go through all this chapters
this will bring you a totally new viewpoint of designing an
application, events, generics, interfaces, ...
The approach to do things is totally different.
Re: [.net 2.0] Visual C# Equivalent of CWnd
Although in C++ onw would use CWnd to create a Windows form, in C# the concept is little different. We have Forms in .NET world, so you would want to see how Windows Applications are built in C# on MSDN.
Re: [.net 2.0] Visual C# Equivalent of CWnd
The simplest way to see how this is done in C# is to use VS 2005 or 2008 and create a new WindowsFprms Application. The first Form is done for you and you can change it for example to an MDI Form by simple changing the properties.
Re: [.net 2.0] Visual C# Equivalent of CWnd
Hi Suja and Jonny,
Thanks for the insight. I think I'll buy a book.
Kind regards.