Convert A Binary String to A Decimal Number

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
Enter a binary string as a parameter and get its decimal equivalent. Simply add a textBox control and command button or use the messagebox.show method from the system.windows.forms namespace to test this snippet.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: