| .NET Newbie |
|
|
»
Windows Presentation Foundation: FlowDocuments (Part 1)
|
When WPF first came on the scene, one of the features that got a lot of air time was the display of documents. Leading edge projects like the NY Times Reader and the British Library manuscript display raised a lot of awareness of the possibilities. Strangely though, since VS 2008 shipped there doesn't seem to have been a lot of mention of this part of the package. So I thought I'd take a look at how easy (or not) document handling really is in WPF.
[read article...]
|
»
Passing Values Between Forms
|
I wrote this article in response to an almost overwhelming number of requests on forums on how to pass a variable from a one Windows Form to another. In fact, saying that it is going between one form and another is somewhat of a misnomer because this will work for any type of object not just Forms. This seems to be one area where beginners in VB.NET often get stuck. So, rather than having to repeat myself often in forums I wrote this article so that I could point people at it so that they will have the benefit of a full explanation as well as the answer to their problem. The code examples that come with this article is available for VB.NET. If you develop software in any of the other languages available for .NET then you can probably follow on too. The techniques are the same for all .NET languages the only difference should be in the language syntax.
[read article...]
|
»
OOP: Create, Collect, Sort, Save and Retrieve Objects
|
Several recent posts in the VBCity Forums made me realise that it might be useful to have an article that dealt with some of the basic requirements when it comes to creating your own classes and objects.
Many beginners start by creating a simple game and this is often a good learning project so we will use this approach in this article. Two key elements of a game application like this will probably be a way of creating Players and keeping a record of their High Scores . Users can log in to the game using their Player name and see their last score.
As they play again in this session they might increase this score or start over from zero. They might even want to see how their score rates against other Players. So we would need a way of creating a collection of Players and their Scores. And as we usually want to see the Scores listed from highest to lowest, there will have to be a way to sort those Score values that are stored in the collection.
Finally, it wouldn't be much use if the Scores were all lost each time the application ends, so we should also build in a way of saving the latest data to the hard drive and of course a means of retrieving them when you need them.
This article for beginners uses VB 2005 and shows you how to meet all these requirements.
[read article...]
|
»
Application Settings in VB 2005
|
There may be times when you would like to give your users the opportunity to save various settings (and they would probably appreciate having the facility too!). In the past, the SaveSettings and GetSettings methods were the usual avenue, but in VB 2005 you have some more flexible choices at your disposal.
Ged Mead looks at these new tools.
[read article...]
|
»
How To Validate ASP.NET Pages
|
Validation is pretty much necessary in almost all kind of applications. The simple fact is that humans are prone to make mistakes while entering data. In order to build a fully fledged application which is free from errors and not susceptable to crashes we should pay attention to input validation. Input validation is the process of making sure that the user provides the accurate type of data because “prevention is better than cure”. If an application requires certain specific data and we feed another type of data then definitely the result is an error. So care must be taken to enter data in a particular format. This can be better explained with the help of an example.
[read article...]
|
»
Book Review: Murach's Visual Basic 2005
|
Murach have been producing technical books for more than 20 years and have developed their own special style and a quite substantial, loyal readership . Their latest offering is "Murach's Visual Basic 2005".
Ged Mead offers an overview of this book. 
[read article...]
|
»
Practical XML Usage
|
Practical XML Usage
This article is a small step-by-step guide for .NET/XML beginners. The sample application was written in Visual Basic .NET, but main aspects in the code are shown also in C#. This article can be considered as a reference of XML, schemas or XML transformation. The code was written in Visual Studio 2005 for .NET Framework 2.0.
[read article...]
|
»
ADO.NET for Beginners Part Two
|
Part two of this series will look at managing your data by showing you how to update, add and delete records from the Contacts table. In this section we will look at the OleDbCommand object which we will utilise quite a bit when it comes to running "Action" queries against the database.
We will also look at how we can filter the data using the DataView object.
[read article...]
|
»
ADO.NET for Beginners Part One
|
This series of articles aims to introduce you to the use of ADO.NET. However, unlike other tutorials, I will concentrate on showing you how to communicate with your database programmatically (i.e. no wizards). This article will make use of an Address Book program to take you through the various aspects of database programming and who knows, by the end of it, you may decide to make use of the program to store all of those hundreds of contacts that you have.
Part one will look at the basic outline of the user interface and will include the necessary code to connect to the database and retrieve all of your contacts for displaying on the form.
Part two will go further and show you how to filter the data and modify the data including saving new contact information and deleting existing contact information.
Part one and two will make use of an Access database. However, Part three will use an SQL Server database and show you how to use Stored Procedures to access and modify the data. The user interface and functionality will remain the same, only the database used will change.
[read article...]
|
»
Chart Success Part 5 - Line Graph
|
In previous articles, we have looked ways of creating various Pie Charts and Bar Charts. In this Part of the series, we are going to take a first look at another common type of chart, the Line Graph.

As is often the case in VB.NET, there are several ways of achieving the end result. Although I haven't chosen the easiest route this time, the journey takes us into some interesting GDI+ territory.
[read article...]
|
»
Book Review: Visual Web Developer 2005 Express Edition For Dummies
|
"Visual Web Developer 2005 Expression Edition For Dummies" by Alan Simpson is a recent publication in this ever-popular, long running series of books.
Although not the usual 600+ page coder's book, don't be too quick to write this one off as of no use, advises DevCity reviewer Ged Mead. It may be more useful than you think.

[read article...]
|
»
Book Review- "Visual Basic 2005 Express: Now Playing"
|
If you are a complete newcomer to programming, you should seriously consider getting a copy of this book. It never loses sight of the fact that beginners don’t always “get it” first time, every time and it uses non-technical explanations and good learning reinforcement techniques to show you the skills in the easiest, least complicated way possible.
In the Preface to the book, author Wallace Wang sets out his philosophy:
“This book is dedicated to everyone who didn’t have the “right” education, test scores or job skills, but wound up succeeding at their chosen goal anyway. If you want to learn or do anything in your life, such as learn to program a computer, go ahead and do it and don’t let anyone ever tell you otherwise.”

[read article...]
|
»
A Simple Photo Browser
|
In this article my aim is to guide a relative Visual Basic .NET "newbie" through the process of creating a simple Photo Browser application. We will gradually build up the application, examining a number of the techniques available to you in Visual Basic .NET including creating a custom thumbnail control and creating instances of it at run-time.
This article is written using Visual Studio .NET 2003 and .NET framework Version 1.1.
[read article...]
|
»
Refactoring for Everyone Part 1
|
The word “refactoring” is quite well-known nowadays. However, I guess there are many developers who believe it is something they have never tried to do and if they have to, there’s yet another new concept to learn. Still, all of you are very likely to have refactored your code a number of times in your programmer’s career. Surprised? Read on.
[read article...]
|
»
Windows Services for VB.NET Developers
|
Learn about Windows Services, how they work, and what they are for. Build your first Windows Service and end up with a reusable template with which to create many more. Tips for use, development, and deployment of a Windows Service.
[read article...]
|
| |