devxlogo

Tip Bank

ObjectInputStream Constructor

Question: How do I use the socket.getInputStream() with theObjectInputStream? Because the arguement type of the ObjectInputStream constructor is FileInputStream. I like to do something like:remoteIn = new ObjectInputStream(socket.getInputStream()); What should

Wait for 1 second

Question: I have a place in my Active Server Page script (VBScript) where I’d like to wait for 1 second before performing an action. What can one do to cause

Percent Bars with the Windows 95 Look

Question: How do you make a percent bar with the Win 95look and feel? I know that you can make a percentbar using a picture box, but I am trying

Calculating the Records

Question: Can you help me to get a calculated value from many records? A dataset(Paradox table) that I use has an Integer field which is used to put minutes value.

Counting Work Days

Question: I need to calculate the number of workingdays. Is there an easy way to do this? Answer: From what I can see, there is no built-in function to do

Setting Environment Variables in VB

Question: My 16bit application requires the presence of a DOS environment variable. On startup I check for it. If it does not exist I display an error. I would like

Binary Files

Question: I’ve read your article on text files. However I would like to know how one achieves the same functionality with binary files(i.e. How do you read in a binary

Text area & cursor control

Question: Hi, I am looking for a way of displaying a textareabox and then being able to tell what text the userhas highlighted (with mouse) and then replacing thetext? Can

non-blocking read

Question: How do I control blockingin Java. For example, in telnet Iwould like to take an actionif the user presses a certainkey. This requiresnon-blocking read; I think? Answer: It is