Professional Documents
Culture Documents
[Lecture 13 ]
Bhumika Shah
{Lecturer, Computer Engineering Department }
Object with specific properties ::
1) Textbox ::
Name :
Back color
Enabled
Font
Forecolor {its color of text in textbox }
Index { sets index for control array! }
Locked { determines whether value of text box can
be edited or not ? True / false}
Max length { it specifies max number of characters
that can be accpeted in text box }
Multiline { true/ false}
Cont …
Passwordchar { preferably special char - * $ @ # should
be used }
TabIndex {sets tab order .}
Tabstop {true means text box will be selected using
tab space, FALSE means tab space cant be used for
slecting text box }
Text
Tooltiptext {whatever we write in it will be diplayed
when at run time mouse is paused at text box .}
Visible { true/false }
2) Label ::
Caption {display text on label }
As discussed with textbox, nothing new..
3) Command button ::
Cancel :: { true/false.. When true it can be selected
using ESC key }
Default :: {true/ false . When true it can be selected
using ENTER key }
Rest all same as text box properties …
4) Frames ::
All properties same as text box, no new property.
5) Checkbox ::
Value :: { 0 – unchecked, 1- checked , 2 – grayed }
All rest same as text box properties …
6) Option Button ::
Style { 0 – standard window style, 1- graphical with custom
picture or color. }
Value { true or false }
All rest same as text box properties …
7) Shape ::
It is used for placing different shapes on the form…
Shape property decides which shape will be placed…
0- Rectangle
1- Square
2- Oval
3- circle
4- rounded rectangle
5- Rounded square
Draw mode specifies how object will be drawn ::
{ it has values ranging from 1 to 13 , where 13- copypen
gives continuous line and 6- invert gives dashed line and
so on … }
8) LINE ::
It draws a line on the screen ..
Draw mode :: as per shape property
X1 – starting X co-ordinate
Y1- starting Y co-ordinate
X2 – ending X co-ordinate
Y2 – ending Y- Co-Ordinate
9) Image ::
Its used to display an image on form ..
To select image , we need to select image box first.
Second we need to change “Picture” property of
image , as we click on it, it gives us dialog to select a
picture.
Select desired picture and click open..
Selected image will be set on form …
Working with Multiple Objects …
To set common properties or to perform
some task in group , we can select multiple
Objects [ not necessary of the same type! ].
All selected [ multiple objects at a time] objects can be moved to any other
location by dragging them all in a group together!
wide!
menu!
In visual basics we can assign such keyboard acess
End With
End Sub
GOOD DAY !!