The C# StreamReader and StreamWriter classes are useful to Read or write a text file. This example makes you understand these two classes along with the need to learn about OpenFileDialog and FolderBrowserDialog components.
In this article we will explore the PictureBox Control and ProgressBar Control with an example walk through. PictureBox control is mainly used for an image. Using this control, one can show standard images files in a C# windows form. The image type can be BMP, JPG, JIF, PNG, etc. A ProgressBar control shows the progress of long-running process.
LinkLabel Control is a kind of Label Control but it serves the view of a hyper-link. With this LinkLabel Control, you can mark portion the Label text or the full Label text with an underline. NumericUpDown Control is a mix of the text box and a pair of arrows pointing in opposite directions. Clicking the arrows of the NumericUpDown or holding down the mouse pointer on the arrow will increments or decrements the linked value. Most the application settings page uses this control. In the example, we will set up a windows Form and study these controls.
We know that C# supports foreach loop to iterate through a collection. When we use For-Each we no need to worry about bounds check. Here, we will create Books collection maintained by Book Store and provide Custom For-each support for the collection class. This will help the client code to use for-each loop on our collection class.
1. Introduction to ImageMap and HotSpots An ImageMap Control is an ASP.Net Web Control to mark specific portions of the Image. When a user clicks that specific portion, the ImageMap … Continue Reading ASP.Net ImageMap Control and Defining Image Hotspots
When we Place Asp.Net Calendar Control in a Web Form, the default look is not good. In this article, we will see how to customize ASP.Net Calendar Control and learn various properties and events.
The GridView Control is useful to display a table of data. SQLDataSource Control acts as a provider of that data. In this example we will use these control to retrieve data from the pubs database and display it in the Asp.Net Web Form.
1. Default Focus and Default Control – Introduction In this short article, we will learn the importance of setting the default control focus. Also, we will explore setting the default … Continue Reading Default Focus and Default Button in ASP.Net
Page Level Viewstate is useful for the server to recall the data exchange between the Browser Posts. In this example, we will create a simple form to collect user data and perform multiple data posts to the server. With this Form Field Data, we will study behavior of the server by turning the ViewState ON and OFF.
In this example, we will create Products and Organization class. We will also implement two interfaces on the Products class. Then using Java reflection we will get class modifiers and interfaces implemented by the Products Class.