TextBox


Image:image001.png

A Textbox Control provides facility to input or display data at runtime .

Textbox Properties

Following source code which process digits given in first two Texbox's with Addition Operator and shows output in third TextBox .

Example ,

Public Sub Command1_Click()
   Dim a As Integer
   Dim b As Integer
   Dim c As Integer
   On Error Goto errHandler
   a = Str(Text1.Text)
   b = Str(Text2.Text )
   c=Str(a+b)
   Text3.Text = c   
   Exit Sub
   errHandler:
      MsgBox " Please enter number values ! Fields could not be null ! "
End Sub
 
-Author : Vishal Bandre-~~~~

Retrieved from "http://www.jabaco.org/wiki/TextBox"

This page has been accessed 2,611 times. This page was last modified on 18 June 2011, at 10:26.


This page has been accessed 2,611 times. This page was last modified on 18 June 2011, at 10:26.