Premium Sponsor
Premium Sponsor


Advanced Search
Popular Articles
Popular Authors
SubMain - Developer Tools
 »  Home  »  Windows Development  »  Win Forms
Win Forms

» WinForms and WPF Interop - The Best of Both Worlds
by Ged Mead | Published 07/12/2008 |  | Rating:

  Whenever I see a question along the lines of "How can I include an image alongside each item in a list of items or use more than one font, or varying background colors?" I usually find myself muttering "WPF!".    This is a lot more sociable and positive than many of the things I mutter as I sit here each day, but finally I've realised that I need to do something about it.

  The result is this article, which works through the steps needed to harness the rich UI features of WPF to the more familiar paradigm of Windows Forms.

   The example used will show you how easy it can be to use a WPF control in a Windows Forms application and you can use this article as the stepping stone to creating your own.  The ListBox layout shown below will be created in WPF and ported over to be used in a Windows Forms application.  

WPF ListBox Control Example [read article...]
» Passing Values Between Forms
by Colin Mackay | Published 04/07/2007 |  | Rating:
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...]
» Application Settings in VB 2005
by Ged Mead | Published 11/09/2006 |  | Rating:

   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...]
» GDI+ Chart Success Part 6: Dynamic Line Chart
by Ged Mead | Published 08/22/2006 |  | Rating:

   The static line chart we created in Part 5 could be useful in lots of situations, but what happens when you want the chart to be continuously updated and the line redrawn in real time?

   This article looks at some ways of doing this.


[read article...]
» Book Review: Murach's C# 2005
by Scott Waletzko | Published 06/15/2006 |  | Rating:
A review of Murach's C# 2005 tutorial and reference book, written by Scott Waletzko (Skystone Software). [read article...]
» A Simple Photo Browser
by Chris Mills | Published 04/14/2006 |  | Rating:

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...]
» Adding Mnemonics (Short Cut Keys) to Your Controls
by Chris Manning | Published 03/11/2005 |  | Rating:

Part 1 of a Multi-Part Series on Control Design. This article shows you how to add Mnemonics (shortcut keys) to a Custom Control. This is question I see quite a bit. There isn’t much out there on it.Web searches don’t turn up very much, and the experts on this kind of stuff seem to hold it pretty close.My own quest to learn this was frustrating to say the least.I had to piece and part little clues together until I figured it out.

[read article...]
» The Hidden Power of the DataGrid Control - Part 1
by Dmytro Lapshyn | Published 01/13/2005 |  | Rating:

Data Grid is one of the most widely used types of controls among developers. Many kinds of data have a tabular nature and are best represented as a grid on a computer screen. The importance of providing users with really consistent and intuitive user interface can hardly be underestimated, and a well-tailored grid could play a primary role in many user interface concepts.

Windows Forms developers are lucky, as Microsoft has included a ready-made DataGrid control into both of the Windows Forms and Web Forms sub-systems of its .NET Framework. However, many developers who have used the Windows Forms DataGrid control might have had a feeling of it being somewhat rigid or even limited. In other words, while some customization can be achieved with several mouse clicks or keystrokes, and some others can be done with just a few lines of code, there are amendments which either require significant efforts or cannot be implemented at all. For example, there is no way to alter column header appearance other than taking over painting of the whole grid exterior.

Having bumped into several such limitations myself, and having spent long hours on searching the Internet and digging the MSDN Library, I have decided to share my DataGrid experience with the developer community in the hope of saving valuable time and even more valuable nerve cells for those who accept the DataGrid challenge in a quest for better user interface experience.

[read article...]
» Multiple Forms in VB.NET. Part 4 - Accessing Controls and Data on the StartUp Form
by Ged Mead | Published 01/25/2004 |  | Rating:
In previous articles, we looked at some common problems that seem to have caused problems for many newcomers to VB.NET. In this article we will take a look at a specific area which appears to contribute more than its fair share of grief to many people in the early days of the .NET learning curve. [read article...]
» Multiple Forms in VB.NET. Part 3 - Using Events in Multiple Forms
by Ged Mead | Published 09/03/2003 |  | Rating:
In the third article of the Multiple Forms series for .NET Newbies, Ged Mead walks you through a simple way of passing data between forms using an Event. In the example project, text typed into one form by a user is automatically and immediately also transferred to a second form. [read article...]
» Multiple Forms in VB.NET. Part 2 - Accessing Controls on Other Forms
by Ged Mead | Published 07/23/2003 |  | Rating:
In this article, we will take an initial look at some ways of accessing other form's controls and passing data between forms; and our approach to this is going to be pretty much the same as in the earlier article. [read article...]
» Multiple Forms in VB.NET. Part 1
by Ged Mead | Published 06/28/2003 |  | Rating:
This article by vbCity Leader XTab is particularly aimed at VB6 Upgraders, although complete beginners will find it useful. It explains a variety of ways in which you can open and deal with multiple forms in VB.NET; techniques which are quite different from the VB.OLD ways. A downloadable Solution is included, which shows working examples of each of the seven methods covered in the article, plus an additional two methods not documented in the article. [read article...]