C# Corner

Resources  
  • How To Enable C# 6.0 / VB 14 In Visual StudioJan 07, 2016. In this article we will learn how to enable C# 6 / VB 14 settings in Visual Studio.
  • How to Login To Gmail and Facebook With VB FormNov 17, 2014. In this article you will learn how to login into Gmail and Facebook with a VB Form.
  • Embed Word in a Web Page with an Easy VB Custom Control in VB.NETNov 10, 2012. This article describes an approach to displaying word documents within a web page using a simple custom server control.
  • Add a Google Map to a VB Desktop ApplicationNov 10, 2012. This project demonstrates a quick and easy way to add mapping to a windows desktop application (with an available internet connection) using Google Maps as the basis and source for the map.
  • Embed PDFs into a Web Page with a VB Built Custom Control in VB.NETNov 10, 2012. This article describes a simple approach to embedding and displaying PDF documents in a web page through the use of a simple ASP.NET 2.0 VB built custom server control.
  • Web based colour tool in VB .NETNov 10, 2012. This article gives you information about the System.Drawing namespace, which is very useful while working with colours in your .net projects
  • Create and Export Custom Classes as Reusable Templates in VB .NETNov 10, 2012. This article shows how to create a custom class and export it as a reusable template in Visual Basic.
  • Manage Data in a VB Application (without the Database)Nov 09, 2012. This article provides an approach to building an application that may be used to collect, store, and retrieve data without relying upon a database to get there.
  • Programmatically Complete PDF Form Fields using VB and the iTextSharp DLLNov 09, 2012. This article describes a quick and simple approach to programmatically completing a PDF document through the use of the iTextSharp DLL.
  • Using LINQ in word 2007 with VSTO and VB 2008 in VB.NETNov 09, 2012. This article shows an example of integrating LINQ and Visual Studio 2008 Tools for office to query Word documents properties, via Visual Basic code.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • Learn WPF CRUD Operations Using VB.NETMay 09, 2017. In this article, you will learn WPF CRUD Operations using VB.NET.
  • ASP.NET Poll Control In VB.NETJul 22, 2016. In this article, you will learn about ASP.NET Poll Server Control in VB.
  • What Is The Future Of VB.NET May 12, 2016. Are you a VB.NET developer? Do you wonder what the future of VB.NET looks like?
  • Invoke Method To Update UI From Secondary Threads In VB.NETJan 25, 2016. In this brief article, we'll see how it can be possible, through the Invoke method, which is available to all controls through the System.Windows.Form namespace, to realize such functionality in order to execute a graphic refresh and update through delegates.
  • Connecting Databases Using ADO.NET In VB.NETJan 22, 2016. In this article you will learn how to connect databases using ADO.NET in VB.NET.
  • AutoComplete Brackets In C#.NET/VB .NETDec 21, 2015. In this article you will learn how to create Auto Complete Brackets in C#.NET or VB.Net. Completing { , ( , " , ' , < , [ char.
  • Calculate Fractions in VB.NETAug 22, 2015. In this brief article, we'll see a simple method to convert the decimal part of a number into its fractional representation, developing a reusable class apt to do it.
  • Store HTML Form to Excel Sheet Using VBScriptAug 18, 2015. In this article you will learn how to Store HTML Form to Excel Sheet using VBScript.
  • Store HTML Table Data To Excel Spreadsheet Using VBScriptAug 18, 2015. This article shows how to store HTML table data into a Microsoft Excel sheet using a VBScript.
  • Create and Use DataSet-independent Reports in VB.NETJul 24, 2015. In this article we will learn how to create dataset independent reports in VB.NET.
  • How to Create a Login Form and User Form in VB.NetMay 13, 2015. Login Form and User Form in VB.Net showing how to add, edit, delete and reset a form in a VB.Net 2008.
  • Windows Store Apps Using C#/VB and XAMLJan 14, 2015. In this article we will implement a very first simple example of Windows Store App.
  • How to Use Chart Control in VB.NET 2010Dec 25, 2014. This article shows how to use the Chart control in VB.NET.
  • How to Use SetPixel Method to Draw a Function in VB.NETNov 25, 2014. This article shows how to use the SetPixel method to draw some mathematical functions.
  • Convert Date From Solar (Gregorian) to Lunar (Hijri) Using VB.NETAug 19, 2014. This article describes how to convert a date from Solar to Lunar using VB.Net.
  • Simulated 3D Maze Game in VBMay 22, 2014. It's a simulated 3D maze game with an editor to make new levels.
  • Glass Style Button With Dropdown MenuList Using VB.NETSep 12, 2013. This article provides a User Control to replace the standard Button with many properties and much versatility.
  • Changing UICulture of Master and Content Pages on Button Click in ASP.NET Using C#, VB.NETMay 25, 2013. This article explains how to change the UICulture of the master and content pages on a button click in ASP.NET.
  • Use of BitBlt Function in VB.NETJan 02, 2013. In this article, we will see how to use BitBlt function in Visual Basic.
  • Using New ComboBox ActiveX With VBNov 19, 2012. This is my attempt to create a resizable ComboBox ActiveX to set its height to the height of a DataGrid cell.
  • Synchronization in Multi-threaded Applications in VB.NETNov 10, 2012. This article demonstrates the important concept in multithreading, synchronization. In this article and attached source code, you will learn how to write multi-threaded synchronized applications.
  • Mobile Stock Quote Tracker in VB.NETNov 10, 2012. We will create a mobile stock quote tracker program in this article. The program retrieves the real time quotes of symbols specified by the user and displays the results in a user friendly format. The user can also specify the high and low thresholds for setting alerts. The View Stock Alerts screen displays the stocks that have crossed above the high threshold and stocks that have values below the low threshold.
  • Number to Words Web Service in VB.NETNov 10, 2012. This sample code describes a Web service through which a client can get the equivalent of a number in words.
  • Creating a Task of Outlook in VB.NETNov 10, 2012. This article helps us to create a new task in Microsoft Outlook and send it through a mail.
  • Simple XML Parser in VB.NETNov 10, 2012. This article shows how to create a very simple XML parser.
  • ActiveX Controls in VB.NETNov 10, 2012. VB.NET language provides us a way to call this COM server in a program. When we compile a VB.NET program an Intermediate Language is generated and it is called as Managed Code. This article shows how to create a simple server by using Visual Basic 6.0 and implementing it in a VB.NET client program.
  • Mimic the Appearance of Outlook’s Sidebar with the Multi-view Control in VB.NETNov 10, 2012. This article describes a simple way to mimic the appearance of Microsoft’s Outlook sidebar within an ASP.NET 2.0 web application.
  • Getting NASDAQ Quotes with a Pocket PC in VB.NETNov 10, 2012. This article describes about getting the NASDAQ Quotes with a Pocket PC. If you have been lucky enough to get the Compact Framework or Smart devices extension beta for April 2002 you may.
  • Extending the ASP.NET ImageButton Control in Vb.NETNov 10, 2012. This article describes an easy approach to extending an existing ASP.NET control; in this example, the standard toolkit’s Image Button control is extended to support roll-over effects. Given the standard control already contains existing support for both server side click events and client click events, the control is well furbished prior to the addition of the roll-over effect.
  • Automate Send & Receive in Outlook using VB.NETNov 10, 2012. In this article we will take the privilege of outlook and make it to send & receive the mail automatically using VB.Net.
  • Builder Pattern in VB.NETNov 10, 2012. Builder is an object creational design pattern that codifies the construction process outside of the actual steps that carries out the construction - thus allowing the construction process itself to be reused.
  • Building Assemblies using VB.NETNov 10, 2012. This article discusses how to build assemblies and secure them from being tampered.
  • Add and subtract functionalities in DateTime and VB.NETNov 10, 2012.
  • Set Text Case with a Custom Control in VB.NETNov 10, 2012. This article shall describe the construction of three custom controls; each is used to format its text content to be either all upper case, all lower case, title case, or normal (as typed) case regardless of the format of the input.
  • Charting in GDI+ in VB.NETNov 10, 2012. This article shows an example of creating simple charts using GDI+ commands in C#.
  • Accessing data using DataReader in VB.NETNov 10, 2012. In this article you can see how to access the data using DataReader from the data source.DataReader is a readonly, forward only and connected recordset from the database.
  • Exploring VB.NET ArraysNov 10, 2012. There are few differences between VB6 and VB.NET arrays. This article explains how VB.NET arrays differ from the VB6 arrays.
  • Cryptography in VB.NET Part 1Nov 10, 2012. For any Distributed Framework or Infrastructure to be successful today it has to have an extensive support for developing secured solutions. Microsoft .NET is developed from bottom up with security in mind. It has an eclectic security infrastructure.
  • Invoking Unmanaged DLL Functions from Compact Framework for Pocket PC in VB.NETNov 10, 2012. In this example we will use the Compact Framework to create a program containing a launch pad for the Pocket PC.
  • Using IComparable and IComparer to compare objects in VB.NETNov 10, 2012. The .Net framework and especially the System.Collection namespace provides us two built in interfaces witch are IComparable and IComparer interfaces in order to compare two objects.
  • Viewing Assembly Permissions in VB.NETNov 10, 2012. In this article I will show you how you can view the Code Groups that an assembly belongs to and what permissions belong to the assembly. I will demonstrate the Caspol utility supplied with the .NET SDK.
  • Convert VB6 Form to VB.NET Win FormNov 10, 2012. VB .NET has changed the way developer used to program in VB6, GUI of VB6 used to hide most of the internals working from the developer but with VB.NET every aspect of programming is open GUI controls and all. The language it self got changed with VB.NET.
  • Password Hacking in VB.NETNov 10, 2012. This code when run gets the password from a password window of any application. To try it out use the following procedure to get the password.
  • Why we use VB.NETNov 10, 2012. This article shows you how to leverage the power of VB.Net Financial base class library using C#.
  • XML TreeView in VB.NETNov 10, 2012. The application shown here was my first adventure into Xml in the .Net platform. My goal was to be able to reflect any Xml file into the Windows Forms TreeView control. I found various examples online, but none I found were suited for opening all Xml files, rather they were suited to one schema or another.
  • An HTTP Mail Client in VB.NET Nov 10, 2012. The great thing about the POP mail protocol is that it is a well-documented open standard, making writing a mail client to collect mail from a POP box a relatively painless process.
  • Themes in ASP.NET 2.0 using VB.NETNov 10, 2012. In this article we will try to cover one great feature of ASP.NET 2.0, i.e. Themes. Themes are the great way to customize user-experience in the web application. Themes are used to define the look and feel of the web application, similar to the use of Cascading Style Sheets (CSS). Unlike CSS, themes can specify the look of the server-side control like a tree-view control, how they will appear when they are rendered by the browser.
  • Display and Hiding SIP on Pocket PC in VB.NETNov 10, 2012. When you get your hands on a Pocket PC for the first time you have to wonder just how the heck do you enter information.
  • ASP.NET, jQuery and Intellisense in VB.NETNov 10, 2012. The article describes what it necessary to get intellisense up and running for jQuery in Visual Studio 2008 (VB or C#) and addresses a minor snag you might encounter when using jQuery intellisense in MVC or ASP.NET development.
  • Generating XML from SQL Database in VB.NETNov 10, 2012. This sample shows how you can obtain a Dataset from (in this case) a SQL Server database, and then write it out to an XML Document. As an Extra Added Bonus(tm), it can show you how to write the schema as well.
  • File Encryption in VB.NETNov 10, 2012. The classes in the .Net Framework cryptography namespace manage many details of cryptography for you. Some are wrappers for the unmanaged Microsoft CryptoAPI, while others are purely managed implementations. Cryptography protects data from being viewed or modified and provides secure channels of communication over otherwise insecure channels.
  • Getting Images From Scanners and Webcams using VB.NETNov 10, 2012. In this article I will show how to acquire pictures from imaging peripherals like scanners, webcams and so on, by calling some API functions, provided by the EZTW32.DLL library, and Visual Basic.
  • Implement Concrete Factory Design Pattern using Reflection in VB.NETNov 10, 2012. Reflection is used to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object. In this example, we implement Concrete Factory Pattern using Reflection to fetch records from MS-Access and MS-SQL Database.
  • Syncronization in Multithreading in VB.NETNov 10, 2012. This article explains about the Synchronization in Multithreading. Threads are a powerful abstraction for allowing parallelized operations: graphical updates can happen while another thread is performing computations, two threads can handle two simultaneous network requests from a single process, and the list goes on.
  • Creating an Excel Spreadsheet Programmatically using VB.NETNov 10, 2012. The Interoperability services make it very easy to work with COM Capable Applications such as Word and Excel. This article reveals using Excel from a managed application. Excel is the spreadsheet component of Microsoft Office 2000.
  • Weather Update on your Mobile in VB.NETNov 10, 2012. In this article, I would show you how you can get weather update on your mobile through .NET mobilding services.
  • Web Services - Great Plains Dexterity Programming Secrets in VB.NETNov 10, 2012. This article is for advanced Great Plains Dexterity and VB.Net developers. It describes the technique of direct COM objects/Web Services calling in Dexterity.
  • Secure WS in VB.NETNov 10, 2012. This code covers the .NET (VB) implementation of the security of web services using the Microsoft “The Favorites Service” security modified schema.
  • Querying COM+ using Web Services in VB.NETNov 10, 2012. The most COM+ common administrative tasks (creating a COM+ application, installing/deleting a component, setting a component attribute) can be accomplished manually with the Component Services administrative tool from Management Console. But there a few cases (installing the components or changing a component’s value on a regular basis) when it is necessary to have programmatic access to the COM+ applications, components and interfaces.
  • Adding Text directly to Mobile Web Forms in VB.NETNov 10, 2012. We have seen in previous articles how to develop Mobile Web Forms using the Microsoft Mobile Internet Toolkit. We can make use of the Mobile Web Forms controls to add controls which will be rendered on the client side and also have a server side object representation.
  • NetMassDownloader in VB.NETNov 10, 2012. With this tool you can download whole .Net Framework Source Code at once, and enjoy offline browsing With it , you can have whole the source code without any Visual Studio Product Installed.
  • Lookup Area Codes by Zip Codes with an ASP.NET Custom Control in VB.NETNov 10, 2012. This article describes the construction of a simple custom control used to lookup an area code and a city/state location based upon a selected zip code; the lookup is performed through the use of an available public web service. The article includes the source code for this custom control and well as a demonstration site used to test the control.
  • ASP.Net Toolbox (Dynamic Data Controls): Part 8 in VB.NETNov 10, 2012. In this article we will discuss, ASP.Net Toolbox controls and its uses. In this article I am only writing some lines on each and every control available in Dynamic Data Control section
  • Tips : Leveraging VB.Net Base ClassesNov 10, 2012. Multiple language implementation has an inherited powerful advantages. The .Net unify class architecture model allows .Net languages to leverage class libraries implemented in other class libraries. This article shows you how to leverage the power of VB.Net Financial base class library using C#.
  • ASP.Net Toolbox (Validation Control): Part 3 in VB.NETNov 10, 2012. In this article we will discuss, ASP.Net Toolbox controls and its uses. In this article I am only writing some lines on each and every control available in Validation Control section.
  • Determine Web Visitors Country of Origin in the Drop Down List using VB.NET or C#Nov 10, 2012. During the transaction online, there are times when it is important to preset the web visitor's country of origin, ZIP code, ISP and domain name at the drop down list to prevent fraud and to ease the complexity of registration task. This article shows you how by using .NET Framework, it can be done.
  • Great Plains Dexterity customization in VB.NETNov 10, 2012. This article is for intermediate Great Plains Dexterity developer. It describes the directions to phase out Dexterity functionality and replace it with newer technologies.
  • Leveraging Base Classes in VB.NETNov 10, 2012. This article shows you how to leverage the power of VB.Net Financial base class library using C#. The .Net unify class architecture model allows .Net languages to leverage class libraries implemented in other class libraries.
  • Understanding Structures in VB.NETNov 10, 2012. A structure in VB.NET is simply a composite data type consisting of a number elements of other types.
  • Custom Image Button Control for ASP.NET 2.0 in VB.NETNov 10, 2012. This article describes a simple way to mimic the appearance of Microsoft’s Outlook sidebar within an ASP.NET 2.0 web application.
  • Drawing Rubber-Band Lines and Shapes in VB.NETNov 10, 2012. I would like to show how we can draw rubber-band lines and shapes in GDI+ with just a few lines of code.
  • ASP.NET Page Life Cycle in VB.NETNov 10, 2012. In this article, we will see the stages of execution of the ASP.NET Page.
  • Scramble For Pocket PC in VB.NETNov 10, 2012. This article shows you how to write Scramble for Pocket PC.
  • Configuring Applications in VB.NETNov 10, 2012. The .Net Framework provides a very convenient and flexible way to configure applications at run time. Using Configuration files developers and administrators can modify settings for applications without having to recompile the application, avoiding many of the redistribution /re-deployment hassles.
  • Add Multimedia Content with a Custom Control in VB.NETNov 10, 2012. This article describes a quick and simple approach to creating a custom web control used to display multimedia files within an ASP.NET page.
  • Changing User Information using Active Directory in VB.NETNov 10, 2012. If your company is one of the lucky Ones to implement Windows 2000 Active Directory you may have been looking for a way to populate it with data. Perhaps adding people’s details from a file directly into the Active Directory.
  • Providing unbound List based controls with Text and Value properties in VB.NETNov 10, 2012. The purpose of this article is to discuss the construction of a couple of simple custom controls that extend both the Combobox and the Listbox controls to allow them to be associated with both a text and a value property for each item in the control's list.
  • Simple web File download in VB.NETNov 10, 2012. This is a simple program that shows how to download files from the web and save them.
  • Validation Controls in ASP.NET using VB.NETNov 10, 2012. This article will explain about Validation controls available in ASP.NET.
  • RptPreview 1.1 using Crystal Reports Viewer in VB.NETNov 10, 2012. The following small application is designed to allow testing created reports with XML feeds used as data sources. The program checks that fields in report match to the fields in XML and then shows the report with loaded data in the report viewer.
  • Understanding and using Properties in VB.NETNov 10, 2012. In this article, you will learn about properties in VB.NET. Here you will learn how to define and use properties.
  • Printing Directly to the Printer in VB.NETNov 10, 2012. Using this code enables you to print directly to the printer using WIN32 api calls and therefore should enable you to print at maximum speed rather than relying in the Windows Printing subsystems. Additionally I have added code to show how to send PCL codes to the printer.
  • Check your Mobile Device capabilities in VB.NETNov 10, 2012. This sample is a utility to determine the capabilities of a Mobile Device. The MobileCapabilities class available in the Mobile Internet Toolkit provides a list of useful information on the client device. You can use this class to determine whether the target client device supports certain functionality.
  • UltraGrid control with dynamic column using VB.NETNov 10, 2012. The following article will explain how to add dynamic column and perform calculation in the dataset.
  • Command Pattern in VB.NETNov 10, 2012. Command pattern encapsulates a request as an object and gives it a known public interface. Command Pattern ensures that every object receives its own commands and provides a decoupling between sender and receiver. A sender is an object that invokes an operation, and a receiver is an object that receives the request and acts on it.

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.
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!