Click here to Skip to main content
14,978,609 members
Everything / Programming Languages / Visual Basic

Visual Basic

VB

Great Reads

by Fredrik Bornander
WPF Implementation of the spinning panel frequently used on the iPhone
by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.
by JosipK, Marko Kozlina
C# and VB.NET console applications that demonstrate how to create and send an email reply with IMAP and SMTP protocols in .NET Framework
by Hung, Han
This article is a tutorial on how to code your own Sudoku game using VB.NET

Latest Articles

by W. García
To cover the need to import information from a CSV file directly into RAM, in an efficient, secure and stable way, from VBA, specialized libraries are needed to ensure the ease of use and integrity of the data.
by VisualMonsters
Simple game "table football", you can easily create and play with your friends and family
by Giovanni Bejarasco
A walkthrough in UDT programming with primary focus on database concepts
by Paul Srmnn
Using VisualBasic Express 2010

All Articles

Sort by Score

Visual Basic 

Please Sign up or sign in to vote.
13 Nov 2011
Patil Kishor
Backup & Restore of SQL Server database using VB.NET
Please Sign up or sign in to vote.
16 Mar 2010
Bill9603
Many developers use ".cur" cursor files. Using them myself in Visual Studio 2008, they are not the easiest things to work with for many reasons.They are not easy to create without expensive software. (unless you are using the editor within Visual Studio)They cannot easily be ported in the...
Please Sign up or sign in to vote.
1 May 2012
AspDotNetDev
4 alternatives  
Call a series of functions until the return value meets a condition without a chained-if or short-circuiting.
Please Sign up or sign in to vote.
7 Mar 2010
Luc Pattyn
This is an alternative to "Week Numbers According to ISO8601".
Please Sign up or sign in to vote.
9 Feb 2018
Meshack Musundi
How to highlight TextBlock text using attached properties
Please Sign up or sign in to vote.
22 Nov 2013
dyma
Sunflower fractal, so that you can play and create a wonderful image
Please Sign up or sign in to vote.
25 Feb 2012
Sander Rossel
On the importance of Option Strict...
Please Sign up or sign in to vote.
9 Sep 2013
The Myth
Databinding examples in WPF for VB.NET.
Please Sign up or sign in to vote.
26 Nov 2016
JamesFaix
Get a collection of all running Excel interop Application objects (not just the active one)
Please Sign up or sign in to vote.
12 Apr 2015
Jeffijoe
Writing properly formatted, grammatically correct, translatable UI messages
Please Sign up or sign in to vote.
3 Jan 2012
bluesathish
1 alternative  
Fastest and most efficient method to insert large amount of records to a SQL Server database from our system generated datatable.
Please Sign up or sign in to vote.
5 Mar 2017
Jose A Pascoa
Part 1 - Using DMath from C#
Please Sign up or sign in to vote.
3 Jun 2014
DaveAuld
1 alternative  
Using Enum to provide a quick and easy option lists
Please Sign up or sign in to vote.
31 Mar 2013
Melih Mucuk
Creating a WCF Service with JSON data for use on iOS
Please Sign up or sign in to vote.
1 Mar 2011
Pete Mourfield
Describes how to check for file existence on an FTP Server using VB.NET
Please Sign up or sign in to vote.
9 Mar 2011
Аslam Iqbal
2 alternatives  
Very simple way to restore form window to its previous state
Please Sign up or sign in to vote.
17 Aug 2013
Prince Tegaton
Building a Custom User Control for Messagebox
Please Sign up or sign in to vote.
11 Oct 2014
Nosey Parker
How to calculate subnet fast and get active ip-addresses
Please Sign up or sign in to vote.
24 Dec 2014
Prince Tegaton
This entails how to easily add mobile website feature to your ASP.NET website/app
Please Sign up or sign in to vote.
25 Oct 2016
Cees Verburg
Writing /reading Unicode Characters and INI files in ASCII format
Please Sign up or sign in to vote.
9 Jul 2011
#realJSOP
Avoid exceptions when setting enumerators from unknown/untrusted sources.
Please Sign up or sign in to vote.
19 Oct 2010
Ziv Nitzan
There is also a Visual Studio extention called CodeMaid that has a lot of cleaning options http://bit.ly/diMTaR
Please Sign up or sign in to vote.
7 Jan 2011
Tim Corey
Learn how to use a dataset object to load a combobox (or other similar objects) at runtime instead of needing to set anything up at design time.
Please Sign up or sign in to vote.
25 Jan 2012
Sion Cohen
An elegant programmatic solution for having multiple indexers in C#
Please Sign up or sign in to vote.
29 Oct 2013
Mike-MadBadger
How to discover all the controls on a form at design time for a property editor
Please Sign up or sign in to vote.
15 Jan 2016
veen_rp
Big lists (>1,000,000 items) can cause out-of-memory errors raised by .NET. Manage them by a List of List(Of T)
Please Sign up or sign in to vote.
19 Jan 2017
Neha Ambasta
This tip describes how to convert the data table/grid into Excel sheet.
Please Sign up or sign in to vote.
16 Feb 2018
Len van den berg
GMaps Control Simplified in VB.NET
Please Sign up or sign in to vote.
20 Mar 2011
RMittelman
Here is a way to do this without using the registry.In the project's properties, Settings pane, add the following settings. You can name these settings anything you want, but use the same setting name in the code shown below:Name: MainWindowStateType:...
Please Sign up or sign in to vote.
24 Jun 2011
Idle_Force
Please Sign up or sign in to vote.
5 Jul 2012
Matthias Böhnke
Bug Fixes for Reading Barcodes from an Image - III
Please Sign up or sign in to vote.
18 Dec 2012
Ahmad Dekmak
In this project we learn how to resign a signed assembly with another one of your choice
Please Sign up or sign in to vote.
3 Nov 2013
carcabot
Multi Language Switcher Dynamically written in WPF VB.NET using XMLDataProvider
Please Sign up or sign in to vote.
17 Jan 2014
Neil Siegfried
Double Buffer a List View Control to eliminate all flickering associated with it.
Please Sign up or sign in to vote.
18 Aug 2014
lorekd
Leveraging the built in LSet statement, along with user-defined types, to implement a class to translate binary data to/from simple data types
Please Sign up or sign in to vote.
5 Feb 2015
Miller Nguyen
This article will show you how to implement a complete solution of electronic signature by using HTML5 canvas in ASP.NET (VB).
Please Sign up or sign in to vote.
30 Dec 2015
Tristan9
Better use async / await in web applications
Please Sign up or sign in to vote.
15 Jan 2016
veen_rp
Geographic coordinates from decimal degree to degrees, minutes & seconds. And vice versa.
Please Sign up or sign in to vote.
17 Jan 2016
veen_rp
Use and benchmark of coordinate transformation using the C++ proj4 library in VB.NET and C#
Please Sign up or sign in to vote.
28 May 2016
Michael B. Erickson
Control the changes to structured data exposes by your .NET objects
Please Sign up or sign in to vote.
25 May 2018
Clifford Nelson
VBA Code that will take a string and attempt to pull out the company name, street address, city, state, zip code, phone number, and web address
Please Sign up or sign in to vote.
19 Jul 2010
DaveAuld
You can keep your output consistent with how Windows represents file sizes by using the inbuilt function;StrFormatByteSizeThe following code will dump the files from the root of C:\, Call getFilesAndSizes from a button click or wherever you want. ...
Please Sign up or sign in to vote.
19 Dec 2010
VyReN
Using VB.NET's RichTextBox and fitting all text into the box
Please Sign up or sign in to vote.
2 Mar 2012
PWFisch
Drag drop multiple selected rows of datagridview with left mouse button
Please Sign up or sign in to vote.
9 Mar 2012
Manoj K Bhoir
Why another Scroll Bar? The standard ScrollBar is too limited in functionality and I couldn't find a custom control written that did all that I wanted. This is a User Control with Microsoft Office 2007 Visual Style.
Please Sign up or sign in to vote.
25 Feb 2013
TnTinMn
UpdateDefaultButton - Allows detecting change in ActiveControl
Please Sign up or sign in to vote.
17 Aug 2013
adriancs
An Office 2010 Style Color Picker for .NET WinForm.
Please Sign up or sign in to vote.
18 Feb 2014
Shabra
How to use Resx files to internationalize your code
Please Sign up or sign in to vote.
6 Apr 2014
Prabakaran T
Ultimate USB Reset Attribute with powerful option
Please Sign up or sign in to vote.
28 May 2014
Thava Rajan
Copy and insert data at any postion in your datagridview
Please Sign up or sign in to vote.
9 Mar 2015
Gregory Morse
Rendering Qur'anic (complex Arabic) scripts with Unicode in a PDF
Please Sign up or sign in to vote.
3 Apr 2015
BobishKindaGuy
TrackBar that can work with time values, has a nice spotlight for the current value, and won't allow its value to change when the user moves their mousewheel.
Please Sign up or sign in to vote.
14 Apr 2015
Casey Witt
Function for parsing Microsoft Excel "XML Spreadsheet" clipboard DataObject into .NET Array of Objects
Please Sign up or sign in to vote.
27 Mar 2016
Jacob Himes
An automated approach to updating business models intelligently, by updating a destination model with a source model only on properties whose values differ.
Please Sign up or sign in to vote.
20 Aug 2015
LarryCharlton
A VB.NET example of Cortana UI and application service
Please Sign up or sign in to vote.
9 Nov 2015
veen_rp
A simple, step by step tutorial to set up an MS-Office Excel Ribbon, launch your own .NET applications from Excel and interact with the spreadsheet values.
Please Sign up or sign in to vote.
16 Dec 2015
maxitone
Use this if you're working in a fullscreen RDP session - for example - to see new e-mail or appointment alerts
Please Sign up or sign in to vote.
11 Sep 2016
Avatar2400
This is a simple class that allows you to have message box with checkbox and other small features.
Please Sign up or sign in to vote.
12 Nov 2016
Mang Irpan
This control is a datagridview that can contain control as its node, and it can contain unlimited node control
Please Sign up or sign in to vote.
2 Apr 2020
Padanian
A panel switch replica, resembling electro-mechanical toggle of a switchboard box
Please Sign up or sign in to vote.
14 Apr 2010
marc9889
2 alternatives  
This is an example of one way to parse an HTML document by using a recursive function. In this example, an html document is loaded from a text file, but the code also demonstrates (in remarks) using a web page as a source file.When the recursive function is called, a conditional statement...
Please Sign up or sign in to vote.
29 Mar 2010
Daniel Leykauf
Same function and little bit easier:Imports System.Runtime.Remoting.Metadata.W3cXsd2001Class Converter Public Shared Function ConvertToUTF16(ByVal str As String) As String Return New SoapHexBinary(System.Text.Encoding.BigEndianUnicode.GetBytes(str)).ToString End...
Please Sign up or sign in to vote.
3 Dec 2010
-james
Iterate through the results and extract using system.reflection
Please Sign up or sign in to vote.
3 Feb 2011
Prerak Patel
1 alternative  
Type Character
Please Sign up or sign in to vote.
21 Jul 2011
Ramanujam Shankar
Remove the triangle and star symbol from the row header in a DataGridView.
Please Sign up or sign in to vote.
23 Jul 2011
#realJSOP
I wouldn't create a class for this. I'd make it an extension method, and then do this:public static class String Extensions{ public static string Reverse(this string value) { value = // do your reverse code here; return value; }}// Usage:string x...
Please Sign up or sign in to vote.
29 Mar 2012
barrd
Fix an exception related to ISupportInitialize.BeginInit and learn why it happens.
Please Sign up or sign in to vote.
15 Apr 2012
andrewbb@gmail.com
Includes most API functions except for graphics.
Please Sign up or sign in to vote.
13 Sep 2012
CorvetteGuru
Backup Stored Procedures in SQL Server.
Please Sign up or sign in to vote.
9 Nov 2012
miteleda
Copy DataGridView contents to clipboard regardless of current selection.
Please Sign up or sign in to vote.
29 May 2013
Surendra Adhikari SA
Implimenting a message box that closes automatically using thread.
Please Sign up or sign in to vote.
14 Jun 2013
Mike Meinz
Source code to demonstrate the creation of a new task in Windows Task Scheduler.
Please Sign up or sign in to vote.
24 Sep 2013
Mike Meinz
PartnerTech provides a 32-bit DLL and a 64-bit DLL for communicating with the CD-7220 Series Customer Display in true USB mode. This tip demonstrates a .NET class that can be used to provide an easy way to access the PartnerTech-provided 32-bit DLL.
Please Sign up or sign in to vote.
11 Oct 2013
heemanshubhalla
How to use Masked Textbox control in .NET
Please Sign up or sign in to vote.
25 Apr 2014
Frankxcid
Class that allows you to programmatically create an Open XML Excel spreadsheet
Please Sign up or sign in to vote.
24 May 2014
CHill60
Allowing a User to cancel a Form when Validation is in place and invalid data has been entered.
Please Sign up or sign in to vote.
27 May 2014
Taucher Christoph
WindowsForm Textbox with custom Autocomplete function
Please Sign up or sign in to vote.
14 Feb 2015
DerStauner
With this library it is possible to query datatables with SQL commands.
Please Sign up or sign in to vote.
11 Mar 2015
Duncan Edwards Jones
How an event sourcing / projection based system allows you to fully unit test the business code the application will use without mocks
Please Sign up or sign in to vote.
24 Jan 2016
David Vanson
How to make a video converter that shows the conversion progress to the user using ffmpeg
Please Sign up or sign in to vote.
4 Oct 2015
Member 12032084
.dll for making the FTP management with VB.NET easier
Please Sign up or sign in to vote.
14 Dec 2015
bradyguy
Don't send your mail out using the wrong account
Please Sign up or sign in to vote.
6 Jan 2016
mycenean
Creating a simple color selector dialog
Please Sign up or sign in to vote.
28 Nov 2016
Zebedee Mason
Or why not both? This shows how.
Please Sign up or sign in to vote.
16 Mar 2017
Robert Bettinelli
Easy JSON Recursion in VB.NET with nested levels
Please Sign up or sign in to vote.
4 Mar 2018
MarioRainer
Here is a simple way to sort the datagridview by Multi-Columns
Please Sign up or sign in to vote.
7 Oct 2019
Florin Pănescu
This example shows how to use SharpCompress library with TreeView & ListView.
Please Sign up or sign in to vote.
4 Mar 2021
jkluge
Fast reading/writing of bitmap data in VB.NET using pointers
Please Sign up or sign in to vote.
25 May 2016
Mr. xieguigang 谢桂纲
Generate markdown from your nuget package
Please Sign up or sign in to vote.
8 Jun 2012
pdoxtader
Use DeviceIoControl, QueryDosDevice and WNetOpenEnum to get information about your system.
Please Sign up or sign in to vote.
5 Mar 2010
open-collar
Download source (55.5 KB)IntroductionThe "using" block in C# and VB.NET can be used as a high-level language construct, not just as a way of tidying-up. In this article I show you how to capture and restore state using constructors and disposers.BackgroundIn any substantial...
Please Sign up or sign in to vote.
3 Aug 2010
Tim-bot
Simple calculation to determin a value at a percentage along a bell curve. Also with an offcenter curve intersection thing....
Please Sign up or sign in to vote.
24 Sep 2010
Ron Beyer
You may want to take a look at String.Join:Your code can be compressed to:Dim str as Stringstr = Chr(34) + String.Join(Chr(34) + "," + Chr(34), arr) + Chr(34)(My VB skills are a bit lacking, so the syntax may be a bit off, but you get the idea).
Please Sign up or sign in to vote.
3 Sep 2013
karenpayne
Use less code in your business logic for messages to the UI
Please Sign up or sign in to vote.
10 Jan 2011
Chen,Shaowen
In this solution, we try to capsule our figure and its caption in a Textbox, so that if we move the Textbox, the contents (figure and caption) will move together.
Please Sign up or sign in to vote.
2 Apr 2011
AspDotNetDev
VB.NET Version (C# Version)Thanks to cechode for inspiring this tip/trick. Suppose you have the following functions:Function Step1() As Boolean Return TrueEnd FunctionFunction Step2(ByVal val1 As Integer, ByVal val2 As Integer) As Boolean Return val1 = val2End...
Please Sign up or sign in to vote.
25 Jun 2011
a_pess
Draw to Screen without using API
Please Sign up or sign in to vote.
21 Sep 2011
Anshul R
Private Sub GetIPAddress()Dim strHostName As StringDim strIPAddress As StringstrHostName = System.Net.Dns.GetHostName()strIPAddress = System.Net.Dns.Resolve(strHostName).AddressList(0).ToString()MessageBox.Show("Host Name: " & strHostName & "; IP Address: " &...
Please Sign up or sign in to vote.
25 Dec 2011
Juan Davel
Managing Application Scoped Connection Strings
Please Sign up or sign in to vote.
24 Jan 2012
jocko3d
The TestConversion function is not valid. The line of code "data = data & Chr(n)" uses the Chr function to build a string of characters used for the test. The problem is that the Chr function is itself bound to a code page. Specifically, it will utilize the code page that is in use by the...
Please Sign up or sign in to vote.
1 Apr 2012
Wendelius
This is an alternative for "Getting publishing information for a ClickOnce deployment"
Please Sign up or sign in to vote.
12 Jul 2012
Mike 2005
In Design Mode a form suddenly fails to display its controls even though the project continues to work normally.
Please Sign up or sign in to vote.
7 Aug 2012
Santhosh Kumar Jayaraman
This is an alternative for "Previewing Image in ASP.NET Image Control"
Please Sign up or sign in to vote.
8 Oct 2012
djdynamix
A little workaround to enable a VB.NET application to read and alter the WPC settings for any user.
Please Sign up or sign in to vote.
30 Jan 2013
joe_j
Shows how to split a GridView header using CSS and code.
Please Sign up or sign in to vote.
31 Mar 2013
vinodkumarnie
Show or hide controls through code behind or through JQuery
Please Sign up or sign in to vote.
1 Jul 2013
Alexandros Pappas
This project measures performance of the DataTable.Merge method.
Please Sign up or sign in to vote.
28 Jul 2013
Mike Meinz
How to use .NET Framework to determine the drive letter of the CD/DVD (optical) drive.
Please Sign up or sign in to vote.
7 Sep 2013
me.ajaykumar
How to convert a web page to PDF or image
Please Sign up or sign in to vote.
24 Sep 2013
terry.corridan
1 alternative  
This code processes a Click or a DoubleClick event.
Please Sign up or sign in to vote.
15 Mar 2014
Herbert Lausmann
Inject a script (JavaScript) into a web page loaded in a WebBrowser control.
Please Sign up or sign in to vote.
19 Mar 2014
Jacob Himes
My go around to an Entity Framework alternative
Please Sign up or sign in to vote.
14 May 2014
Peter BCKR
In legacy applications you can get a MissingMemberException bei acessing a SqlParameterCollection if you work with object-variables there are reference a SqlCommand-Instance.
Please Sign up or sign in to vote.
19 Jun 2014
Maciej Los
If you want to know the way you can serialize and deserialize custom class collection, this tip is for you.
Please Sign up or sign in to vote.
26 May 2016
peterswinkels
Query Assistant - connect to databases with ADO and execute queries
Please Sign up or sign in to vote.
5 Aug 2014
vertex4343
DirectShow Hangs on Pause – Solved with WNDPROC message
Please Sign up or sign in to vote.
4 Sep 2014
Yashwanth R
To fetch the ID of a grid view control which is inside a User Control
Please Sign up or sign in to vote.
30 Oct 2014
Jems_007
The tip is for those who getting application hang/freeze issue in web browser control.
Please Sign up or sign in to vote.
8 Mar 2015
Gregory Morse
Generating Unique Contrasting Colors
Please Sign up or sign in to vote.
5 Apr 2015
Chris Jorna
Communication library files - UDP broadcast
Please Sign up or sign in to vote.
15 Apr 2015
Chris Jorna
Populating NICs, online (IP and MAC) and offline IPs in a network environment
Please Sign up or sign in to vote.
13 Dec 2015
Philippe Herremans
This tip describes a VB.NET program to implement Custom task panes in Excel 2010 and 2013 using Excel-DNA to integrate .NET into Excel.
Please Sign up or sign in to vote.
2 Jan 2016
Mauricio Orejuela Bohorquez
Emulating HTML Text boxes Value attribute in VB.NET text boxes
Please Sign up or sign in to vote.
23 Feb 2016
JamesFaix
Automated build tool for ExcelDNA projects to add referenced libraries to packed ExcelDNA add-in
Please Sign up or sign in to vote.
21 May 2016
veen_rp
An add-on tip to articles already posted on Code Project
Please Sign up or sign in to vote.
7 Jul 2016
Mr. xieguigang 谢桂纲
GetLastError error codes
Please Sign up or sign in to vote.
14 Jan 2018
Eng Ahmed Taha
Mysql 'statement level' trigger … you can do it with two tricks
Please Sign up or sign in to vote.
9 Mar 2021
jkluge
How to compute a 2D Fourier Transform using the nuget package "mathnet.numerics"
Please Sign up or sign in to vote.
4 Apr 2010
Eugene Sichkar
Actually .net 3.5 have non-repeatable collection class - HashSet class and ISet interface.
Please Sign up or sign in to vote.
29 Nov 2010
Eskern
public static DateTime GetFirstDayOfWeek(this DateTime date) { var dfi = DateTimeFormatInfo.CurrentInfo; var firstDayOfWeek = date; while (firstDayOfWeek.DayOfWeek != dfi.FirstDayOfWeek) firstDayOfWeek=...
Please Sign up or sign in to vote.
6 Apr 2011
Member 4694807
Sorry, but I don't like adding additional artificial elements like function arrays . I would code it as following:If isok(Step1()) OrElse isok(Step2(1,1)) OrElse isok(Step3() OrElse isok(Step4() OrElse isok(0+1) thenend ifFunction isok(ByVal rc as Integer) As Boolean ...
Please Sign up or sign in to vote.
13 Apr 2011
Toniyo Jackson
For Beginners
Please Sign up or sign in to vote.
25 May 2011
Simon_Whale
why not just create a custom handler for all the textboxes? addhandler textbox1.textchanged, addressof textchangedhandler addhandler textbox2.textchanged, addressof textchangedhandler .... 'add additional textbox handlers .... addhandler textbox7.textchanged, addressof...
Please Sign up or sign in to vote.
29 Jun 2011
Ziad J.khan
You can find a much more advanced version of this here:http://univar.codeplex.com[^]The version provided on the download page is soon to be deprecated by the upcoming version 2.0b however. The latter is available here instead:http://univar.codeplex.com/SourceControl/list/changesets[^]
Please Sign up or sign in to vote.
23 Jul 2011
Prerak Patel
What is new in this age old method? We can use LINQ too.Dim inputString As String = "Reverse me"Dim input() As Char = inputString.ToCharArrayDim result As String = New String((From i As Integer In Enumerable.Range(1, input.Length) _ Select...
Please Sign up or sign in to vote.
28 Aug 2011
Jules Harcourt
How to use the excellent Holiday web service in VB.NET using VS 2010.
Please Sign up or sign in to vote.
22 Sep 2011
nlarson11
On Vista/Win 7, I have seen code where only a single period is returned for (0). This makes sure you get the actual IP regardless of the system.Const IPPattern As String = "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$"With Dns.GetHostEntry(System.Environment.MachineName) Return...
Please Sign up or sign in to vote.
9 Oct 2011
Colin3
Using the SAPBusinessObjects.WPF.Viewer.dll, the property ShowGroupTree is not available.To Hide the GroupTree as a default, set the property .ToggleSidePanel to SAPBusinessObjects.WPF.Viewer.Constants.SidePanelKind.None.e.g.With _viewer .IsEnabled = True ...
Please Sign up or sign in to vote.
10 Nov 2011
Alan Tuscano
1 alternative  
Converting DataSet to String to DataSet
Please Sign up or sign in to vote.
10 Nov 2011
#realJSOP
This is an alternative to "DataSet to String to DataSet".
Please Sign up or sign in to vote.
18 Nov 2011
Denno.Secqtinstien
protected void Page_Load(object sender, EventArgs e){ HttpBrowserCapabilities bc = Request.Browser; Label1.Text = "IP Address=" + Request.UserHostAddress;}
Please Sign up or sign in to vote.
24 Nov 2011
RayD111
Dim ipE As System.Net.IPHostEntry = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName) Dim AL As Array = Dns.GetHostEntry(vWrkStn).AddressList Dim A As IPAddress For Each A In AL If A.AddressFamily = Sockets.AddressFamily.InterNetwork Then ...
Please Sign up or sign in to vote.
21 Dec 2011
Member 8208766
To me the second method was problematic. After searching, I found an apparently equally good solution:webBrowser1.DocumentText = text;or in your case:webBrowser1.Document.Write("Hello, world!");from here:...
Please Sign up or sign in to vote.
18 Oct 2012
AspDotNetDev
2 alternatives  
You can't use an if statement in a bound code block, but you can still use conditions in your markup based on bound data.
Please Sign up or sign in to vote.
18 Jan 2012
Morten Lossius
Copy tables between servers with smo - different collation
Please Sign up or sign in to vote.
8 Feb 2012
Pascal Hubert
Looks like what I use!ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(Function() True)
Please Sign up or sign in to vote.
29 Apr 2012
Raffael Foidl
Freezing the Windows Cursor is done in an easy "one-liner"
Please Sign up or sign in to vote.
8 May 2012
Jayson Ragasa
Expose those class members written in .NET, in VB6
Please Sign up or sign in to vote.
9 May 2012
Ali Al Omairi(Abu AlHassan)
Overwriting the __doPostBack() function to target the post-back form according to eventTarget
Please Sign up or sign in to vote.
14 May 2012
taha bahraminezhad Jooneghani
Problem around .first() method in EF and a good solution
Please Sign up or sign in to vote.
27 May 2012
Yumashin Alex
This tip describes how to change DataGridView behavior concerning row resizing
Please Sign up or sign in to vote.
22 Jun 2012
A. Ganzer
Using snippets to create a full and correct implementation of complex interfaces
Please Sign up or sign in to vote.
14 Jul 2012
codiemorgan
When you want your Texture2D resource to download from the Internet
Please Sign up or sign in to vote.
10 Sep 2012
CorvetteGuru
A few fun Dictionary utiltities.
Please Sign up or sign in to vote.
12 Sep 2012
Can SARIGÜL
WMI Reader, also includes known WMI list.
Please Sign up or sign in to vote.
18 Jan 2013
joe_j
Export SQL table data into Excel and open the excel file on the client side.
Please Sign up or sign in to vote.
18 Feb 2013
dirigo
Preventing a log file from growing forever
Please Sign up or sign in to vote.
21 Feb 2013
DidiKunz
Save a 32-Bit RGBA-Bitmap in the Truevision Targa Format
Please Sign up or sign in to vote.
11 Mar 2013
Ravi Kumar Mishra
Data export from data table or dataset to Excel with formatting.
Please Sign up or sign in to vote.
4 Apr 2013
psychohamster
This article will show you how to use the Sizable CheckBox control I have designed.
Please Sign up or sign in to vote.
24 Apr 2013
drewman5150
Simple jQuery ASP.NET Slideshow
Please Sign up or sign in to vote.
3 Jun 2013
LarryCharlton
Using system, named, and hex color values
Please Sign up or sign in to vote.
15 Jul 2013
Menelaos Vergis
FileLoadException in InitializeComponent.
Please Sign up or sign in to vote.
26 Jul 2013
LarryCharlton
Getting started with customizing the WPF DataForm.
Please Sign up or sign in to vote.
5 Sep 2013
Mike Meinz
Function returns exe name and command line for the provided filename and extension.
Please Sign up or sign in to vote.
5 Oct 2013
Farid Alkorashy
Windows OS Version Detector, detects more than 65 different versions of Windows OS
Please Sign up or sign in to vote.
6 Mar 2014
bradyguy
Outlook 2013 does not advance the current time in the calendar view; here is a hack fix.
Please Sign up or sign in to vote.
15 Mar 2014
Michael_Davies
Handling large numbers of application settings
Please Sign up or sign in to vote.
20 Apr 2014
Zhuyun Dai
Your build will fail if you print 'Error:' in your custom Build Events of Visual Studio.
Please Sign up or sign in to vote.
10 Jun 2014
Thava Rajan
This tip is used to fix a workaround for a bug in double click on checkbox
Please Sign up or sign in to vote.
8 Jul 2014
B.O.B.
How to get correct caret position from Textbox control
Please Sign up or sign in to vote.
19 Sep 2014
Shekhar Pankaj
Using Web Configs Key Value pair in classical Asp pages
Please Sign up or sign in to vote.
29 Oct 2014
Nosey Parker
Crafting on hex string
Please Sign up or sign in to vote.
15 Feb 2015
mozwizard
Out of frustration comes simplicity ...
Please Sign up or sign in to vote.
4 Apr 2015
BobishKindaGuy
Thread safe control displays status with icon according to type of message. Tutorial on sending messages around your application using delegates.
Please Sign up or sign in to vote.
19 May 2015
algor-AG
VBA : encrypted / password protected PDF for MS Office
Please Sign up or sign in to vote.
15 Jun 2015
jurhas
An algorithm for sort alphanumerical strings in their own natural way
Please Sign up or sign in to vote.
11 Aug 2015
Mike Meinz
This sample program demonstrates how to use Google Calendar API v3 to delete Google Calendar events, insert Google Calendar events and update Google calendar events based on a .CSV file exported from Calendar Creator.
Please Sign up or sign in to vote.
17 Nov 2015
PyroStrex
Example of loading external scripting and external XAML with VB.NET and NeoLua
Please Sign up or sign in to vote.
4 Aug 2016
Duncan Edwards Jones
How to clear out a partition in an Azure table
Please Sign up or sign in to vote.
31 Jul 2020
Juan F. Paleo
Map a DataReader from any database to a custom Class in your VB.NET Project and validate that content is "correct"
Please Sign up or sign in to vote.
13 Feb 2010
Pratik M Mahajan
'Call Date and Time Zone Property[Shell Script]'Tested in XP not on Vista'Take one button and write following code in its click event:Public Class Form1Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickShell("rundll32.exe...
Please Sign up or sign in to vote.
3 Mar 2010
byapparov
Introduction...
Please Sign up or sign in to vote.
16 Mar 2010
Ravi LVS
I don't see any difficulty in finding the above solution, because I am using same functionality since long back. Here is my alternative code.Instead of creating a new DataView object, you can directly call the DataTable's DefaultView.sourceDataTable.DefaultView.RowFilter =...
Please Sign up or sign in to vote.
4 Apr 2010
Anthony Daly
1 alternative  
Download source - 30 KBDownload library - 5 KBIntroductionThis set of Non-Repeatable Collections has a very simple concept - to only allow one item of each type to be added, meaning that you cannot have duplicate items in the collection.BackgroundAlthough the .NET Framework...
Please Sign up or sign in to vote.
5 Apr 2010
nan49
'All business logic access to the database can make use of this 'function if one is using a stored procedure.'--------------------------------------------------------------Public class classDbAccess#Region "DML OPERATIONS USING ORACLE STORED PROCEDURE" 'This take the necessary...
Please Sign up or sign in to vote.
14 May 2010
Dave5709
The Math.Round function in the Compact Framework only allows for ToEven behavior, not the AwayFromZero functionality as listed here:http://msdn.microsoft.com/en-us/library/system.midpointrounding.aspx[^]This code will allow you to emulate the MidpointRounding.AwayFromZero functionality of...
Please Sign up or sign in to vote.
14 Apr 2010
Joao Tito Livio
Introduction...
Please Sign up or sign in to vote.
10 May 2010
lidialee
1 alternative  
I have a report which can be viewed in Crystal Report viewer in VS. Client needs to generate a PDF file with a click of a button and the PDF should pop up upon finishing exporting and let the client decide where to save the file.'vb.netImports...
Please Sign up or sign in to vote.
10 May 2010
atverweij
The last part can be written much easier in VB:Private Sub msGPDF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles msGPDF.Click Dim Stream As IO.Stream = objRpt.ExportToStream(ExportFormatType.PortableDocFormat) Dim Buffer(CInt(Stream.Length)) As Byte ...
Please Sign up or sign in to vote.
8 Jun 2010
Johnny J.
1 alternative  
A VB conversion of a C# Transparent Label control
Please Sign up or sign in to vote.
21 Jun 2010
William Winner
Here's an alternate: a custom class that is serializable to store all of that in instead of a single string that you'd then have to parse.Or store it all in an XML file. There are plenty of object-oriented ways to go about this that would be much more readable than just storing it all in a...
Please Sign up or sign in to vote.
8 Jul 2010
Stefan Huy
VBA Hashtable Visual Basic Stack LIFO
Please Sign up or sign in to vote.
15 Jul 2010
jasonalls
SQL Server Express Membership API Provider Utility
Please Sign up or sign in to vote.
27 Sep 2010
Alan Burkhart
I'd never used String.Join before. Didn't even know it was there. :laugh: However, part of the idea is to skip all empty lines AND not end up with an empty string at the end (which my first code didn't address) AND insert the quotes. To get all this done with String.Join, it still took 8...
Please Sign up or sign in to vote.
27 Sep 2010
Willem Hijlkema
SQL Blob field into picture box
Please Sign up or sign in to vote.
6 Oct 2010
Prerak Patel
Pretty simple to ignore blank entries..Dim s As String = """" & String.Join(""",""", txt.SelectedTextt.Split(vbCrLf.ToCharArray, StringSplitOptions.RemoveEmptyEntries)) & """"
Please Sign up or sign in to vote.
24 Jan 2011
karenpayne
Returns all checked Checkbox controls in a Windows Form container
Please Sign up or sign in to vote.
14 Feb 2011
FZelle
You are both wrong with the DataAdapter.Why do you think there is an overload with the querystring and the connectionstring?public DataSet select_query(string query, string con_str){ try { using (SqlDataAdapter da = new SqlDataAdapter(query,con_str)) { ...
Please Sign up or sign in to vote.
14 Feb 2011
woric
The sample code provided by Andrew Rissing is a huge improvement over the original, but incorrectly catches the exception and displays a MessageBox. (Andrew correctly points out this is not a good idea.)A better solution is to allow the exception to fail:public DataSet...
Please Sign up or sign in to vote.
17 Feb 2011
TomQuinn
1 alternative  
A simple function used to determine if a file path refers to a network drive and if it does convert it to use the UNC path
Please Sign up or sign in to vote.
20 Feb 2011
Prerak Patel
Here is an API way using WNetGetUniversalNameImports System.Runtime.InteropServices _ Private Shared Function GetUName(ByVal Path As String, ByVal outName As Integer, ByVal bObj As...
Please Sign up or sign in to vote.
12 Sep 2011
ChunkyStool
In C#, I just call ToString to get the name. It's quicker and dirtier...namespace EnumTest{ using System; using System.Linq; enum ListOfChoices : int { Yes, No, Possibly, Never, Pass } class Program { ...
Please Sign up or sign in to vote.
29 Mar 2011
cechode
Sorry, but could not resist :)Being that we we started with select case (in the launge), I felt that this was missing both the initial condition and the action to perform for the case that got hit.So given this:static Action SelectCase(T conditionValue, List
Please Sign up or sign in to vote.
19 Sep 2011
marc9889
In response to the request to use a website (instead of a file), the pertinent code is shown below. Note that you will need to replace "www.somewebsite.com" with the website page that you want to capture the source code (HTML, for example) from.Dim webclient As System.Net.WebClient = New...
Please Sign up or sign in to vote.
30 May 2011
Brian Risley
How to do transaction scope exception handling.
Please Sign up or sign in to vote.
3 Jun 2011
Edgemeal
Here's another way. This saves the form's normal WindowState settings, so you can still save even if the form is minimized, and it can be used for any form. It also includes a sub to keep forms inside the desktop area.Check the Regpath string before using!...
Please Sign up or sign in to vote.
24 Jun 2011
FDW
I do think the approach is over complicated, but in some cases there may be (a small) benefit. As an alternative I would offer:First version (no common test):((Action)(() =>{ if (!Step1()) return; if (!Step2()) return;}))();Second version (common...
Please Sign up or sign in to vote.
29 Jun 2011
charles henington
I have used this in the past and have also posted as one of my tip tricks :-} One tip trick that I still like with CreateParams is changing parms.ClassStyle |= 0x200; to parms.ClassStyle = this.Handle.ToInt32(); which will render the form invisible which is much easier than overriding...
Please Sign up or sign in to vote.
29 Jun 2011
jwalker343
See a couple of Alternate ways & Original Thread here:Disable Close Button from Title bar of a Window[^]
Please Sign up or sign in to vote.
29 Jun 2011
Alexandros Pappas
Display of a context menu when pressing the Apps key in a DevExpress GridControl
Please Sign up or sign in to vote.
8 Jul 2011
Amey1202
In WPF, just set the ToolPanelView property of CrystalReportViewer to None. That is enough.
Please Sign up or sign in to vote.
25 Jul 2011
Mohammad A Rahman
Another way,public static class ReverseStringExtension{ public static string Reverse(this string dataToRevese) { Func reverseFunc = (dataToFunc) => { StringBuilder reverseBuilder = new StringBuilder(); for (int index =...
Please Sign up or sign in to vote.
26 Sep 2011
AspDotNetDev
The Silverlight WebBrowser won't navigate to some URL's, but this can be worked around.
Please Sign up or sign in to vote.
11 Jan 2012
THE BLACK TIGER
Thank you for this article, okay it's technical.But we can use other methods considered as more efficient. *For Microsoft SQL Server, we can use bulk copy program(bcp). The tool is embeddedwithin SQL server so you can invoke it inside your application - whatever language you use....
Please Sign up or sign in to vote.
18 Oct 2012
AspDotNetDev
C# version
Please Sign up or sign in to vote.
18 Jan 2012
Jepy
Replace the last 3 blocks of code with:String.Format("{0:x}", value)
Please Sign up or sign in to vote.
7 May 2012
andrewbb@gmail.com
Includes most API functions except for graphical ones.
Please Sign up or sign in to vote.
7 May 2012
Member1978
How to use Resources in Visual Studio.
Please Sign up or sign in to vote.
29 May 2012
db7uk
Region adapters in VB.NET
Please Sign up or sign in to vote.
5 Jun 2012
rnbergren
Gives a run down of how to sort parameters for sharepoint lists selections
Please Sign up or sign in to vote.
19 Jun 2012
Andreas Gieriet
This is an alternative for "Call Functions Until One Meets Condition"
Please Sign up or sign in to vote.
25 Jun 2012
wesamq
This article explains how you can identify any compatability issues for a legacy code written in VB, or any other language that produces TLB (Type Library) files for its interfaces.
Please Sign up or sign in to vote.
27 Jul 2012
Wendelius
This is an alternative for "Cumulating values with LINQ"
Please Sign up or sign in to vote.
28 Aug 2012
Curtis Hines
Convert EDI file terminators to CRLF
Please Sign up or sign in to vote.
1 Sep 2012
herves
This is an alternative for "Latitude and longitude"
Please Sign up or sign in to vote.
20 Sep 2012
ha_asgag
Using number systems in statistics
Please Sign up or sign in to vote.
19 Nov 2012
Santiago Santos Cortizo
How to resolve cached post problem with iPhone/iPad with iOS6 update.
Please Sign up or sign in to vote.
13 Feb 2013
KRISHNA PRASAD.N
This paper would provide a small code snippet which will report all files from VSS (Visual SourceSafe 6.0) with shared reference instances. It will be useful for migrating files from VSS to TFS.
Please Sign up or sign in to vote.
1 Mar 2013
dgDavidGreene
How to find and link config and other files from other projects within your solution.
Please Sign up or sign in to vote.
4 Mar 2013
Ajit Amare
Get the viewable text for your textbox.
Please Sign up or sign in to vote.
8 Mar 2013
joejames111
Hook to System Events without libraries or anything complicated.
Please Sign up or sign in to vote.
14 Mar 2013
Anshul R
Quick way to read RSS
Please Sign up or sign in to vote.
20 Mar 2013
umair zubairy
using Remote Attribute in MVC, vb.net
Please Sign up or sign in to vote.
20 May 2013
Dallas Adams
A DLL with a few classes and functions to provide data within Matlab on the elements from the periodic table.
Please Sign up or sign in to vote.
23 May 2013
terry_tldsb
A class using Win32 Unicode calls to handle file names/paths longer than 254.
Please Sign up or sign in to vote.
3 Jul 2013
Emmery Chrisco
Tabbed Browser Control addon
Please Sign up or sign in to vote.
18 Aug 2013
ARNOULT
Visual Studio 2010 Macro : Collapse all sections of code between 2 lines of comment
Please Sign up or sign in to vote.
3 Sep 2013
karenpayne
Using newer conventions of coding in VS2010 and higher
Please Sign up or sign in to vote.
24 Sep 2013
herves
This is an alternative for "Click or DoubleClick".
Please Sign up or sign in to vote.
14 May 2014
Markus Wallner-Novak
Short example of highlighting a grid row on textbox got focus
Please Sign up or sign in to vote.
22 May 2014
a_pess
ThreadSafe Generic List
Please Sign up or sign in to vote.
25 Jun 2014
SibeeshKV
Calling an ASMX webservice from other server using jquery and PHP
Please Sign up or sign in to vote.
17 Aug 2014
Alejandro Gaio
A simple solution to a serialization problem with IBindingList-implementer classes.
Please Sign up or sign in to vote.
20 Aug 2014
TheCardProject.co.uk
Quickly set up the ability to serve up several pages and record which was served in SQL Server
Please Sign up or sign in to vote.
22 Aug 2014
rmliu
Resize either images or canvas only, resize batch images
Please Sign up or sign in to vote.
7 Oct 2014
Nosey Parker
TcpClient.BeginConnect with timeout
Please Sign up or sign in to vote.
12 Nov 2014
Alexandros Pappas
Lists the files that are installed with Windows 7 on a Virtual PC
Please Sign up or sign in to vote.
3 Jan 2015
Emiliano Musso
How to save DataGrid column's properties for further re-use
Please Sign up or sign in to vote.
7 Feb 2015
Matthew8
A set of rules IPFW can pass or reject depending on the specific nature of the package.