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 7 of 133) 3985 Result(s) found 

 

Setting the width of the last column of a ListView when the control is resized
Total Hit (2388) When you resize a ListView control (this happens automatically if the ListView is docked to the form, and the user resizes the form), it's nice to have the last column to be resized accordingly to cover the available space. To do this, handle the ListView's Resize control (in .NET any control has a ....Read More
Rating
A simple way to control a common dialog's position
Total Hit (4109) The CommonDialog control doesn't provide any direct way to decide where a common dialog appears on the screen. In all cases, in fact, the control tries to display the common dialog centered on its owner form. This behavior suggests a simple way to affect the approximate position of the common dialog ....Read More
Rating
Changing the current record using bookmarks
Total Hit (2422) If you try to use a DataList and some labels or text boxes linked to an ADO Data control, and you click on some items in the list, you'll notice that the data in the labels won't change, because the current record isn't changed. To have the code work correctly, you have to write code in the Clic ....Read More
Rating
Clear a MaskEditBox control without raising error
Total Hit (3027) You can't clear the contents of a MaskEdBox control by setting the Text property to a null string if the MaskEdBox's Mask property contains delimiter. In fact, you must include those separators in the value you assign to the Text property, otherwise you get Error 380 - Invalid property value. A s ....Read More
Rating
Copy the contents of the WebBrowser control to the Clipboard
Total Hit (7364) To programmatically copy text from the WebBrowser control you can use its ExecWB method, to which you must pass the OLECMDID_COPY constant as its first argument. WebBrowser1.ExecWB OLECMDID_COPY, OLECMDEXECOPT_DODEFAULT You can also select the entire WebBrowser's contents by invoking the Exec ....Read More
Rating
Download and save an HTML page with the Internet Transfer control
Total Hit (2801) 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: «Co ....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
Dynamically bind a DataList or DataCombo control to an ADO Recordset
Total Hit (3995) When dynamically changing the bound ADORecordset for a DataCombo or DataList control, the order you follow when assigning the properties is important. This is the correct sequence of operations to perform to change the bound recordset for these controls: «Code LangId=1» ' unbind the current so ....Read More
Rating
Insert a picture into a RichTextBox control
Total Hit (3925) Here's a simple method to programmatically insert an image into a RichTextBox control, by copying it into the clipboard and then pasting it into the control: «Code LangId=1» Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal _ hwnd As Long, ByVal wMsg As Long, By ....Read More
Rating
Let the user add tab characters to a RichTextBox control
Total Hit (3005) Here's a simple method to programmatically insert an image into a RichTextBox control, by copying it into the clipboard and then pasting it into the control: «Code LangId=1» Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal _ hwnd As Long, ByVal wMsg As Long, ByV ....Read More
Rating
Print the WebBrowser's contents
Total Hit (2980) The WebBrowser control doesn't expose any method to directly print its contents. You can achieve this effect through the ExecWB method, by passing the OLECMDID_PRINT constant in its first argument: «Code LangId=1» ' display the Print dialog WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMP ....Read More
Rating
Print the WebBrowser's contents
Total Hit (2799) The WebBrowser control doesn't expose any method to directly print its contents. You can achieve this effect through the ExecWB method, by passing the OLECMDID_PRINT constant in its first argument: ' display the Print dialog WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER You can ....Read More
Rating
Add multiple child controls to a Coolbar
Total Hit (2204) The Coolbar control consists of a collection of Band objects, and each Band object exposes a Child property. To move a control inside the Coolbar you just have to assign it to the Child property of a Band object. A minor problem is that you can't directly assign multiple controls to one Band. The ....Read More
Rating
Determine the number of visible items in a ListView control
Total Hit (4392) Microsoft "forgot" to provide the ListView control with the GetVisibleCount property, as it did, for example, with the TreeView control. However, getting this information is as easy as sending a message to the control: «Code LangId=1» Private Const LVM_FIRST = &H1000 Private Const LVM_GETCOUNT ....Read More
Rating
Determine the optimal width for ListView columns
Total Hit (2963) Here's a simple but effective trick to ensure that the column of a ListView control is wide enough to display the entire string you're assigning to the column title or to an element. Just drop a Label on the form, set its Autosize property to True and Visible property to False. Also, ensure that the ....Read More
Rating
Fill a TreeView control with random data
Total Hit (2155) Every now and then you need to fill a TreeView control with some random data, for example when you want to test a routine and you don't want to write a lot of code just for this secondary task. Here is a recursive routine that does the work for you: «Code LangId=1» ' MaxChildren is the max num ....Read More
Rating
Get full control on the text typed in a ListView's item
Total Hit (3426) The ListView control exposes the AfterLabelEdit event to let the programmer validate the text entered in a ListItem, but there is no way to trap keys as they are typed by the user. This prevents you from discarding unwanted characters while the user types them. You can work around this problem by ....Read More
Rating
Get full control on the text typed in a TreeView's node
Total Hit (3697) The TreeView control exposes the AfterLabelEdit event to let the programmer validate the text entered in a Node, but there is no way to trap keys as they are typed by the user. This prevents you from discarding unwanted characters while the user types them. You can work around this problem by sub ....Read More
Rating
Get or Set the height of TreeView nodes
Total Hit (3851) In plain VB there is no way to determine or change the height of node elements in a TreeView control. All you need to accomplish both tasks, however, is send the right message to the control. «Code LangId=1» Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal _ hW ....Read More
Rating
How to apply the flat style to a toolbar
Total Hit (2652) All recent Windows applications use a flat toolbar similar to Internet Explorer 's and Microsoft Word's ones. Visual Basic 6 includes a Toolbar control that supports the flat look, but if you are still using VB4 or VB5 and you want to use a flat toolbar without buying a new ActiveX control, you just ....Read More
Rating
Let the user insert OLE objects in a RichTextBox control
Total Hit (2535) A little-known feature of the RichTextBox control allows you to insert an OLE object in the text being edited. However, you can do so only programmatically, by adding an element to the OleObjects collection. An easy way to let the user select the object to be embedded in the control is using the Ins ....Read More
Rating
Limit the length of an item in a ListView control
Total Hit (3720) The ListView control doesn't expose any property that lets you limit the amount of text users can type when editing an item's label. However, you can do the trick with a couple of SendMessage API calls from within the BeforeLabelEdit event: with the LVM_GETEDITCONTROL message you retrieve the handle ....Read More
Rating
Limit the length of the text in a TreeView node
Total Hit (4305) The TreeView control doesn't expose any property that lets you limit the amount of text users can type when editing a Node's label. However, you can do the trick with a couple of SendMessage API calls from within the BeforeLabelEdit event: with the TVM_GETEDITCONTROL message you retrieve the handle ....Read More
Rating
Load items faster in the TreeView and ListView controls
Total Hit (2593) There is an easy, but under-utilized, technique for loading many nodes in a TreeView control (or ListItems in a ListView control) that is faster than the standard technique. Consider this loop: «Code LangId=1» For i = 1 To 5000 TreeView1.Nodes.Add , , , "Node " & i Next «/Code» Instea ....Read More
Rating
Prevent dragging elements in a ListView control
Total Hit (3106) The ListView control doesn't expose any property that lets you disable the dragging of its elements. To do so, you must trap the WM_NOTIFY message that the ListView control sends its parent form when the drag operation begins, and "eat" it. Using the MSGHOOK.DLL subclassing library it's easy to acco ....Read More
Rating
Selecting an entire row in a ListView
Total Hit (3640) The ListView control that comes with VB6 lets you select an entire row by setting its FullRowSelect property to True. If you are working with VB5 or you're using VB6 with the old version of the Microsoft Windows Controls this capability isn't avaible, but if you have installed the comctl32.dll versi ....Read More
Rating
Suppress TreeView's tooltips
Total Hit (3476) By default, all TreeView controls whose version number is 4.70 or higher display the text of the node under the cursor if the node itself isn't completely visible. You can turn off and on this feature by resetting a bit in the control's style, using the following code: «Code LangId=1» Private ....Read More
Rating
Use Refresh, not DoEvents
Total Hit (1904) The DoEvent statement should be used only to give other portions of your program to be reactive to the end user's actions. Instead, many VB developers use it to force a repaint of a form or some of its controls. This means adding a lot of overhead to your code, which you can avoid by using the Form' ....Read More
Rating
UseMnemonics property for bound Label controls
Total Hit (2189) If your forms contain Label controls used to display data from a database, set their UseMnemonic property to False. In fact, if you leave this property to its default value (True), ampersand "&" characters won't be showed correctly, and the Label will mistakenly react to hotkeys. ....Read More
Rating
Using Enter to move to next field
Total Hit (1604) Most MsDos programs used the Enter key to move from one field to the next one. You can easily simulate this behavior by setting the form's KeyPreview property to True and writing this code in the Form_KeyPress event: «Code LangId=1» Sub Form_KeyPress (KeyAscii As Integer) If KeyAscii = 13 Th ....Read More
Rating


(Page 7 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.