Code Snippets By: Shalvin

Windows Forms Input Validation with Validating Event and ErrorProvier Control in csharp

Checking whether value is entered into a control and preventing focus to go out if no value is entered. (View Snippet)

Writing to EventLog - Shalvin in csharp

EventViewer can be accessed by Selecting Event Viewer from Administrative Tools of Control Panel. This code snippet will add an Entry called Shalvin inside the Application section. (View Snippet)

FileUpload Control - Shalvin in aspnet

Uploading a file to a specific folder inside the virtual directory. (View Snippet)

aspnet_regsql - Shalvin aspnet in aspnet

aspnet_regsql is a tool user for installing membership, role and personalization tables to Sql Server. 1. Porting all tables to Sql Server 2. Porting only membership tables to Sql Server 3. Removing all membership and role tables 4. Removing Personalization tables. (View Snippet)

Working with ASP.Net 2.0 Membership Classes - Shalivn in aspnet

Web site Administration Tool is accessible only from the hosting server. Many times programmers won't have direct access to the the hosting server. So knowledge of ASP.Net Membership classes is an added advantage in creating an administrative module for the site. In this code snippet we will take... (View Snippet)

Using Code Access Security (CAS) to programatically refuse writing to a drive - Shalvin in csharp

CAS is the programatically means by which you secure the resouce of a system like file system, printer, registry, etc. in contrast to Role Base Security (RBS) (View Snippet)

Placing ComboxBox in DataGrid Cell -Visual Basic .Net Windows Forms in vbnet

Placing ComboxBox in DataGrid Cell is a task usually found in Invoicing application. Here is my version of same. (View Snippet)

C# Binary Serializing a Hybrid Dictionary in csharp

Serialization is the process of saving the state of an object into persistant medium. BinaryFormatter class is used for serializing and deserializing an object. HybridDictionary is optimized for key-based item retrieval from both small and large collections. (View Snippet)

Calling Win32 Api from C# in csharp

Though .Net classes are vast and versatile at time you will have to resort to Win32 API calls for accomplishing certain tasks. The following code shows a simple example of invoking a Win32 api. The best way to use Win32 apis is to encapsulate it in a class module. The namespace for COM... (View Snippet)

Using COM TreeView in C# Windows Forms in csharp

TreeView was one of my favourite control in COM. It is well suited for creating Chart of Accounts, Hierarchical data and the like. Though there is a tree view in .Net I find it less flexible in comparison to COM TreeView. The issue with using COM TreeView in C# is C# does not support optional... (View Snippet)
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:06 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC