Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > Web Development > Web Forms

Web Forms - Page 4

61-80 of 398     Previous     Next
ComboBoxSetHeight - Set a new height for the list portion of a ComboBox control
by Francesco Balena
Set a new height for the list area of a ComboBox control NEWHEIGHT is measured in pixels
Ensure that a form's TextBox and ComboBox controls have same height
by Francesco Balena
In general you don't have any control on a ComboBox's Height property, because it is determined automatically by VB depending on the font used for the ComboBox control. If you have a form that contains both TextBox and ComboBox controls, you should ensure that all your single-line TextBox ...
Add an horizontal scrollbar to a ListBox control
by Francesco Balena
By default, VB ListBox controls don't display an horizontal scrollbar, so if the items you add to the controls are wider than the control's Width, the end user isn't able to read them in their entirety. Adding an horizontal scrollbar to a ListBox control is easy, however. You only have to ...
ListBoxItemFromPoint - The index of a ListBox item at given coordinates
by Francesco Balena
Return the index of a ListBox item at given coordinates X and Y are in pixels and relative to the ListBox's upperleft corner This is similar to the HitTest method of the ListView control Here an example that shows the index of the item under the cursor Private Sub List1_MouseMove(Button As ...
IsFormModal - Determines whether a form is modal
by Francesco Balena
Return True if the form is modal Note: if an application has only one visible form, this function considers it as modal
ListBoxFindString - Search an item in a ListBox or ComboBox control
by Francesco Balena
Find a string in a ListBox or ComboBox control Returns the index of the match, or -1 if not found. The third argument is the index *after* which to start the search (first item if omitted). If the fourth argument is True it searches for an exact match.
Quickly find which OptionButton is selected
by Leigh Pointer
Often OptionButton controls are arranged in control arrays. To quickly find the index of the only selected OptionButton control you can use the following code: ' assumes that the control array contains three OptionButton controls intSelected = Option(0).Value * 0 - Option(1).Value * ...
SetMenuBitmap - Add a bitmap to a menu item
by Francesco Balena
add a bitmap to a menu item The first two arguments can be the Picture property of a PictureBox control, or the result from a LoadPicture function. If CheckedPicture is Nothing, the first Picture is used both for the unchecked and checked status. To remove a menu picture, use Nothing for ...
Use a ListBox as a poor man's grid
by Francesco Balena
You can easily create columns of data in a ListBox control by setting its tab stop at appropriate positions. This way, you can use a ListBox control as a sort of grid control with (very) limited functionality, but without using third-party controls. You can set ListBox's tab stop by ...
SetWindowShape - Create elliptical or rounded forms
by Francesco Balena
Region API functins
DuplicateComboBox - Fast copy of the contents of a ComboBox control
by Francesco Balena
Duplicate the contents of a ComboBox control to another ComboBox control Pass False to the last argument to append contents (the target control isn't cleared before adding elements) uses API functions for the fastest code
DuplicateListBox - Fast copy of the contents of a ListBox control
by Marco Bellinaso
Duplicate the contents of a ListBox control to another ListBox control Pass False to the last argument to append contents (the target control isn't cleared before adding elements) uses API functions for the fastest code
GetListBoxSelectRange - Retrieve the index of all the selected items in a ListBox
by Francesco Balena
Return an array with the indexes of all the selected items in a ListBox control the array is zero-based, but the significant values are from index 1 onward This is how you can use this routine Dim i As Long Dim indexes() As Long indexes() = GetListBoxSelectRange(List1) For i = 1 To ...
GetListItemHeight - Return the height of a ListBox or ComboBox item
by Francesco Balena
Return the height of each entry in a ListBox or ComboBox control (in pixels)
ListBoxSelectRange - Select or unselect a range of elements in a ListBox
by Francesco Balena
Select or deselect all the ListBox items in the specified range use newState = True to select, or False to deselect it affects all items if the last two arguments are omitted
ListBoxVisibleItems - The number of visible items in a ListBox control
by Francesco Balena
Return the number of visible items in a ListBox control
SetListItemHeight - Change the height of items in a ListBox or ComboBox control
by Francesco Balena
Set the height in pixels of each entry in a ListBox or ComboBox control
Gather Both Server-side and Client-side Info into a URL
by Liu Qingtao
< ...
Passing Value to an Online Form
by DevX Pro
Is it possible to use JavaScript to create a custom page and pass all the values in the page to an online form such that I do not have to enter the value into the online page again? The online form is not owned by me. Is this automation possible?
Form Validation
by DevX Pro
I need to perform a validation on five fields in a form. The logic is: If field1 length >0 then disallow form submission if field2, field3, field4, and field5 are all empty. However, if any one of the fields (2-5) contain info, then submit the form. I have tried many variations of the following code, but it still forces me to enter something in all the fields (2-5). if ((document.addorupdate.field1.value.length >1) && ((document.addorupdate.field2.value == "")| | (document.addorupdate.field3.value == "")| | (document.addorupdate.field4.value == "")| | (document.addorupdate.field5.value == ""))){ alert("Sorry, you must update one of the empty fields."); return false; } else {return true ;}
61-80 of 398     Previous     Next
Sitemap