C# Example Projects

Daniel A-S

Member
Hi.

I was just wondering if anyone around here who has any basic C# applications could share the project files with me?

I've been searching around the net, and couldn't find a single, simple, basic, application. Everything was either command line based or was telling me how to hack the pentagon. (I've just started C#, and I can't find any basic information anywhere)

All I want to know is simple syntax like, open and closing forms, if statements e.t.c.

Once I have it down on screen, then I can learn from it.

If anyone can help me out with some project files I'd really appreciate it, since as I'm not quite ready to hack the pentagon yet.

Cheers.
 
All simple C# and C++ apps will be command line based because to make them a normal Win32 app you will need to do lots more and this means it will no longer be simple. So if you want a simple C# program it will be in a command line because if normal apps can't be simple, they have to be complicated to work.
 
Let me ask you some questions.
Do you have a compiler ? ie Microsoft Visual Studio .NET
Do you have a source to learn from ? a book ? anything ?
Just FYI simple programs are everywhere in books.
If you want to learn C# or any programming language it's recommended to start with console applications so you don't have to get into the code of the forms and complicated stuff.

I can provide you with simple programs in C,C++ and C# if you need, But I highly recommend you read a book like "C# How to program for Deitel & Detiel"

contact me if you still want the programs and you have a compiler.
 
Ok well first of all, thanks for your responses.

I have all the software required to design, programme and compile C# programs. I'm using Microsoft Visual C# express edition.

What I basically need is an existing project, that contains a visual based application, like Microsoft word. (Only not as complex, but you can see what I mean)

I'm trying to imitate a database I made with Delphi sometime ago. Not because I want to build the same software again in C#, but because I want to be able to do what I can do in Delphi but in C#.

For instance, in Delphi to open up another form I would have written, 'form2.visible := true'.

Obviously, that won't work in C#. But I want to know the equivalent in C#.

So, I'm hoping that if someone can share a project with me, then I can look at the code, and see how the code in C# compares with Delphi.

I do have a book, 'Sams Teach yourself C#'. Although, I'm much more of a practical person. I find it very hard to learn from books. But easier to just suss things out.

So, if either one of you or someone else around here can send me a C# project so I can disect it, that would be brilliant.

Thanks again.


p.s. the reason why I'm switching over to C# is that Delphi is apparently more of a 'theory learing' language, but C# is a practical language that can be used to create professional software. And it is soon to replace visual basic and C++. (So I've heard)

I'm just thinking it's a waste of time carrying on with delphi. Since as C# is going to be what's used in the future by a huge amount of programmers.
 
Last edited:
Back
Top