home / developersection / tag
Here I am going to demonstrate how to use SaveFileDialog in C#.Net.ExampleCreating stream for writing file Stream str; //creating object of Sa
We use Radio Button, when we want user to select only one options from given list of options. Here below I am using three radio buttons Red, Blue, Green, so when user will select Red radio button then the background color of form will be changed.
In method overloading method performs the different task at the different input parameters with same method name and in same class. ExampleTo expl
Inheritance allows us to reuseexisting code which saves time. It is basic concept of Object Oriented Programming (OOPS). Here, I am going to demon
Here I am going to show how to handle events. Timer tick event//adding tick event to timer tm.Tick += newEventHandler(tm_Tick);3 //code for ti
The operation of converting value type to reference type is called Boxing and the reverse operation is called Unboxing. Boxingint Val = 1; //Value
To move items from ListBox1 to ListBox2 and vice-versa, we would have to write code for four buttons.· Forward: to move selected item in list
Overriding a method is to change the behavior of the method for the derived class. Overriding is done using inheritance and virtual functions. Examp
We need parameters when we want to pass values to a method. There are four ways of passing values to a method.· Value· Ref (Referenc
Here I’m going to demonstrate the use of OpenFileDialog in C#. Example string strFileName=string.Empty; //creationg object
In C# multithreading is a way to implement multitasking.Exampleforint i = 1; i //creating thread for display() method Thread t = newThreadne
/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-st