devxlogo

The Latest

Shortcuts to useful VS.NET’s commands

Visual Studio .NET has a number of useful features that are often underused by developers, because they are hidden under several menus and not easily accessible. Here is a list

Hey Kids! Let’s Build a Commercial Mobile App!

When I was asked to provide the next installment of the BREW Intro Series, I wrestled with various content ideas. I didn’t want to write another “Hello BREW” application, simply

Retrieving NTFS Permissions with C++

icrosoft originally designed NTFS (New Technology File System) for its NT series of operating systems. Over time, NTFS was improved and it is now being used on the newer server

Get the Current Directory

The program is used to display the current and parent directory. ‘.’represents the current directory and ‘..’ represents the parent directory import java.io.File; public class CurrentDir { public static void

Breaking Data Hiding

It is said that C++ provides data hiding, but the following code shows that this is not always true. You can break the C++s data-hiding facility using the memory function:

Get the Maximum Value Across Columns in TSQL

There is no TSQL function for extracting maximum values across columns. However, you can use MAX() and MIN() functions to obtain the maximum or minimum value in any particular row.

Shake the Screen

Related Posts this is test headerApple watch series 9 price dropsInfinite Heap in JavaWhat Makes a Modern Catalog Stand Out?Small Business Strategies with Venmo

IsKeyPressed – Check whether a key is pressed

Private Shared _ Function GetAsyncKeyState(ByVal key As Keys) As IntegerEnd Function’ Check whether a key is pressed, at any given time’ Example: MessageBox.Show(IsKeyPressed(Keys.A))Function IsKeyPressed(ByVal key As Keys) As Boolean Return

GetMdacVersion – Retrieve the installed MDAC version

‘ Retrieve the installed MDAC version” Examples:’ Dim ver As Version = GetMdacVersion()’ ‘ print the full version’ MessageBox.Show(ver.ToString())’ ‘ print the major and minor portions’ MessageBox.Show(“Major: ” & ver.Major

The Debug and Release Check Technique

Assertions are excellent at catching bugs during development. However, some checks need to be performed at runtime for production code as well. A good way to wrap the two is

Disable the Right Mouse Click

The following code disables right mouse click. Related Posts Using Aliases for Namespaces in C#Impove Your Network Efficiency with this AlgorithmMicrosoft agrees to suspend CISPE software auditsZeroAvia completes $150M Series

Use Interfaces to Increase Source Code Flexibility

Where possible, use interfaces (as opposed to interface-implementation classes) to increase your source code’s flexibility. If you later need to change an interface-implementation class (to improve performance, for example), it’s

Copy Filenames to a Clipboard

File hierarchies are becoming more complex and file paths longer as the capacity of hard drives increases. There are still many occasions, however, when you can’t browse to identify a

Take a Quick Look at a File

The Windows Script Host (WSH) supports many useful features, including VBScript’s FileSystemObject object and the ability to drag and drop filenames. You can drag and drop a data files icon

Practical XML for Java Programs

he true raison d’The Dos and Don’ts of XMLXML is a universal format for transferring hierarchically organized data. When properly formatted, XML documents are readable, self-explanatory, and platform-independent. In practice,

You Just Can’t Kill Visual Basic

or a decade people have been predicting the demise of Visual Basic, and with VB.NET, nothing has changed. According to one recent report, the future of VB.NET is threatened competitively

SetProperty – Setting a property via reflection

‘ Set a property via reflection and return True if successful’ Example: SetProperty(Button1, “Text”, “Click me”)Function SetProperty(ByVal obj As Object, ByVal propertyName As String, _ ByVal val As Object) As

GetProperty – Reading a property via reflection

‘ Read a property via reflection or return a default value’ Example: MessageBox.Show(GetProperty(Button1, “Text”, “”))Function GetProperty(ByVal obj As Object, ByVal propertyName As String, _ ByVal defaultValue As Object) As Object