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.
Question: I would like to be able to determine what resolution is seton a particular system so that my application opens up toa correct scale. Answer: Look at the Screen
Question: Not knowing that my hard disk was almost full, I tried to load a VB MAK file that I had created in VB3. When I did, a message said
Question: We want to use multiple VB forms with independent controls bound to independent data controls accessinga single table.In Vb 3.0, we are not able to save the controls dataof
Question: Can I use 16 bit .DLLs in VB 4.0 32 bit? Answer: No, you can’t. In order to access it, you’ll either have to recompile the DLL (and possibly
Question: Is there a way to keep VB4 from dimming the text in disabled controls boxes (i.e. Text and Labelcontrols)? I would Like to use my own Colors forText areas
Question: I have a series of text boxes, any subset of which can be used for input of numerical data, followed by a command box to “compute” from that input
Question: How can I make the combo box drop its list easily? Answer: On form load, do combo.additem , until allitems are placed into the combo list.To cause the combo
Question: I am a new VB programmer. I have been researchinginto VB programming using soom custom VBX’s for TCP/IPtype of stuff. I need to know if there is a book
Question: I’d like to create a floating window that has a small titlebar,like the VB toolbox window, for instance. In the VB FAQ,it says to see the sample program in
Question: How can I open a Word document from my Visual Basic application? Answer: Use the following code sample to do it:Set wordbasic = CreateObject(“word.basic”)wordbasic.fileopen pathname$, 0, 1where:pathname$ is the
Question: How do you command a button to go to another form, I put like follows:Sub Double_Click ( ) GoTo form2 EndEnd Sub OR Sub Double_Click ( ) Load form2
Question: I understand the basic concepts of computer programming including event driven apps. I have been browsing various Visual Basic sites looking for self teaching book recommendations. Since I’m new
Question: I’ve developed some applications on vb3 using some3rd-party VBXs, I now want to transport thoseapplications to vb4 for enhancement. Do anyutilities exist to convert those VBXs to OCXs? Answer:
Question: I am using VB 3.0 professional edition. I would like toimplement cut/copy/paste on a toolbar. My form has multipletext boxes. If the user wants to paste to a field,
Question: What is the fields object of the GetChunk method?I am trying to access a large (several meg) flatfixed record (160 ascii bytes per record) database and I thought the
Question: How do you copy entire directory structures with VB3, I’veread the -ONE- newsgroup article but it just lists them. Answer: Have you tried shelling to an XCOPY statement? It
Question: I got a game “SimTower”. In this game you can for exemple click on the picture with the office or hotel room, then you are clicking somewhere on the
Question: When designing a menu, how do I get an option (for examplehelp) – to appear on the RIGHT hand side of the menu bar. Answer: To position the Help
Question: How can I get the tables within an Access2.0database to show in a list box? The user willspecify a database in a text box and I want themto be
Question: Can you tell me if its possible to move the mouse cursor to a specific screen location and then return control of it to the user. If it is
Question: Why does MyDb.OpenTable(“My_Table”) not work with a Sybase database? I get the error “Invalid Argument” Err Num 3001. Answer: ODBC does not allow you to do an OpenTable on
Question: How can I query the login name of a Novell user from VB? Answer: Try this:un$ = space(255)unsize% = len(un$)a = WNetGetUser(un, unsize)MsgBox trim(un)The WNetGetUser API declaration is: Declare
Question: I need to run a menu option from Form1 that actualy executes amenu option on Form2. What I have had to do is show Form2 and use SendKey to
Question: How can I relate 2 or more records in one file to eachother? Answer: There are a few ways to do this. The main and most popular method is
Question: Is there a way to determine when your modem is connected and signed on to an Online Service such as MSN or America Online? I’ve tried using API calls
Question: I am a beginer in Visual Basic 3.0. I am trying to make a “Text Editor” program.Can you tell mehow to make “save” and “open” menus (using dialog box)I
Question: How can I pass my array to function as parameter? Answer: A declaration would be as follows:Sub Foo (ArrayVar() as String * 4)The call to it would be as
Question: How do I add scrollbars to a picture box control?i.e I want to be able to scroll through a picture box which containsmore than one screen of graphic and
Question: I am writing a program that searches a database and i am trying to use avariable for the WHERE clause. Can you Help me? here is an example:Data1.RecordSource =
Question: My question was in regards to installation. I would like to know if it is possible to run a VB program right from a floppy or CDROM without installing
n organized system for maintaining and delivering configuration information is an essential component of any enterprise software system. For small enterprises with only a few
pass along this cautionary tale, just in case, like me, you had considered a “change in life”. I’ve always enjoyed broad changes to technical infrastructure
n episode 217, Paul Randal from the Microsoft SQL Server team talked to us about CHECKDB, a built-in tool to check the integrity of SQL
ommerce occurs in Second Life whenever money changes hands. Money, in Second Life, is the Linden Dollar. Although the Linden Dollar is not an actual
The following code demonstrates how to convert a java.util.Date object to a java.sql.Date object: import java.sql.*;import java.util.*;public class cs{public static void main(String[] args) { GregorianCalendar
The Sizeof () operator only works at compile time and doesn’t evaluate anything at run time. In the following code snippet, the func() function is
NET 2.0’s System.Security namespace includes the SecureString class, which lets you create encrypted strings and delete them from memory when they’re no longer needed. You
nfrared communication is one of the most common forms of communication for devices today. If you’ve ever used a TV remote control, you’ve experienced the
nterprise Application Integration (EAI) is a collection of architectural principles combined to integrate new and existing applications both within the enterprise and in business-to-business or
ee if you can tell what’s wrong with the following sequence: ND, MN, WI, SD, NE, KS, MO, IL, IN. Unless you have a PhD
ny application you write may require some sort of caching to meet the performance requirements of the business. Until the release of Enterprise Library, developers
When sending emails via SMTP in .NET, developers seldom check to ensure the SMTP service is installed and running. Here’s some code to perform the