devxlogo

We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

Create Custom Cursors in Swing

Sometimes the provided Swing cursor types just don’t meet the needs of your application. In those cases, you may want to consider creating your own, completely customized cursor. To add

Executing a Member Function Before main()

We can execute any member function or any other execution before main() function by using: “#pragma startup”.Syntax: #pragma startup [priority]//without semicolon Example: #includeclass CL{public: //A constructor CL(){ cout ” The

A Fast Multiplication Method for Integer Numbers

The multiplication operation for integer numbers is implemented in the processor as repeated additions. The number of additions can be reduced by considering the representation in base 2 of the

Bind a DataGrid to a DataSet at design-time

Binding a DataGrid – or any other data-aware control – to a DataSet or a DataTable at runtime isn’t difficult: you just have to assign the DataTable to the DataGrid’s

Quickly swap assignment operands

It often happens that you need to swap the operands of an assignment. For example, say that you have this set of assignments: p1.FirstName = m_FirstNamep1.LastName = m_LastName and later

Transform a variable into a Property

Thanks to Visual Studio.NET macros, it is quite simple to automate the task of transforming a Public field into a Property with the same name that accesses a private field

Running ILDASM from inside Visual Studio .NET

Nothing beats ILDASM when it’s time to understand what your VB.NET or C# compiler actually emits. In this case you should prepare a desktop shortcut to ILDASM so that you

Write a console utility to list processes

The Process class provides all you need to create a command-line utility that lists all the processes running on the system and all the related information. This utility is therefore

Write a console utility to kill a process

The System.Diagnostics.Process class exposes two methods that let you kill a process: CloseMainWindow should be used with processes that have a graphical interface, whereas the Kill method should be used

Wait for a process to terminate

You can use the VB.NET Shell command (in the Microsoft.VisualBasic namespace) to run an external process and wait for its termination, but you can get better control if you work

FormatMemorySize – Format a value in bytes

Enum FormatMemorySizeUnits BestGuess Bytes Kilobytes Megabytes GigabytesEnd Enum’ convert a number of bytes into Kbytes, Megabytes, or GigabytesFunction FormatMemorySize(ByVal value As Long, _ ByVal unit As FormatMemorySizeUnits, Optional ByVal decimalDigits

FormatValue – Format a value in a column of given width

Enum FormatColumnAlignment Left Center RightEnd Enum’ format a value in a column of given width and with specified alignment’ using the specified pad character Function FormatValue(ByVal value As String, ByVal

How to improve performance with pinned tables

SQL Server experts know that the DB engine never accesses directly the data pages on disk; rather it uses a special module called “Cache Manager”. It is possible, by using

Determine the size of a structure

Unlike previous Visual Basic versions, under VB.NET you can’t use the Len function to calculate the length of a Structure or a class. However, it is easy to get this

Store large Boolean arrays in a BitArray object

.NET Boolean values require 4 bytes each, as opposed to the 2 byte taken under previous VB versions. When creating very large Boolean arrays this extra memory impacts negatively on

Release COM objects earlier

If you’re using a COM object through COM Interop you should be aware that the object isn’t released as soon as you set it to Nothing, as it happens with

Count the Number of Elements in an Array

This function computes the number of elements of any one-dimensional array?it sure beats ripping open the SAFEARRAY array descriptor. Use it when you