Atlanta Custom Software Development 

   Search        Code/Page
 

User Login
Email

Password

 

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

(Page 1 of 54) 1606 Result(s) found 

How to display Error Line Number in VB
Total Hit (686) In VB you can display error line number. Its little tedious job but it works fine. you have assign numbers to lines where you want to track error line number. These line numbers should be unique within function or sub.
Rating
Extract only Filename from path
Total Hit (713)
Rating
How to Convert Long File Name to Short File Name...
Total Hit (927) API Declarations «Code LangId=1» ' API Declare Private Declare Function GetShortPathName Lib "kernel32.dll" Alias "GetShortPathNameA" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long «/Code» Module «Code LangId=1» Public Function ShortName ....Read More
Rating
Count the number of files in a given directory
Total Hit (981) API Declarations «Code LangId=1» Option Explicit 'API constants Public Const MAX_PATH = 260 Public Const INVALID_HANDLE_VALUE = -1 Public Const FILE_ATTRIBUTE_DIRECTORY = &H10 'API types Public Type FILETIME dwLowDateTime As Long dwHighDateTime As Long End Type Public Typ ....Read More
Rating
Determinate the number of bytes in a given directory including the subdirectories
Total Hit (651) «code LangId=1»Option Explicit 'API constants Private Const MAX_PATH = 260 Private Const INVALID_HANDLE_VALUE = -1 Private Const FILE_ATTRIBUTE_DIRECTORY = &H10 'API types Private Type FILETIME dwLowDateTime As Long dwHighDateTime As Long End Type Private Type WIN32_FIND_DATA ....Read More
Rating
Enumerate the Ports available in the Local System or in a Remote PC using the EnumPorts API call
Total Hit (1069) API Declarations «Code LangId=1» Option Explicit 'API calls Private Declare Function EnumPorts Lib "winspool.drv" Alias "EnumPortsA" (ByVal pName As String, ByVal Level As Long, ByVal lpbPorts As Long, ByVal cbBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long Private Declare Funct ....Read More
Rating
Printing the contents of a picturebox, including (most) controls, to a printer
Total Hit (1569) API Declarations «Code LangId=1» Option Explicit Private Declare Function SendMessage Lib "user32.dll" Alias _ "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _ ByVal wParam As Long, ByVal lParam As Long) As Long Private Const WM_PAINT = &HF Private Const WM_PRINT = &H317 ....Read More
Rating
How to Paint a ScanBar CODE39 on Printer or PictureBox
Total Hit (715) «Code LangId=1»'Put this code at a module. 'Usage: PaintCodeBar39 Printer, Xpos, Ypos, BarsHeight, WidthFactor, Text, HumanRead ' Printer.EndDoc Public Type C39 char As String * 1 bar(1 To 5) As Boolean spe(1 To 5) As Boolean ' 5th space for character gap End Type Dim CODE39( ....Read More
Rating
Draw an horizontal line in the current position (like an HTML line)
Total Hit (546)
Rating
Print a text in a specific position, if you don't indicate the x or y parameter the current position will be used
Total Hit (671)
Rating
Indicates if the new print operation will go out of the Page
Total Hit (617)
Rating
Print a Text with a specific alignment (left, Right or Center)
Total Hit (801) Module «Code LangId=1»Public Sub PrintAlignedText(s As String, Alignment As AlignmentConstants) Select Case Alignment Case vbCenter Printer.CurrentX = (Printer.ScaleWidth - Printer.TextWidth(s)) \ 2 Case vbLeftJustify Printer.CurrentX = 0 Case vbRightJustif ....Read More
Rating
Get the Number of Waiting Jobs of a specified Printer on your network
Total Hit (2299) API Declarations «Code LangId=1» Option Explicit 'Constants Definition Public Const CCHDEVICENAME = 32 Public Const CCHFORMNAME = 32 Public Const PRINTER_ACCESS_ADMINISTER = &H4 Public Const PRINTER_ACCESS_USE = &H8 'Types Definition Public Type DEVMODE dmDeviceName As String * C ....Read More
Rating
Print a Text File
Total Hit (737) Module «Code LangId=1» Option Explicit Public Sub PrintTXTFile(FileName As String) Dim x As Integer Dim s As String x = FreeFile On Error GoTo HandleError Open FileName For Input As x Do While Not EOF(x) Line Input #x, s Printer.Print s L ....Read More
Rating
Get the Default Printer
Total Hit (2439) API Declarations «Code LangId=1» Option Explicit 'MS Windows API Function Prototypes Private Declare Function GetProfileString Lib "kernel32.dll" Alias "GetProfileStringA" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVa ....Read More
Rating
Print an Image contained in a Picture Box or a Form
Total Hit (574) Module «Code LangId=1» 'Print the Picture contained in a PictureBox or a Form Public Sub PrintImage(p As IPictureDisp, Optional ByVal x, Optional ByVal y, Optional ByVal resize) If IsMissing(x) Then x = Printer.CurrentX If IsMissing(y) Then y = Printer.CurrentY If IsMissing(resiz ....Read More
Rating
How to Print a Multiline TextBox with Alignment!
Total Hit (1948) API Declarations «Code LangId=1» 'Add this to your Declarations Section: Public Declare Function SetTextAlign Lib "gdi32.dll" (ByVal hdc As Long, ByVal wFlags As Long) As Long Public Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wmsg As Long, ByV ....Read More
Rating
How to Kill Process by name in Windows XP/2003/2k
Total Hit (868) Here is the most easiest way to kill running process in WinXP/2003 «code LangId=1» Private Sub Command1_Click() KillProcess "notepad.exe" '//Replace with ur process name to kill End Sub Function KillProcess(ProcessName As String, Optional strComputer As String = ".") Dim objProces ....Read More
Rating
How to read image Width and Height in Pixel (Works in VB, ASP, VBScript)?
Total Hit (989) You can use the following code to read image height and width in pixels. If you want to use this code in ASP or VB Script then you have to compile the code in to DLL and then you can call CreateObject Method. <b>Steps if you are using in ASP/VBScript</b> - Create an ActiveX DLL project - R ....Read More
Rating
How to add path to the PATH environment variable using VB/VBScript
Total Hit (1407) Many times we need to add application path to the existing environment PATH variable. This can be very tedious job if you have to do for several machine. I came up with some handy script which makes my life easy and hopefully you can use too. The sample code was used in VB6 but you can use it wit ....Read More
Rating
How to read data from Excel file
Total Hit (1084) Many times we have requirements to load data from CSV file, text file or Excel file... In this article I will show a sample code which reads a specified rows and columns from excel file. «code LangId=1»Private Sub Command1_Click() ImportExcelToSQL "c:\temp\diamond_upload.xls", 0, 20, True ....Read More
Rating
How to move/resize window using API?
Total Hit (2136) «code LangId=1»Private Const SWP_SHOWWINDOW = &H40 Private Const SW_HIDE = 0 Private Const SW_RESTORE = 9 Private Declare Function ShellExecute Lib "shell32.dll" _ Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _ ByVal lpFile As String, ByVal lpParameter ....Read More
Rating
How to test CDO email using VB Script.
Total Hit (1668) Sometimes we need to check CDO on the server with minimum amount of time. Following script will send an email using CDO object library. If you dont have CDO then it will throw an error. - Create an empty file in notepad. - Copy/Paste the following script - Save file as CDOMailTest.vbs - Do ....Read More
Rating
Get list of installed ODBC drivers using ODBC API.
Total Hit (2405) Here is a small code snippet to list all installed ODBC Drivers (name and attribute). On my machine I got the following output. «code LangId=0» SQL Server UsageCount=3 : SQLLevel=1 : FileUsage=0 : DriverODBCVer=02.50 : ConnectFunctions=YYY : APILevel=2 : CPTimeout=60 -------------------------- ....Read More
Rating
Get List of User/System DSN on your local machine using ODBC API
Total Hit (2041) «b»Step-By-Step Example«/b» - Create a standard exe project - Add the following code in form1 - Press F5 to run the project «code LangId=1»Option Explicit Private Declare Function SQLDataSources Lib "odbc32.dll" _ (ByVal hEnv As Long, _ ByVal fDirection As Integer, _ ....Read More
Rating
Very simple Encryption/Decryption code using VB
Total Hit (926) This code will show you how to encrypt/decrypt a string. Copy/Paste the following code in your VB form and press F5 to run. «code LangId=1»Const ENCRYPTION_KEY = "MySecreteKey123" Private Sub Form_Load() Dim txt As String, enctxt As String txt = "Your password is : asd$223" ....Read More
Rating
This is a link to a different site How to create folder on remote machine using WMI
Total Hit (342) Hey, AN. Life is full of mysteries. To name one, what possessed somebody to think that the world was clamoring for Clamato juice, an unholy concoction combining tomato juice and clam juice? (As long as we’re on the subject: clam juice?) To name another, why is it that neither the FileSystemObject no ....Read More
Rating
This is a link to a different site How To Enable ODBC Connection Pooling in a Visual Basic ADO Application
Total Hit (1074) By default, ADO uses OLEDB session pooling to maintain a pool of connections to the database. In some cases, you might want to use ODBC connection pooling instead of OLEDB session pooling. This article describes what is necessary to enable ODBC connection pooling from a Visual Basic/ADO application. ....Read More
Rating
This is a link to a different site How To Use ADO with Excel Data from Visual Basic or VBA
Total Hit (338) This article discusses the use of ActiveX Data Objects (ADO) with Microsoft Excel spreadsheets as a data source. The article also highlights syntax issues and limitations specific to Excel. This article does not discuss OLAP or PivotTable technologies or other specialized uses of Excel data. ....Read More
Rating
This is a link to a different site How To Transfer Data from ADO Data Source to Excel with ADO
Total Hit (573) Because Microsoft Excel is such a powerful data analysis tool, Visual Basic and VBA application developers often want to bring data into an Excel worksheet for analysis purposes. This article describes the ActiveX Data Objects (ADO) approach to this programming task, using Microsoft Jet-specific syn ....Read More
Rating


(Page 1 of 54) 1606 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   |  Blogs

© 2008 BinaryWorld LLC. All rights reserved.