Search 12511 Results
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
When a message can be processed in different ways is called polymorphism.Polymorphism is of two types: · Overloading: In method overloading meth
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
/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-st
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
When we want to split class we use partial keyword. The main advantage of partial class is that more than one programmer can work on same class at a t
The .NET Framework is Microsoft's Managed Code programming model for building applications on Windows clients, servers, and mobile or embedded devices
You need to log in or register to vote on answers or questions.