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 (1648)
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 47 of 54) 1607 Result(s) found 

 

EmptyRecycleBin - Delete all files in the Recycle Bin
Total Hit (1982)
Rating
AreaFill - Fill an area with a solid color
Total Hit (3880)
Rating
DrawSystemIcon - Draw a system icon on any device context
Total Hit (3195)
Rating
ListboxToArray - Retrieve an array of strings from a ListBox or ComboBox control
Total Hit (1613) «Code LangId=1» ' Returns a string array containing all the elements ' of the specifid ListBox or ComboBox control ' ' Example: ' Dim strArray() As String ' strArray = ListBoxToArray(Combo1) Public Function ListBoxToArray(ctrl As Control) As String() Dim index As Long ' ....Read More
Rating
MakeFileName - Create a file name out of its parts
Total Hit (1803) «Code LangId=1» ' Make a complete file name by assemblying its individual parts ' if Extension isn't omitted, it overwrites any extension held in BaseName Function MakeFileName(Drive As String, Path As String, BaseName As String, _ Optional Extension As String) ' add a trailing col ....Read More
Rating
CBitArray - a class for dealing with large arrays of Boolean
Total Hit (2299) «Code LangId=1» ' ------------------------------------------------------------------------ ' The CBITARRAY class ' ' simiulates an array of Boolean values ' saves memory by packing one element in one bit ' ' IMPORTANT: you make make ITEM the default member for this class ' do ....Read More
Rating
HasDuplicateValues - Check if an array has duplicate values
Total Hit (2499) «Code LangId=1»' Returns True if an array contains duplicate values ' it works with arrays of any type Function HasDuplicateValues(arr As Variant) As Boolean Dim col As Collection, index As Long Set col = New Collection ' assume that the array contains duplicates HasDu ....Read More
Rating
Log10 - Base-10 logarithm
Total Hit (1645) «Code LangId=1» ' Base 10 logarithm Function Log10(number As Double) As Double Log10 = Log(number) / 2.30258509299405 End Function «/Code»
Rating
NZ - Check whether a value is Null
Total Hit (1689) «Code LangId=1»' Check if a value is Null. If not it returns the value, ' otherwise it returns the ValIfNull argument, or zero/null string ' if the second argument is omitted ' ' This function is patterned after the Access function with the same name. Public Function NZ(CheckVar As Varian ....Read More
Rating
Listing all available SQL Server
Total Hit (2176) Thanks to the SQL-DMO object model, it's very easy to list all the available SQL Server 7.0 installations. For example, this code loads all the SQL Servers registered on the local machine into a ComboBox control: «Code LangId=1» ' NOTE: this code assumes that you've added a reference to the ' ....Read More
Rating
Launch the default browser on a given URL
Total Hit (3942) The following routine launches the default browser and loads the specified URL in it. The argument doesn't have to include the HTTP:// prefix. If the operation is successful it returns True. «Code LangId=1» Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _ (B ....Read More
Rating
Implement password-protected TextBox that are really secure
Total Hit (2906) As explained in another tip in this TipBank, users can peek at the contents of password-protected TextBox controls with a simple Spy-like program, or even with a VB program plus some API functions. The problem is that such TextBox controls react to the WM_GETTEXT message and the GetWindowText API fu ....Read More
Rating
Return a Dos error code on exit
Total Hit (2164) At times you may want to return a Dos ErrorLevel when closing your VB application. This can be necessary, for example, if the EXE is meant to be called from a batch file. Exiting the program with an error code is really simple, and requires only a call to the ExitProcess API function: «Code Lang ....Read More
Rating
Saving a MSChart image to file
Total Hit (5797) 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
Rating
Count number of words with the RegExp object
Total Hit (3772) 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
Rating
Download and save an HTML page with the Internet Transfer control
Total Hit (2799) You can easily download an HTML page by using the Internet Transfer Control (INet). Here's a reusable routine that uses this control to download the HTML page at the specified URL and optionally save it to a local file. In either case the routine returns the contents of the page as a string: «Code ....Read More
Rating
Show a custom popup menu for a TextBox without subclassing
Total Hit (2013) Elsewhere in the TipBank we show how you can display a custom popup menu on a TextBox control by subclassing the WM_CONTEXTMENU message that Windows sends the control when the user right-clicks on it. If you don't like to resort to subclassing for such an easy job, you can use the following tip, tak ....Read More
Rating
How to Convert Long File Name to Short File Name...
Total Hit (2841) 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
How to find out available ports on Local System or Remote System using EnumPorts API ?
Total Hit (3024) You can use EnumPorts API to find out available ports in a specified machine. «b»Step-By-Step Example«/b» - Create a standard exe project, form1 is added by default - Add one textbox, one command button and one listbox on the form1 - Place the following code in form code window «code LangId ....Read More
Rating
How to set pagebreak in excel sheet using VB
Total Hit (2560)
Rating
Another good sample code for Office Web Component which shows you how to use PivotTable and Chart control using VB code.
Total Hit (2348) This sample will show you 1) How to programmatically connect to OLAP source (i.e. cube) 2) How to programmatically add fields on row and columns 3) How to programmatically add measures (i.e. total) Have fun...........
Rating
Determines the file version number of an executable file
Total Hit (2764) API Declarations Option Explicit 'Declarations: Private Declare Function GetLocaleInfoA Lib "kernel32.dll" (ByVal lLCID As Long, ByVal lLCTYPE As Long, ByVal strLCData As String, ByVal lDataLen As Long) As Long Private Declare Sub lstrcpyn Lib "kernel32.dll" (ByVal strDest As String, ByVa ....Read More
Rating
This is a link to a different site HTTP with MS Winsock Control - Part II - How to track the progress of data transfer
Total Hit (1718) In this tutorial we'll improve the HTTP Reader sample application, you will learn how to track the connection state with the State property of the MS Winsock Control, and how to show the progress of the downloading with the ProgressBar control.
Rating
This is a link to a different site Changing a VB Toolbar to a Rebar-Style Toolbar
Total Hit (906) Here's a quick routine to set a standard VB toolbar to a IE-style Rebar style control (aka 'coolbar') for IE4 Active Desktop users. The illustration shows the original and flattened style for the same toolbar. Place a toolbar with images (and optionally text), and add a placeholder. Set the place ....Read More
Rating
This is a link to a different site How to Show & Hide a Combo Box Dropdown List
Total Hit (635) This code shows how to programmatically drop and retract the list portion of a combo box.
Rating
This is a link to a different site Adding a VB Progress Bar to a VB StatusBar
Total Hit (1355) Normally, to calculate the position the progress bar should occupy in the status bar panel, one would calculate the panel position relative to the top left corner of the form, and adjust the coordinates appropriately. However, I found this can be circumvented by temporarily changing the status bar ....Read More
Rating
This is a link to a different site Displaying Bitmaps as Icons in Windows' Explorer View
Total Hit (637) As the Visual Basic developer designs more and more apps that utilize tiny bitmaps for toolbars and other things, it quickly becomes apparent that keeping track of exactly what each bitmap looks like is a task in itself.
Rating
This is a link to a different site Restrict Mouse Movement to an Area of the Desktop
Total Hit (1968) This tip shows you how to ensure a cursor remains within a certain rectangle on the screen. Note that if the user uses Alt-Tab to switch to another application, the clipping cursor is cleared.
Rating
This is a link to a different site Generating MouseLeave Events for a Window
Total Hit (2367) Almost all of the more recent windows control support a feature known as "Hot-Tracking" - that is, when the control appears to highlight when the mouse moves over it, then returns to normal when the mouse leaves. Common examples include the flat toolbar buttons provided with the Windows Commmon cont ....Read More
Rating
This is a link to a different site Multi-Threaded VB Using ActiveX EXEs
Total Hit (2578) Ever since VB5 service pack 2, there has been the possibility of running VB applications multi-threaded by using ActiveX EXEs. However, if you try and research this you will find it is fiddly to get working. This article presents a method which makes running operations asynchronously really easy. ....Read More
Rating


(Page 47 of 54) 1607 Result(s) found  ... 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

Recommanded Links

 

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

© 2008 BinaryWorld LLC. All rights reserved.