Rated
Read 51,701 times
Contents
Related Categories
TextBox Control - Getting the text
Getting the text
To get the text in a textbox you use the following syntax:
Var
= Text1.Text
Where Var is a variable to contain the text. The code below shows
a message box displaying the text in Text1
Dim sDisplayText As String
sDisplayText = Text1.Text
Msgbox sDisplayText
James first started writing tutorials on Visual Basic in 1999 whilst starting this website (then known as VB Web). Since then, the site has grown rapidly, and James has written numerous tutorials, articles and reviews on VB, PHP, ASP and C#. In October 2003, James formed the company Developer Fusion Ltd, which owns this website, and also offers various development services. In his spare time, he's a 3rd year undergraduate studying Computer Science in the UK. He's also a Visual Basic MVP.
Comments
-
Posted by bishnupatro on 12 Feb 2008
Hi,
In my C# application there is a multiline textbox with vertical scrollbar. When the multiline textbox get updated with new ...
Posted by bmahler on 15 Nov 2005
[quote][1]Posted by [b]RueprtR[/b] on 12 Feb 2004 10:23 PM[/1]
Private Sub optSelect_Click()
' place the insertion point at the beginning
txtDisplay.SelStart = 0
' find the length of t... -
Posted by Dipti22 on 26 May 2005
Hello all
I am doing my project in asp.net . when a page gets loaded at that time i dont want a image control lie beside the taxtbox. but whenever a textbox got the focus , the image control... -
Posted by Col on 16 May 2005
Hi, sorry but Newbie here,
From an excel workbook I want to display the data from cell A1 & B1 next to each other in a textbox in my Visual Basic 6 project. The... -
Posted by johnm on 27 Nov 2004
I have hit a dead stop.
(although while typing this I thought of a book and now about something which I guess will be called en_vscroll)
I'm still asking though because this may not be the answe...
|