Archive | Win Forms RSS feed for this section

Introduction to C# Windows Form Component Layout

  This article introduces the new feature to layout components by Form's Dock and Anchor properties. If you have Java background, you must be familiar with layout manager like BorderLayout, GridBagLayout.In .NET all the applications work on Windows platforms, it is not a big issue to control the looks andfeels of GUI appearance. However, .NET [...]

Read more

TextBox Validation

Sometimes we can make the Textbox to AcceptOnly Number is any other value is entered then we may alert the user toenter the Numeric value.In C# what we have to do is write the Validateevent for each and every Textbox to be validated for Numbers. What the program does is it extends the C#'sTextbox class [...]

Read more

Exploring Winforms

  In this article, I've tried to explore somemore on WinForms (sorry, now I cannot call them WinForms anymore, Iguess) i.e., Windows Forms. Through this article I'll be taking youthrough the development of a simple Address Book application. Thisapplication was first developed in Beta 1.0 of the .NET framework, butbefore I could publish it, Beta [...]

Read more

Image Viewer Application – Winforms & C#

The following is an Image viewer application which canbe used to view image files of many formats. This exampleis provides a good introduction to Winforms. For compiling the code, use the following at the command line: csc /target:winexe /reference:System.dll/reference:System.Winforms.dll /reference:System.Drawing.dll/reference:Microsoft.Win32.Interop.dll PictureViewer.cs Source Code namespace myPictViewer{using System; using System.WinForms; using System.Drawing; public class PictViewForm : Form [...]

Read more