C# Corner

Resources  
  • Handling Mouse Events in C#Jan 25, 2001. This article explains how to handle mouse events in C# or VB. In C#, you write a delegate and then write an event handler.
  • Web ProxyServer in C# and VBFeb 06, 2001. Web Proxy Server is HTTP proxy server written in C#.It is Multithreaded so many clients can access the web through this WebProxy Server.
  • Accessing .NET Components from COM Clients and COM components from .NET ClientsMar 26, 2001. In this article I am going to explain how to access a .NET component from a COM client and accessing COM from .NET clients.
  • Introduction to JScript.NETApr 09, 2001. We have been hearing the announcement from Microsoft right from PDC2000 that they have realsed new languages viz. C#, VB.NET and JScript.NET.This artice of mine is going to introduce to u JScript.NET.
  • Protecting IL Code from unauthorised DisassemblingApr 09, 2001. Microsoft .NET proved a mechanism where the code written in VB.NET, C# or any CLS compliant languages to generate MSIL (Microsoft Intermediate Language)code which targets the CLR and executes. This is an excellent mechanism to abstract the high level code from the underlying hardware.
  • Line numbering utility in C# and JavaMay 08, 2001. After reading this article Java programmers should be able to decipher and de-jargonize the .NET architecture and relate it with the proposed ECMA standard.
  • C# or VB.NET - World War IIIAug 23, 2001. In this article I'm going to go under the hood and show you what really happens to the in C# and VB.NET.
  • ASP.NET and VB.NET Error HandlingAug 24, 2001. ASP.NET and VB.NET both are providing excellent error handling options when compared with ASP and VB6. In VB.NET we can make use of the structured way of error handling with the Try & Catch statement.
  • Passing Const Parameter to Functions in C#/C++/VB ComparedAug 30, 2001. Parameter passing to a function is extremely important in all programming languages. The desire to keep the passed parameter intact forced the compiler designers to add various keywords to the programming languages.
  • Web Browser in C# and VB.NETSep 11, 2001. This article explains how to add and web browser ActiveX to your project to developer your own customized web browser.
  • Sending Emails Through Outlook using C# and VB.NETNov 09, 2001. In this article I will give you an example of how to add an e-mail to your Microsoft Outlook outbox folder using C# and/or VB.net.
  • Introductions to C#Jan 02, 2002. C# is a new programming language developed by Microsoft. C# has power of C++ since it's derived from C and C++. It is simpler as VB.
  • .NET Framework and Web Services - Part 2Jan 29, 2002. Here we are going to learn how to create a WebService using VS.NET (using VB.NET.) and consume the Webservice from VB.NET Client. This Article is based on VS.NET RC1 Release.
  • .NET Framework and Web Services - Part 3Jan 31, 2002. Here I am going to explain Web methods and how to write Web methods in C# and VB.NET.
  • Working with Strings in VB.NETFeb 05, 2002. This article is VB.NET version of Working with Strings in .NET using C#.
  • xBase Engine for C# and VB.NETFeb 25, 2002. This library is written to handle DBF files from C# or VB.NET applications.
  • Calling Managed Code from Unmanaged CodeMar 11, 2002. One significant part of developers (including myself) are doing some kind of automation of Microsoft Office. So I will concentrate on opposing side of problem, how to use managed assembly from MS Office or VB script. In this article, I will discuss how to call managed code from unmanaged code.
  • C# to VB.NET Code Conversion Web ServiceMar 20, 2002. ConvertCSharp2VB is a Web Service that converts a C# code block into VB.Net. It exposes the Service Description and WSDL for the Web Service, so you can implement this functionality in your applications.
  • Validation Server Controls in Web FormsAug 05, 2002. When working with Web applications, developers need to write two separate codes using Java Script and VB Script to validate user inputs.In this article we are going to see, how we can reduce the programmers effort on coding, reducing the execution process time and simplify the code handling and less number of lines in the coding.
  • Calling Procedural COBOL from VB.NETAug 28, 2002. Many clients will have existing COBOL source code that they will want to use within the .NET Framework.
  • Calling Procedural COBOL from C#Sep 05, 2002. In a previous article we discussed how to call procedural based COBOL programs from VB.NET.
  • MacroMagic .NET for VB and C#Sep 09, 2002. MacroMagic.NET contains macros for VB and C# developers that can be added to Visual Studio .NET.
  • ATL COM Component, ASP.NET Web Service, and VB ClientOct 14, 2002. This article describes how to use ATL COM Components in ASP.Net web service and how to consume the ASP.Net Web Service from Visual Basic 6 Client. Ultimately the VB6 client calls the method of the COM component created in Visual C++ through the ASP.Net Web Service.
  • Auto Redraw in VB.NETDec 13, 2002. This is a problem if you wish to display text and graphics directly on a form.
  • Mask Edit ControlMar 05, 2003. This control is a attempt to emulate the Marked Edit control available in VB 6.0. MaskEdit control extends the TextBox System.Windows.Forms.TextBox control available in Microsoft .NET library.
  • Consuming a Web Service from NETCOBOLMay 08, 2003. This article shows you how to consume a Web service from NetCOBOL.
  • How to Detect a Dialup Connection?May 15, 2003. In the article we'll see how to check connectivity with internet using VB.NET.
  • Kovan's Tic-Tac-ToeJan 26, 2004. This is a tic-tac-toe game written in VB.NET and GDI+.
  • Dynamic SQL Server Database Creation in .NETMay 03, 2004. This article explains step by step dynamic creation of a SQL Server database, tables and stored procedure using Visual Studio codename Whidbey and VB.NET.
  • Using Web Browser Options in C# and VB.NETSep 21, 2004. I wrote this article in Sept 2001 in response to a question on discussion forums - how to create a Web Browser in C#? Recently, I got a question on how to use Browser's Save As option programmatically. This article explains how to use Web Browser ActiveX to your project to developer your own customized Web Browser and use its options.
  • Leveraging on XML feature of Microsoft Office Word 2003Nov 24, 2004. Word 2003 came up with a new feature of saving the conventional word document (.doc) files in the XML format. You can retrieve the information inside the Word 2003 documents by using the XPath queries and some logic.
  • Creating Custom Template for Web User Control in Visual Studio.NET 2003 Nov 25, 2005. This article shows you how to create custom template for web user control in visual studio 2003. The attached sample application will install the custom template for the name given for either VB or C# language and also uninstall the custom template.
  • Credit Card Fraud Prevention using .NET Framework in C# or VB.NETJan 16, 2006. How can you protect your business from credit card frauds? This article have few steps that can be taken to ensure that the transaction is being requested by the real cardholder.
  • AndAlso & OrElse Operators in C#Mar 13, 2006. Hi all, in a very short note I am trying to explain some interesting logical operators in C# and their VB.NET counter part. You must ware of the differences between these operators for a better usage of them.
  • Introduction to .Net Framework 2.0 Nullable TypesAug 23, 2006. Sometimes you work with a value type that does not have a defined value in certain circumstances. For example, a field in a database might need to distinguish between having been assigned a meaningful value and never having been assigned a value. Value types can be extended to take either their normal values or a null value. Such an extension is called a nullable type
  • Building control derived from Windows Forms control in Visual Studio 2005: Part IISep 14, 2006. Reusability and component oriented development is one of the features of .NET development. This approach may be applied to any project. In this article I share how you can build your own Windows control derived from an Windows Forms control in Visual Studio 2005. The examples are written using C#.
  • Word automation using C#May 11, 2007. Word Automation through C# is all about programmatically generating the Word Document using C# code. Almost all of the tasks which we perform on word 2003 can be done programmatically using C# or VB.
  • C# and VB code mixed together in ASP.NET 2.0Jun 14, 2007. C# and VB.NET code classes can be mixed together in a ASP.NET 2.0. Such mixing of classes in different languages is not allowed with default settings. This article explains how to achieve this.
  • Exception Handling in VB.NETJun 25, 2007. Exception handling is crucial since the robustness of software depends on how effectively a program deals with exceptions.
  • Message window using VB.NET in ajaxDec 03, 2007. This article is used to show message window in vb.net using ajax. The problem comes when you use vb.net using ajax enables website.
  • A Brief Introduction to Expressions in SQL Server 2005 Reporting ServicesJan 07, 2008. This article shows how you can use expressions in SSRS reports to generate dynamic content based on the data within your report queries.
  • Writing Your Own GPS Applications: Part IIAug 19, 2008. In part two of the series, the author of "GPS.NET" teaches developers how to write GPS applications suitable for the real world by mastering GPS precision concepts. Source code includes a working NMEA interpreter and sample high-precision application in C# and VB.NET.
  • Writing GIS and Mapping Software for .NETAug 20, 2008. In part three of the series, the authors of the "GIS.NET" mapping component for .NET explain how to write a geographic mapping engine which can display geographic coordinates. Source code is provided which can pan and zoom a sample geographic object (the state of Nebraska) in C# and VB.NET.
  • How to create a COM object using VS 2008 and consume it from VB 6.0 client application: Part IINov 04, 2008. In this article, we will see how to create a simple COM application in Visual Studio 2008 and how to consume it from a VB6 client application.
  • Error Result 1 Returned from 'C:\WINDOWS\system32\cmd.exe'Feb 04, 2009. I keep getting the following error message every time I try to run or build a C++ application in Visual Studio 2008.
  • Unit Testing with VS 2008 Team editionFeb 15, 2009. Unit tests allows the developers and testers to check the logical errors in the methods of classes in C# and VB.NET Projects.Unit test can be created once and can be run every time that source code changes.Unit test cases make sure that no bugs are introduced when you write the new code.
  • Integrating LDAP Active Directory into your .Net Web Portal (C# or VB.NET)Mar 04, 2009. This article will guide you through the best practices and method of using LDAP Active Directory as your user store for credentials and account information in your web applications or portal that you will develop in C# or VB.Net.
  • An Introduction to LINQJun 06, 2009. LINQ stands for Language INtegrated Query. Means query language integrated with Microsoft .NET supporting languages i.e. C#.NET, VB.NET, J#.NET etc. Need not to write\ use explicit Data Access Layer.
  • Read and write the text file using vb.netJul 31, 2009. The code snippet in this article shows how to read and write text files in VB.NET.
  • Coding style models in ASP.NETAug 24, 2009. In the article I will explain about different coding style in ASP.NET.
  • Sending Mails in .NET FrameworkOct 20, 2009. In this article learn how to send e-mail messages via SMTP in .NET Framework.
  • WPF PasswordBoxDec 18, 2009. This article demonstrates how to create and use a PasswordBox control in WPF using XAML, C# and Visual Basic .NET.
  • Converting C# to COBOLMar 12, 2010. . This article is intended to be used as a model for you to follow when you run into a C# example and need to convert it to COBOL.
  • Add Image on DatagridView Cell HeaderMay 26, 2010. This tip shows how to add images to a Windows Forms DataGridView control cell header using VB.NET.
  • How to create Line Graph and Bar graph on same parameters in asp.netJun 03, 2010. We can use GDI+ to draw chart components in C# or VB.NET language in memory and once the components are drawn in memory, we can save the drawing in an image on the Web server. Once the image is saved, we can display this image in an ASP.NET page using any Image tag or image control.
  • List(T).ForEach or foreach, it doesn't matter...or does it?Jun 14, 2010. When you use a List, it doesn't matter if you use the ForEach method of the generic list or use a normal foreach or does it? Sometimes it makes a difference!
  • Creating a Custom DateTextbox User Control: Part IAug 08, 2010. In this article you will learn how to create a custom date textbox user control.
  • Consuming URL Shortening Services - is.gdAug 26, 2010. Another article of our series that talks about accessing URL shortening services programmatically.This article is talking about is.gd shortening service, how you can use it, and how to access it via your C#/VB.NET application.
  • Consuming URL Shortening Services - Tweetburner (twurl)Aug 27, 2010. Just another article of the URL shortening services series.Today, we are going to talk about another hot and easy-to-use service, it's Tweetburner. If you haven't used it before, then it's the time to.We’re going to discuss how to use Tweetburner first. After that, we’ll inspect its API and learn how to use it in your .NET application.
  • Consuming URL Shortening Services - CligsAug 30, 2010. This is another article that talks about URL shortening services. Today we are going to talk about Cligs, one of the popular shortening services on the web.
  • Consuming URL Shortening Services - X.coSep 23, 2010. This is another article of our URL shortening services series. This article is talking about X.co shortening service provided by Go Daddy. If you don’t know how to access this service from your .NET application, then it’s the time to.
  • Consuming URL Shortening Services – 1click.atDec 26, 2010. This article is talking about the 1click.at shortening service; how you can use it and how to access it via your C#/VB.NET application.
  • .NET Interoperability at a Glance 2 – Managed Code InteroperationDec 28, 2010. In the previous article, you learned what interoperability is and how it relates to the .NET Framework. In this article, we’re going to talk about the first form of interoperability, the Managed Code Interop. In the next article, we’ll talk about other forms.
  • .NET Interoperability at a Glance 3 - Unmanaged Code InteroperationJan 05, 2011. This is the last article in this series, it talks about unmanaged code interoperation; that’s, interop between .NET code and other code from other technologies (like Windows API, native libraries, COM, ActiveX, etc.)Be prepared!
  • Building Applications that Can TalkJan 21, 2011. In this article we are going to explore the Speech API library that’s part of the TTS SDK that helps you reading text and speaking it. We’re going to see how to do it programmatically using C# and VB.NET and how to make use of LINQ to make it more interesting. The last part of this article talks about…… won’t tell you more, let’s see!
  • Configuring ASP.NET with IISJan 21, 2011. The problem arises when you install IIS after installing ASP.NET. If you do this, IIS will configure itself for the ASP.NET version that ships with your Windows edition that might be an older version (e.g. version 2.0) and you won’t be able to run any web application built using a later version of ASP.NET.
  • "The Ersoy Experiment" in Windows Phone 7 Development using XNAMar 04, 2011. Have you ever felt "limited" while using XNA or Silverlight? I have! That's why I've gone on a deep trip into the development of Windows Phone 7's inner sanctuary.
  • How to make image editor tool in C# : Cropping imageMar 23, 2011. This article describes how to crop an image in C#
  • LightSwitch Solution Explorer ViewsMay 15, 2011. One of the feature in Microsoft Visual Studio LightSwitch is Views in the Solution Explorer. You cannot find a feature like that in previous Microsoft IDEs like VB.
  • Gapless Audio CD Recording with VB or C SharpOct 03, 2011. I wrote this because I needed it. Being a card carrying member of Old Timers Associated, I have a lot of beautiful music on vinyl. Being a card carrying member of Poor Folks Associated, I can’t afford to re-buy all of them on CD.
  • Data Export to Excel and Create Group Report in .NETNov 29, 2011. In our normal working days, we may usually need export data from database into Excel. And after or during exporting we may have requirements on style settings to make the output Excel worksheet with good appearance for readers easily get the data information, such as create a group report.
  • Script to Get Microsoft Product's Installed on Your Machine With Version NumberJan 16, 2012. Using this set of script files you will be able to get all the Microsoft products installed on your machine with version number.
  • Paging in a DataGrid Using DropDownListMar 07, 2012. In this article we learn how to do paging in a DataGrid using a DropDownList.
  • How to Make Help File With VB.NETApr 04, 2012. Using a TreeView control and a XML file to create a help file.
  • Using Grid ActiveX Control With VB.NETApr 05, 2012. Using the new ActiveX control (MKGrid) with VB.Net, you can read my article about using MKGrid control with C#.
  • MBScrollBar in VB.NETApr 08, 2012. MBScrollBar is a ContextMenuStrip which inherits all the properties of a simple Scroll Bar control.
  • Button Array Using VB.NETApr 10, 2012. In this article we will create an array of buttons using VB.NET
  • Save an Image to Database in WPF using Visual BasicMay 29, 2012. Here we learn how it comes in effect using WPF and VB.net. To store an image to database, I created a table in database.
  • How to Record QTP Script in QTP Tool in TestingJul 30, 2012. In this article I discuss how to record a QTP Script in the QTP Tool.
  • How to Call COM VB6 DLL in WCF ApplicationSep 12, 2012. How to call a COM\VB6 DLL in a WCF Application.
  • What is VB.NET Namespace Sep 14, 2012. This article describe namespaces in VB.Net.
  • Active Directory Account ExpiresSep 19, 2012. This article shows how to set the Active Directory AccountExpires Attribute in .Net.
  • Introduction to ADO.NET Sync ServicesSep 21, 2012. This article, using a very basic example in VB .Net, shows how easily you can use ADO .Net Sync services in applications for occasionally-connected architectures.
  • XYDataGrid in VB.NETSep 22, 2012. XYDataGrid is a web datagrid control which helps to developers to put fixed headers and fixed columns.
  • Print A Chart into a Byte Stream in VB.NETSep 22, 2012. This article will explain how to build a chart using MSChart and save the output to a stream of bytes, this stream will be redirected to a generic handler, so we'll not use a webform.
  • Export Gridview Data to pdf format in VB.NETSep 23, 2012. In this article we will know how to export gridview data to pdf format.
  • Save and Retrieve Image From SQL in VB.NETOct 14, 2012. This article is about storing and retrieving images from SQL Database using a VB.NET.
  • Send Mail Using Gmail, Yahoo Account in VB.Net and C#.NetOct 19, 2012. In this article I am going to show how to send mail from Gmail or Yahoo using vb.net & C#.NET without login your Gmail account.
  • Speed of Light C in VB.NETNov 08, 2012. Speed of light c = the speed of light = 299 792 458 m / s.
  • Using Lightbox in an ASP.NET Application in VB.NETNov 08, 2012. The article describes Lightbox as, "...a simple, unobtrusive script used to overlay images on the current page." It delivers a nice, professional looking method for displaying images as overlays through the use of hyperlinks.
  • Array Redefined in VB.NETNov 08, 2012. This is article is helpful to get the basic idea of arrays in VB.Net.
  • OCR Functionality Through MODI for Extracting text Information from Image file in VB.NETNov 08, 2012. Article show that how to extract text and layout information from image file like MDI and TIFF file format
  • Outlook Custom Forms - An Introduction in VB.NETNov 08, 2012. In this article we will see what are outlook custom forms and how to create custom form.
  • Exception Handling in Silverlight Application From WCF in VB.NETNov 08, 2012. This article explains exception handling in a Silverlight application from WCF.
  • Outlook Custom Forms and VB.NET- Controls and fieldsNov 08, 2012. In this article we will see how to add various controls in our custom forms and how to use Built-in Fields on custom forms.
  • Test for User Group Membership in VB.NETNov 08, 2012. This article describes a simple approach to determining whether or not a logged in user is a member of a group within the context of an asp.net web based application.
  • Simple Fixed Array: Part IIINov 08, 2012. This is the last part of three tutorials on arrays.
  • Application Level Security System in VB.NETNov 08, 2012. This article will provide help in developing an Application Level Security System.
  • Simple Fixed Array: Part IINov 08, 2012. This is the second part in the array set of tutorials.

About VB

VB stand for Visual Basic which is a high level programming language and developed from earlier DOS version called BASIC. BASIC means Beginners' All-purpose Symbolic Instruction Code which is easy programming language to learn. The code looks like English Language. In software development Different software companies produced different versions of BASIC, such as Microsoft QBASIC, QUICKBASIC, GWBASIC ,IBM BASICA and so on. But mostly people are used Microsoft Visual Basic today because it is well developed programming language and supporting resources are available everywhere. In addition Visual Basic 6 is Event-driven because we need to write code in order to perform some tasks in response to certain events. Some of the events are load, click, double click, drag and drop, pressing the keys and more. We will learn more about events in later lessons.

SPONSORED BY

File APIs for .NET
Aspose are the market leader of .NET APIs for file business formats – natively work with DOCX, XLSX, PPT, PDF, MSG, MPP, images formats and many more!
Visual Studio Live - Redmond 2016