Friday, August 20, 2010

little bit on Windows Forms

In .Net, the most important namespace is System.Windows.Forms. this namespace can be grouped into the following broad categories:

Core infrastructure:
represent the core operations of a Windows Forms program and activeX control.

Controls:Button, MenuStrip, ProgressBar,
DataGridView, etc. are related to control. its is used to create rich user interface.

Components:are not visible at runtime, but can be configured visually at design time, i.e timer, backgroundworker.

Common dialog boxes:provides a number of canned dialog boxes for common operations

To set the default input button of a form we need to use AcceptButton. Suppose, to set the button btnPaul as teh default buttorn for the form(Enter invokes this button directly), we need to write the following code

this.AcceptButton = btnPaul;