Archive for the 'C#' Category

Reading Outlook Contacts in VB.NET

In this article I am trying to read the Outlook contact into a Combo Box and selecting a contact I am displaying his/ her details in below Label controls, so lets start building example.
Create a Windows Forms Application and Add Label and Combo Box and change the lable text to Select Contact.
To use [...]

Creating Dynamic Controls, and Preserve them for alternate Page Loads : ASP.NET

Normally when you create a control dynamically means at runtime, on the next page load you will loose that control, that control will be no longer exists, in this example I am try to explain how we can store that controls and get them back.
Create a Web Application and Add [...]

Saving, Retrieving Data in Smart Device Applications

In this example I am try to use SQL Compact Edition with Smart Device Applications.
We can store data and update the data in the device using SQL CE, so lets start building a example.
Create SmartDeviceProject and add 2 Forms to it, please design the Form1 & Form2 as displayed in the Screen shot.

Now lets create [...]

ListView Groups Example

ListView Groups Example:
This example reads a directory in windows and list out all files in groups, for example I have .doc and .xls etc files in my directory it creates 2 groups and add files according to groups
• Create a windows application
• Drag and drop ListView Control on to the form
• Drag and drop FolderBrowseDialog [...]

LINQ (Language Integrated Query)

LINQ (Language Integrated Query)
 
LINQ is great feature .NET is providing us, Using LINQ we can filter, sort and traverse collections object, actually you can make use of SQL (Structured Query Language) syntax in .NET to filter or sort or traverse collection object
 
Syntax:
 
IEnumerable<T> var = from obj in CollectionObj
                                                Where condition
                                                Order by obj
                                                Select [...]