Atlanta Custom Software Development 

   Search        Code/Page

User Login



Forgot the Password?
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
VB VB (1648) (736)
C# C# (15) (779)
ASP ASP (41)
VC++ VC++ (25)
JScript JScript (5)
» SQL Server (708)
» ORACLE (5)
» MySQL (0)
» DB2 (0)
» C/C++/ASM (11)
» Microcontroller (1)
» Circuit Design (0)
» Networking (5)
» Unix/Linux (1)
» WinNT/2k/2003 (8)
» Flash (0)
» Maya (0)
» 3D max (0)
» Photoshop (0)
» (2)
» PC Interfacing (1)
» Networking (4)
» SQL Server (4)
» VB (23)
» (4)
» VC (3)
» HTML/CSS/JavaScript (10)
» Regular Expr Tester
» Free Tools

(Page 9 of 133) 3985 Result(s) found 


Sending Email Using CDO and MAPI
Total Hit (3294) Sending emails via code used to be cool, but now it is a necessity. Below is code to send email via CDO. If the CDO call fails, it will send using MAPI. NOTE: You must have CDO for NT referenced in your project for this to work. «Code LangId=1» ' Sends an email to the appropriate person(s) ' ' ....Read More
Make a phone call using TAPI
Total Hit (3819) If TAPI libraries are installed on your machine, you can easily dial a number from a VB application using a single API call. Here's a function that encapsulates the call and that returns True if the dialing was successful: «Code LangId=1» Private Declare Function tapiRequestMakeCall Lib "TAPI32. ....Read More
Always ensure that a printer is installed
Total Hit (2225) Many developers incorrectly assume that a printer is always installed on their customers' machines, and therefore omit to check that this is actually the case. The following function, deceiptively trivial, returns False and displays an error message if no printer has been installed: «Code LangId= ....Read More
Display the Connect To Printer dialog
Total Hit (4140) Under Windows NT you can programmatically display the Connect To Printer dialog using one simple API function: «Code LangId=1» ' This works only under Windows NT and 2000 Private Declare Function ConnectToPrinterDlg Lib "winspool.drv" (ByVal hWnd As _ Long, ByVal flags As Long) As Long ....Read More
Create and delete DSN at runtime
Total Hit (7937) If you're developing a VB database application, you're probably using a DSN (data source name) because it makes the access to your database file easier. Of course, when you distribuite your application, you must create the DSN. There are some installation programs that offers the possibility to ....Read More
Export DAO databases to any ISAM format
Total Hit (2499) Everyone tells you how to import, but even MS-VB techs start coughing when you ask how to export with DAO! In fact, their own documentation clearly states that it can not be done (see the note on page 314 of Jet Database Engine Programmer's Guide's "Creating an External Table"). To that statemen ....Read More
Unrecognized Database Format Error Message with Access 2000 Databases
Total Hit (2034) The standard DAO Data control is designed to work with the Jet 3.5 Engine, whereas Access 2000 database can be accessed only by the more recent Jet 3.6 engine. For this reason, any attempt to access an Access 2000 database using the standard DAO Data control, as well as regular DAO commands, is doom ....Read More
Get the list of ODBC drivers
Total Hit (3517) The ODBCTOOL.DLL library contains three functions that make it easier to manage DSNs. To run the following code you must add a reference to the "ODBC Driver & Data Source Name Functions" library to your References dialog box. If you don't find this library listed in the References list, use the Star ....Read More
Get the list of ODBC DSNs (Using ODBCTOOL.DLL)
Total Hit (6533) The ODBCTOOL.DLL library contains three functions that make it easier to manage DSNs. To run the following code you must add a reference to the "ODBC Driver & Data Source Name Functions" library to your References dialog box. If you don't find this library listed in the References list, use the Star ....Read More
Read and write File ODBC data sources
Total Hit (3634) A file DSN is nothing but a text file that contains all the parameters for an ODBC connection. To prove this, just go to the default directory that holds all File DSNs (this is the \Program Files\Common Files\ODBC\Data Sources directory on Windows's boot drive) and load any .dsn file into a text edi ....Read More
A dual use of a lookup query
Total Hit (1918) Usually in your application you use two different types of lookup query; the first one is for retrieving a page of records (or all records) to populate a pick list, the other one is to retrieve a single record, i.e. for decoding a code description while user is typing it in a textbox. So, if your qu ....Read More
Connect a stand-alone Recordset to a database using XML
Total Hit (2827) If you are familiar with the ADO capability to create stand-alone Recordsets from the thin air, that is by adding items to their Fields collection, you're also probably aware that this feature has a serious shortcoming: you can't then connect to a database and perform any batch updates. The problem ....Read More
Create explicit Field objects when looping on large Recordsets
Total Hit (1980) Whenever you access a database field through the Recordset object you incur in a slight overhead. Take for example the following code snippet: «Code LangId=1» Dim rs As New ADODB.Recordset rs.Open "SELECT au_lname, au_fname FROM authors", "DSN=pubs", , , adCmdText Do Until rs.EOF List1. ....Read More
Create UDL files the easy way
Total Hit (1644) The standard way to create a UDL file is to right-click in the directory where you want to create it and select the New-Microsoft Data Link menu command. Unfortunately, on many computers, this manual procedure won't work, because the file type "Microsoft Data Link" does not appear on the "New" menu. ....Read More
Determine whether the IDE is in design, break, or run mode
Total Hit (1743) The VBIDE object model doesn't offer any native property or method to determine whether the IDE is in design-time mode, run-time mode, or debug (break) mode. However, it's easy to deduct this information by looking at the Enabled property of the menu commands in the Run top-level menu: «Code Lang ....Read More
Determine the RecordCount of a forward-only Recordset
Total Hit (2491) When working with a forward-only, read-only Recordset - that is, the default ADO Recordset - the RecordCount property always returns -1. (This can also happen with other types of server-side cursors, depending on the specific OLEDB provider.) In general, you can determine how many records were retur ....Read More
Saving and restoring all IDE settings
Total Hit (1842) At times you'd like to save all the current settings of the Visual Basic environment and restore them afterwards. For example, you may want to alternate between the MDI environment with the code editor using Courier New 12 and the SDI environment with Arial 14. Or you may want to dock a different se ....Read More
Where on Earth is an Add-ins's Description
Total Hit (1721) Every now and then someone asks me "How can I modify the default description that is associated to an add-in I have written and that appears in the Add-In Manager? I tried to modify the Project's Description attribute, but it didn't work". The answer is simple, even though this detail is not doc ....Read More
Determine how many records the DataReader is about to return
Total Hit (1597) The DataReader is the ADO.NET counterpart of the forward-only, read-only recordset in classic ADO. For this reason you never know how many rows the DataReader is about to return. In most cases you don't need this information, because you tipically process each row as soon as it is being returned, an ....Read More
A better beep
Total Hit (3259) If you aren't satisfied with the standard Beep command (who is?) you can use the Beep API function instead, that lets you control both the frequency (in Hertz) and the duration (in milliseconds) of the beep. Note that you need an aliased Declare to avoid a name conflict with the VB command: «Code ....Read More
Register and unregister components with context menus
Total Hit (2467) The stardard method to register and unregister ActiveX component is running the REGSVR32 utility, which forces you to bring up the Start|Run dialog and manually type the command line. A much better approach is to have the Register and Unregister commands right in the context menu that appears when y ....Read More
Register and unregister type libraries
Total Hit (2722) All COM-oriented VB developers know how to register and unregister an ActiveX DLL, using the REGSVR32 utility. However, there is no such an utility to register and unregister a type library. You can quickly build your own TLB Registration utility with a handful of statements, thanks to the undoc ....Read More
Saving a MSChart image to file
Total Hit (4986) To save to file the graph generated by a MSChart control, you must use the control’s EditCopy method to copy the image into the clipboard, and then paste it into a PictureBox control. Then, just use the SavePicture function to save the PictureBox’s content to file. Here’s an example: «Code LangId ....Read More
Understanding interface marshaling
Total Hit (2988) There is quite a lot of misunderstanding among COM newbies about what really happens when a COM interface is passed as a method parameter. As in most of the cases, VB programmers are protected from a lot of details on the COM run-time, but you do have to know such details if you want to assemble som ....Read More
Combine Default attribute with other attributes
Total Hit (2625) When building an ActiveX control, you can set a default property or method using the Procedure Attributes dialog box, after clicking on the Advanced button. However, if your default property also happens to require another special attribute - as is the case with Caption and Text properties-you're in ....Read More
Detect when a new control is added to an ActiveX container
Total Hit (2028) You can easily create ActiveX controls that work as containers for other controls, by setting their ControlContainer property to True. However, VB doesn't offer any event for detecting when the programmer adds or remove controls to the ActiveX control, after placing it on a form's surface. It's p ....Read More
Use Enums to restrict parameter values in Classes, ActiveX Controls and DLLs
Total Hit (2268) By defining a Public Enum and using it as a parameter type to your property or function, client applications are presented with a drop down list of values to use. Unfortunately, VB doesn't restrict the client from passing something other than one of your enumerated values, since all Enums are Longs. ....Read More
Count number of words with the RegExp object
Total Hit (3084) A Visual Basic function that counts the number of words in a sentence or text file can become quickly very complex, and usually doesn't execute fast enough for most purposes. Thanks to the RegEx object that comes with the Microsoft VBScript Regular Expression type library, this task becomes trivial. ....Read More
Create a better InStr function with VBScript regular expressions
Total Hit (13338) Regular expressions offer an extremely powerful way to search and replace text inside a string using sophisticated search criteria, far behind the capabilities of VB's InStr and Replace functions. For example, you can search for whole words, or find a match with a range of characters (for example, a ....Read More
Send HTML Email via CDO
Total Hit (3335) Ever wonder how to send email that looks like a web page? Here is how you do it. Note: You must have CDO for NT referenced for this to work. «Code LangId=1» 'Sends an email to the appropriate person(s). ' 'From = Email address being sent from 'SendTo = List of email addresses separated by a s ....Read More

(Page 9 of 133) 3985 Result(s) found  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ...

Recommanded Links


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.