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.
In your apps, do the right thing: Use the computer’s Temp folder to hold your temporary files. To find that location, paste this code into the Declarations section of a
Occasionally you initialize a form but don’t load it. You might do this to read in initial application Registry values. After that, any references to control properties on the form
I needed a printed catalog of GIF images in a directory. So I wrote a routine that creates a new document, and inserts an image for each GIF file in
Are you dealing with strings you have to parse if you want to drop one special character or change it into another? Keep this trick in mind. Even though this
When you implement the Always on Top feature with VB forms using SetWindowPos and HWND_TOPMOST, message boxes are shown below the topmost form. To overcome this, you can use the
Question: I want to display the “Enter Network Password” box when a user accesses my site. I can display an ActiveX control on my HTML page (ObjectID Tag) but it
Question: How do I strip off leading zeros from data displayed from an ASP page? Answer: Use the FormatNumber function.If value = “0000046” Then FormatNumber(value,0) will result in 46. FormatNumber(value,2)
Question: How do I retrieve all the table names from an Access database using ASP? Answer: Make sure you have an ODBC DSN to point to your database. Then use
Question: I have a date field on my ASP page. I want to restrict the user for entering only the dates in his Windows 95 machine’s date format. How can
Question: When I create an ASP page that gets sent to the browser, if users press the refresh button they get a message asking to repost from old data. How
Question: How can I show a ‘Loading…’ message till my ASP page loads? Answer: Use the following code to create a “pgLoading.asp” page. Pass to it as a parameter the
Question: I am querying an Oracle field that comes back in the format of 25.5. Because this is a currency field, I’d like to manipulate it so that it shows
Question: I have a session variable that keeps track of a user name and is set through a login page. Every page in the application first checks for the session
Question: How do I create a directory in ASP? Answer: Use the ‘CreateFolder’ method of the FileSystemObject object. Set fs = Server.CreateObject(“Scripting.FileSystemObject”)fs.CreateFolder (“foldername”) Obviously, you need to have proper permissions
Question: I have been testing the delivery of ASP pages versus HTML pages and found that there is a considerable difference (ASP = 1 per sec / HTML = 187
Question: How do I generate numbers at the server end? I have an application in which I am accessing data from an Access database and I want to define each
Question: I am using Visual InterDev to create a data-driven Web application. How do I create an instance of a user-defined ActiveX component in Visual InterDev? I have created an
You can find many tips on how to center a window within the screen, but howabout centering a window in its parent container? The following code showsyou how to do
Sometimes it is useful to know if Swing is installed in a Java environmentor not, especially if you are dealing with browsers. You can simply try tocreate a Swing component,
Java WalletThe Java Wallet is a family of Java products designed to enablesecure electronic commerce operations. It incorporates the Java CommerceClient, Commerce JavaBeans components, the Gateway Security Model, and JavaCommerce
Question: Can you tell me which of these implementations is more efficient and why, assumming this function cannot be inlined and is called often? First option: int even( int &val){if
Question: How can I read only from one side of the decimal in VB6? I need to get .4286 from a value of 22.4286. I also need to know how
Question: In a VB application, I have multiple forms with data controls on each form which connect to a password protected Access database. Every form pops up a message stating
Question: I have been trying to change settings for the IIS server in order that I can set the flag to allow an out-of-process Active X EXE Server to be
Question: I’m porting a UNIX app to NT; one of the class hierarchies includes something like this: template class base{ // stuff};template class derived : public base, public base{ //
Question: When creating an input dialog box with JOptionPane.showInputDialog, isit possible to have a masking character, such as the * for password input? Answer: As implemented in the Sun JDK,
Question: What function do I use if I want to search a particular data store for the first letter of certain items? For instance, I have this list: olulekamtibookwi If
Question: How can I insert an item into different columns? Answer: To insert data into multiple columns, you use the same command as for single columns, except that in your
The usual way to append text to a TextBox or a RichTextBox control is to concatenate the current contents with the new string: Text1.Text = Text1.Text & newString Here is
To programmatically open and close the list portion of a ComboBox control, all you need is sending the CB_SHOWDROPDOWN message to the control. Here is a routine that encapsulate the
