devxlogo

Tip Bank

DevX - Software Development Resource

Network Protocols — NetBeui

Question: What would happen if I removed the basic NetBeui protocol on an NT network and enabled TCP/IP as the lone and default one? Is that advisable? Answer: As with

DevX - Software Development Resource

Copy to Clipboard

Question: I want to copy some text in an HTML page to the clipboard when a button is clicked. Is there a method to do this in an onClick event?

DevX - Software Development Resource

Passing Arrays

Question: Can you pass an array directly into a cookie file, or do you have to convert it to a string first? If you have to convert it to a

DevX - Software Development Resource

NT 4.0 Resource Kit

Question: I have been told that the NT 4.0 Resource Kit has a tool to turn an executable, such as one created in VB5, into a service running on NT

DevX - Software Development Resource

Set Printer Margins

You can use the Printer’s scale properties to set margins. Set the properties so the position (0, 0) is mapped to where you want the margins. This code makes the

DevX - Software Development Resource

Make a Form Stay on Top

You can make a form always remain above others, even when it does not have focus. Use this code in a BAS module: #If Win16 Then Declare Sub SetWindowPos Lib

DevX - Software Development Resource

Perform One-Time Initialization

You can use static variables to perform one-time initialization: Private Sub GetValue()Static initialized As Boolean If Not initialized Then ‘ Perform one-time initialization. : initialized = True End If ‘

DevX - Software Development Resource

Use Explicit Object Types for Speed

It is much faster to use explicit object data types instead of generic ones. In this test that simply sets an object’s public variable, the generic object takes more than