Page 1 of 1

C# Gui

Posted: Sun Nov 15, 2009 10:14 am
by Dreeb
Hey, guys.
I read the book "C# Primer plus" and I was wondering: how do i create applications that have buttons and stuff instead of just having a console thing? I know there is the buttons and stuff for the visual basic compiler, but is there a more professinal/hard-core way to do it? If so, are there any books on it? Because when i get good i want to make a level editor in c# like maurader.

Re: C# Gui

Posted: Sun Nov 15, 2009 1:33 pm
by dandymcgee
C# is similar to visual basic in that you create GUI applications using the drag & drop form designer in Microsoft's Visual C# IDE. As far as professional, Visual Basic is used for commercial development all the time. And if by "hardcore" you mean writing a GUI from scratch in C++ for instance, you'd probably want to look into Win32 programming for Windows or an equivalent alternative for any other operating system. Doing it that way is very tedious and is usually avoided if at all possible.

Re: C# Gui

Posted: Sun Nov 15, 2009 1:58 pm
by ismetteren
Im sure you can manually write the GUI code in C# as well, but there is no reason to do it.

Re: C# Gui

Posted: Sun Nov 15, 2009 4:28 pm
by Dreeb
That didn't answer my question.
Could I create a level editor with the visual basic forms?
Are there any books on it?
And marauder or gyro, if you are reading this, did you (guys) use the visual basic forms for your level editor?
Because i find that lacks win32 stuff and lots of people tend to go over to C# but then i get pushed back to C++.

Re: C# Gui

Posted: Sun Nov 15, 2009 4:56 pm
by andrew
To make a level editor you need:

1) access to the screen to display things
2) access to the disk to read and write files
3) some input from the keyboard or mouse

You could make a level editor all in text. It really doesn't matter too much what language you use to write your level editor.