|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi
What is meant by default property of controls ? Does it mean the property that need not be specified in the code ? For eg caption property of labels, text property of text box etc Or does it mean the property that is common in all the controls. In that case it should be Name, right ? Please explain if I am wrong. |
|
#2
|
|||
|
|||
|
If there is a default value for a type of control, it won't necessarily be the same property for different types of controls. For example, in vb6 a text box default value is the text property, a checkbox default is the value property.
Using the default values allows you to code like this: Code:
msgbox text1.text msgbox text1 Both those statements will produce identical results
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Default property of controls |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|