Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 135,937 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 2,678 people online right now. Registration is fast and FREE... Join Now!




WindowApplications in C#

 
Reply to this topicStart new topic

WindowApplications in C#, How?

TylerMoyer
13 Oct, 2007 - 05:31 PM
Post #1

New D.I.C Head
*

Joined: 9 Oct, 2007
Posts: 27


My Contributions
OK, I know a lot about Console applications, well I want to make a text based game as a WindowApplication.


Well, I don't know how to display things. I am using Visual C# 2005 Express Edition.

Can someone help me out? I used google but didn't find anything helpful for me.
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: WindowApplications In C#
13 Oct, 2007 - 08:33 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,173



Thanked: 208 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Well, go about creating a new project. When you do that, select the icon that reads "Windows application" and give the application a name. Click ok and it will create a basic windows application. So as soon as it is generated, click the run button to compile it and you will see the familiar windows application screen.

So once you got that go back to the project and start dragging a few toolbox items onto the form. Start by dragging a button onto your form from the toolbox. Your toolbox might be closed up on the side of the screen, in which case you will need to open it op by just mousing over it. Find the button menu item and drag it to the form.

Once you got the button on there, double click it will put you into the code view inside a button click event. Put in a line like...

CODE

MessageBox.Show("Hello World!");


Then click the run button again. Then clicking the button will show you the messagebox.

Your first windows application. You created a control and attached an event to it. There is the basics.

Hope this helps you out. Below is a great tutorial on making more windows applications in C#. Now it is for the 2003 version but you can do pretty much the same thing in 2005 express. The basics are the same and you should be able to do just about everything in the tutorial.

Developing windows applications - C#

Enjoy!
User is offlineProfile CardPM
+Quote Post

TylerMoyer
RE: WindowApplications In C#
14 Oct, 2007 - 08:05 AM
Post #3

New D.I.C Head
*

Joined: 9 Oct, 2007
Posts: 27


My Contributions
Thank you so much!
User is offlineProfile CardPM
+Quote Post

TylerMoyer
RE: WindowApplications In C#
17 Oct, 2007 - 10:54 AM
Post #4

New D.I.C Head
*

Joined: 9 Oct, 2007
Posts: 27


My Contributions
OK,

Well, I still can't find any tutorials good for what I need.

Can I make a GUI without using a third party program like WxWidgets?

I want to be able to put graphics into my GUI, not just a plain windows UI.

I need more advanced tutorials for this. Thanks!

This post has been edited by TylerMoyer: 17 Oct, 2007 - 10:55 AM
User is offlineProfile CardPM
+Quote Post

Jayman
RE: WindowApplications In C#
17 Oct, 2007 - 11:18 AM
Post #5

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 6,907



Thanked: 42 times
Dream Kudos: 500
Expert In: C#, VB.NET, Java

My Contributions
You can design any kind of GUI that you would like. You are not limited to the standard controls found in the toolbox.

It requires that you implement your own class that inherits from UserControl or Control. You can then use GDI+ to customize the look and feel of the control.

Or you could also just override the OnPaint method and implement your own design that way.

Here is a couple of tutorials to get you started:

Creating custom controls.
User-Drawn Controls.
User is offlineProfile CardPM
+Quote Post

TylerMoyer
RE: WindowApplications In C#
17 Oct, 2007 - 12:39 PM
Post #6

New D.I.C Head
*

Joined: 9 Oct, 2007
Posts: 27


My Contributions
Thank you so much for your kind help!
User is offlineProfile CardPM
+Quote Post

ganni
RE: WindowApplications In C#
20 Nov, 2007 - 12:15 AM
Post #7

New D.I.C Head
*

Joined: 21 Apr, 2007
Posts: 6


My Contributions
QUOTE

I am Genghis Khan! 'Genghis Khan' means, "Strong Ruler". Genghis Khan was a chinese warrior who led the Mongol Dynasty until his death in 1279.


Hey! Why are you saying that Genghis Khan is chinese warrior. You don't even know better about Genghis Khan, then you don't need to talk about him. Please Remove or edit the signature. Genghis Khan is Mongolian Great King.
I'm Mongolian.

http://en.wikipedia.org/wiki/Genghis_Khan




Sorry for the post like this.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 08:35AM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month