In the below there are two methods that can be use to extract the file name from the full file path. Continue reading “Get the file name from the full path in VB.Net”
Tag: vb.net
Microsoft Visual Basic is simple, modern, general-purpose, object-oriented programming language, included in the Microsoft Visual Studio.
The latest version of Visual Basic .NET, which uses .NET framework 4.5. Async Feature, Iterators, Call Hierarchy, Caller Information and Global Keyword in Namespace Statements are some of the major features introduced in this version of VB. [Wikipedia]
Code snippet: Converting XmlElement to XElement and XElement to XmlElement in VB.Net
You can use the following functions to convert XmlElement to XElement and XElement to XmlElement in VB.Net. Continue reading “Code snippet: Converting XmlElement to XElement and XElement to XmlElement in VB.Net”
Create JSON string from the Dataset in C# and VB.Net
In this post I am describing a example by which you can create the JSON string from the datatable object. After creating the JSON from the datatable, You can use it on the client side through the JavaScript. Continue reading “Create JSON string from the Dataset in C# and VB.Net”
How to Create System Restore Point from VB.net
System Restore Point is a very useful feature of Windows Operation System. This is basically used when we got some issue with OS because of any new installation. By the help of this feature we can easily restored our OS with any previous date when this point was created (but we will lost all data which we save or installed after restored point date so be careful about it). Continue reading “How to Create System Restore Point from VB.net”
Render <, >, and & characters in Web Browser in Visual Basic
Some time When you need to use some characters as text like <,> and & in your web page, browsers understand these characters as the part of the html tags and they rendered incorrectly these characters unless characters are escaped as <, >, and & respectively.
This scenario is same in Web browser control in .net. Web browser also rendered these characters incorrectly.
See the following string:
Dim RenderString as String="Welcome to <Authorcode>"
For the correct rendering of above string, we need to encode this string. You can encode this string with the help of System.Web.Server.HtmlEncode() method.
Dim RenderString as String="Welcome to <Authorcode>" Dim EncodedString As String = Server.HtmlEncode(RenderString )
Server.HtmlEncode() method requires to import the System.Web assembly so add the reference this dll in your project.
How to delete the empty rows in datagridview
With the help of the following example you can remove the all empty rows in your datagridview control. Continue reading “How to delete the empty rows in datagridview”
Names of the various Data Types in Visual Basic .NET and Visual C#
Visual Basic and Visual C#, both have use the different syntax, here we can see the different names of the various data types in both languages. Continue reading “Names of the various Data Types in Visual Basic .NET and Visual C#”
Create Image Slide Show in vb.net
This article is the extension of the past article How to crate Image Thumbnails in vb.net( The article shows how to create a user control for viewing all images of the directory or folder in a thumbnail view). Continue reading “Create Image Slide Show in vb.net”
Get the list of all active visual Windows in vb.net
The Following code example demonstrate how we can bind a ListBox control with all active visual windows names in vb.net. Continue reading “Get the list of all active visual Windows in vb.net”
Early and Late Binding in Asp.Net
Early Binding
The Visual Basic compiler performs a process called binding when an object is assigned to an object variable. An object is early bound when it is assigned to a variable declared to be of a specific object type. Continue reading “Early and Late Binding in Asp.Net”