|
TrimEx function using Regular Expression.
|
Total Hit (3167) |
Regular Trim function only removes preceding and trailing space but it does not remove all other white space characters e.g. New Line(\n), Carraige return(\r), Form Feed(\f), Tab(\t). To remove these characters you can easily implement function using Regular expression.
....Read More |
Rating
|
|
|
Case insensitive replace in .net
|
Total Hit (12049) |
Sounds easy right.... but sometimes it can take your entire day how to do that using String Replace method. By default .Net string operations are case sensetive. In order to do case insensitive you need to use Strings.Replace method this is another replace method provided for VB programmers.
«co
....Read More |
Rating
|
|
|
How to clear all controls of a winform or user control?
|
Total Hit (4232) |
Here is the small code snippet to clear most of all controls on your form. This code also take care of containers like group box, panel ... etc.
«code LangId=2»
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ClearControls(Me.Contr
....Read More |
Rating
|
|
|
|
Drag and Drop files/folders from explorer and display in listbox
|
Total Hit (4140) |
This code will show you how simple it is to get file/folder list dragged from explorer.
«b»Step-By-Step Example«/b»
- Create a Windows Application
- Add one ListBox control on the form
- Add the following code in form1
- Run the project and try to drag and drop some files into listbox from
....Read More |
Rating
|
|
|
|
|
|
Using "Date" intervals in VB.NET
|
Total Hit (2489) |
The versatile Date datatype in VB.NET provides a large amount of built in functionality to manipulate dates and times. The ability to add, subtract and compare date values is very useful in particular.
For example, suppose you are managing hundreds of clients in an insurance company. Since insu
....Read More |
Rating
|
|
|
Convert dates entered by user as strings to VB Date values.
|
Total Hit (3625) |
This code formats a date string entered by the user, adding slashes and correct number of year digits and converts it to a proper date format.
You can use the following code to make your user interface more friendly. It will help you in correcting and preventing mistakes over what date is entered.
....Read More |
Rating
|
|
|
How to create XP-Style Balloon Tooltip in VB.net (Updated)
|
Total Hit (36538) |
Using api you can create ballon style tooltip. You can also set various parameters for tooltip i.e. Delay, Visible Time, Style, Title, Description , Font, TextColor, BackColor etc...
Note: If tooltip is OnDemand ToolTip then VisibleTime and Delay Properties have no effect. To set VisibleTime and
....Read More |
Rating
|
|
|
|
A Complete guide to .net Framework
|
Total Hit (1669) |
The Microsoft .NET Framework is a platform for building, deploying, and running XML Web services and applications. It provides a highly productive, standards-based, multiple-language environment for integrating existing investments with next-generation applications and services, as well as the agili
....Read More |
Rating
|
|
|
How to do Asynchronous Loading of Data Without Threading.
|
Total Hit (3709) |
Sometimes we need to work with long running task but still we dont want to stop responding other events in this type of situation mostly we will think about implementing threading. But here is more easy way without implementing threading.
Today we will discuss about IAsyncResult class found in Sy
....Read More |
Rating
|
|
|
Convert DataReader to DataTable
|
Total Hit (3724) |
There is no direct way to convert dataraeader to datatable in ADO.net so I wrote this function which is really handy.
Happy Prpgramming...
|
Rating
|
|
|
HTML Color Coding for various Languages (i.e. VB, VB.net, SQL).
|
Total Hit (10643) |
I spent several hours to find some article to convert Source Code into HTML with different colorcode for keywords/literal/comment/function. But no luck and finally I wrote my own ColorCoding Engine. This article will show you how you can utilize power of Regular Expression to solve your very complex
....Read More |
Rating
|
|
|
|
|
Getting Started with ObjectSpaces
|
Total Hit (2120) |
ObjectSpaces is one of the exciting features coming in the new version of .NET Framework, codename "Whidbey". This article will explain what ObjectSpaces are and will provide a step-by-step guide to a first experience with ObjectSpaces.
|
Rating
|
|
|
How To: Host a Remote Object in a Windows Service
|
Total Hit (1275) |
Objects called using the .NET Remoting infrastructure can be hosted by ASP.NET, custom executables or Windows services. This How To shows you how to host a remote object in a Windows service and call it from an ASP.NET Web application.
|
Rating
|
|
|
|
Executing Custom Code During Installation
|
Total Hit (1525) |
An application can consist of not only traditional program files, message queues, event logs, and performance counters on the deployment destination but also custom code that must be executed on the deployment destination. You can configure your application to execute the custom code when your appli
....Read More |
Rating
|
|
|
|
|
Automatically Upgrade Your .NET Applications On-the-Fly
|
Total Hit (1204) |
Rich client, (or in .NET terminology, "Windows Forms") applications provide a great user experience in terms of functionality, usability, operating system and inter-application integration. Unfortunately, they have also suffered from a relatively high total cost of ownership compared to browser-base
....Read More |
Rating
|
|
|
|
|
Leverage Regular Expressions
|
Total Hit (1988) |
Regular expressions provide a simple and efficient way—far beyond the capabilities most conventional programming languages offer—to search and replace text. However, relatively few developers are familiar with this powerful tool. I'll explain how you can leverage regular expressions from VB.NET to s
....Read More |
Rating
|
|
|
|
Microsoft Beefs Up VBScript with Regular Expressions
|
Total Hit (1224) |
In this article, I'll describe all objects related to VBScript Regular Expressions, summarize common regular expression patterns, and provide some examples of using regular expressions in code.
|
Rating
|
|