Show

Articles of level

To load a Picture into the PictureBox control drag a PictureBox control and a Command Button from the Toolbox. When you click the Command Button, the picture you specified will be loaded into the Picturebox. The following code is a demonstration: 

We can write the client side validation control in jquery-

In this article I will show you how to make Login Form in Windows Application using C# where I will enter a dummy data in the form of username and password and will check that the entered data by the user is correct or not. if it is correct, the user gets into his account.

Indexer: Indexer can be termed as location indicators and they are used to access class objects in the same way as array elements are accessed.

Inheritance: The most important reason to use OOP is to make reusability of Code and eliminate the redundant code. That can be done by one of the OOP concept i.e inheritance. Inheritance supports reusability by defining a class and then use that class again and again.Inheritance supports a class hierarchy where Base class and Derived class exist, e.g. Animals is the [Base Class] and Dog is the [Derived Class].Derived Class inherits the base class. Also Derived Class can inherits all the member of Base Class.

In C#, properties are a member that provides a flexible mechanism to read, write, or compute the value of a private field. C# is one of the first languages that offers direct support of Properties. Properties looks similar to a public variable on which we can do get() or set() operations.

An array of arrays is known as jagged array.It is single dimensional and the arrays which it contains as its elements need not be of same size

ArrayList is a way to store any value or reference without modification to their types. It stores anything in the form of object,hence we don’t have to define the type of the elements

Dictionary is very important as far as speed and reliability is concerned.It stores the key-value collection.Keys should be kept unique for proper code.A Dictionary class is a data structure that represents a collection of keys and values pair of data. The key is identical in a key-value pair and it can have at most one value in the dictionary, but a value can be associated with many different keys.

Hashtable in C# represents a collection of key/value pairs which maps keys to value. Any non-null object can be used as a key but a value can. We can retrieve items from hashTable to provide the key . Both keys and values are Objects.Hash Table is just like a Dictionary.But performance wise,Dictionary is preferred more over Hash Table due to faster lookups.
The commonly used functions in Hash Table are :

  • Add: To add a pair of value in HashTable
  • ContainsKey: Check if a specified key exist or not
  • ContainsValue: Check the specified Value exist in HashTable
  • Remove: Remove the specified Key and corresponding Value

PreviousDisplaying 3 of 6Next
1 2 3 4 5 6
Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*