Creating a GUI in C#

for a Budget control program

Page 1 of 1

5 Replies - 44203 Views - Last Post: 20 January 2006 - 03:45 PM Rate Topic: -----

#1 Vegter  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 77
  • Joined: 21-September 05

Creating a GUI in C#

Posted 20 January 2006 - 08:23 AM

Hi

I'm currently writing a program to manage your incomes and expenses. It will be a fairly simple program (my first C# project) that simply uses a GUI and interfaces with a MS Access DB.

So the first order of business is the GUI. I would like to display a lot of labels with text boxes next to them (i.e. A label for "Food" and a text box that can be edited with say $100 in it). Of course you can have as many of these items as you like, so I would need to put them in some sort of scrollable pane.

I have absolutely no idea how to write a GUI in C#. I was pretty adept at doing so in Java, but then later on I simply starting using NetBeans. Can anyone give me a few pointers and maybe point me to a few websites with good solid information on it?

Any help will be greatly appreciated.

Thanks
Vegter

This post has been edited by Vegter: 20 January 2006 - 08:25 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Creating a GUI in C#

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: Creating a GUI in C#

Posted 20 January 2006 - 08:25 AM

Are you using an IDE? Such as Visual Studio? If not, you can do it other wise...here is a chapter of one of the best C# books around.
Was This Post Helpful? 0
  • +
  • -

#3 sontek  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 8
  • View blog
  • Posts: 283
  • Joined: 13-September 01

Re: Creating a GUI in C#

Posted 20 January 2006 - 11:36 AM

www.codeproject.com
www.windowsforms.net


Those 2 sites will help a lot! But GUI design is rather easy but when you start doing it and run into problems post it up and i'll be glad to give ya some tips!
Was This Post Helpful? 0
  • +
  • -

#4 Vegter  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 77
  • Joined: 21-September 05

Re: Creating a GUI in C#

Posted 20 January 2006 - 01:52 PM

Thx for the replies.

Yes, I am using Microsoft Visual Studio .NET 2003. Does that have an easy way to create a GUI? I'm very new to Visual Studio so I am having problems using the whole IDE...

Anyways, I'll try out those links and post here if I have any problems. Thanks again.
Was This Post Helpful? 0
  • +
  • -

#5 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: Creating a GUI in C#

Posted 20 January 2006 - 02:03 PM

Using Visual Studio, you can actually just create and draw the forms, and insert controls where you want them in a Visual form. Check out a new Windows application from the C# module. When giving the paramters, ask for an Empty windows application, and it will give you a default form.
Was This Post Helpful? 0
  • +
  • -

#7 sontek  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 8
  • View blog
  • Posts: 283
  • Joined: 13-September 01

Re: Creating a GUI in C#

Posted 20 January 2006 - 03:45 PM

If you hit "F4" or right click and click "Properties" on any control you've dropped onto your form from the toolbox and you'll get a window with all the properties that are available to be changed for that control.


If you look at the screenshot i've included:

First icon: Shows all the properties in categorized view
Second Icon: Alphabetizes the properties (My prefered way)
Third Icon: Shows the properties
4th Icon(Lightning): Shows the events you can subscribe to for the control.

Hope that gets you started on using them!

Attached image(s)

  • Attached Image

Was This Post Helpful? 1

Page 1 of 1