Starting out

  • Thread starter Thread starter Matthew Bates
  • Start date Start date
M

Matthew Bates

Hi,

I've just started using Windows Forms, .NET and C#. I have Visual
Studio 2005 Express Edition and I am looking to develop an application
to consume the Amazon SOAP web service (fetching product information
based on ISBN etc).

Visual Studio creates form and program C# files and everything appears
quite straightforward in creating a user interface (drag and drop etc).
However I'm unsure how to structure my application.

Does the form C# (Form.cs) represent a single form or should it
represent the entire UI? I would like to use multiple forms and pop-up
dialog boxes. Also, I guess the program C# (Program.cs) class should be
used to implement the business logic (e.g. web service access etc) and
reference the UI class (Form.cs)?

I would appreciate any feedback and advice on how to get started.

Thanks,
MB
 
The Form object is the container for application UI and also the basis for
dialog boxes. To show a dialog you would create a form and then call the
ShowDialog method. Dialogs are modal, which is to say that they prevent the
rest of the application getting user input until they are dismissed. They
can also return dialog result information int he DialogResult property.

If you're just starting out with web-services it might be a good idea to
write a few of your own and learn how to consume them through the server
explorer or manually added web-references.

I would highly recommend that you look through Amazon first to find books on
the subjects that interest you. The Sams 21 days series might be good for
you and they cover a multitude of topics.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Back
Top