Click here to Skip to main content
16,015,414 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNeed Help Pin
moomoooomoo15-Jan-07 15:56
moomoooomoo15-Jan-07 15:56 
AnswerRe: Need Help Pin
Christian Graus15-Jan-07 16:30
protectorChristian Graus15-Jan-07 16:30 
AnswerRe: Need Help Pin
Vasudevan Deepak Kumar15-Jan-07 17:02
Vasudevan Deepak Kumar15-Jan-07 17:02 
QuestionConverting any date to double or long integer Pin
sdkgolf15-Jan-07 10:23
sdkgolf15-Jan-07 10:23 
AnswerRe: Converting any date to double or long integer Pin
Christian Graus15-Jan-07 13:12
protectorChristian Graus15-Jan-07 13:12 
AnswerRe: Converting any date to double or long integer Pin
Guffa15-Jan-07 13:16
Guffa15-Jan-07 13:16 
AnswerRe: Converting any date to double or long integer Pin
sdkgolf24-Jan-07 17:26
sdkgolf24-Jan-07 17:26 
Questioncode to create textbox at runtime Pin
mhh1215-Jan-07 10:00
mhh1215-Jan-07 10:00 
I would like to write code in Visual Basic 2005 to produce a text box on a form.
Here is the code which doesn't work.

Public Class Form1
Private Sub CreateMyMultilineTextBox()
' Create an instance of a TextBox control.
Dim textBox1 As New TextBox()

' Set the Multiline property to true.
textBox1.Multiline = True
' Add vertical scroll bars to the TextBox control.
textBox1.ScrollBars = ScrollBars.Vertical
' Allow the RETURN key to be entered in the TextBox control.
textBox1.AcceptsReturn = True
' Allow the TAB key to be entered in the TextBox control.
textBox1.AcceptsTab = True
' Set WordWrap to True to allow text to wrap to the next line.
textBox1.WordWrap = True
' Set the default text of the control.
textBox1.Text = "Welcome!"
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Create UserTextBox TextBox control.
Dim UserTextBox As New TextBox()
CreateMyMultilineTextBox()

MessageBox.Show("Done")
End Sub

End Class

What, pray tell, is missing? It is a direct copy of MSDN's Visual Basic Express Visual Basic Programming Guide.
Thank you for your help.

Mark H.
AnswerRe: code to create textbox at runtime Pin
MatrixCoder15-Jan-07 10:10
MatrixCoder15-Jan-07 10:10 
GeneralRe: code to create textbox at runtime Pin
mhh1215-Jan-07 10:50
mhh1215-Jan-07 10:50 
AnswerRe: code to create textbox at runtime Pin
Christian Graus15-Jan-07 10:11
protectorChristian Graus15-Jan-07 10:11 
GeneralRe: code to create textbox at runtime Pin
mhh1215-Jan-07 10:55
mhh1215-Jan-07 10:55 
GeneralRe: code to create textbox at runtime Pin
Christian Graus15-Jan-07 13:13
protectorChristian Graus15-Jan-07 13:13 
QuestionConnecting oracle DB with vb.net Pin
coolgg15-Jan-07 8:40
coolgg15-Jan-07 8:40 
AnswerRe: Connecting oracle DB with vb.net [modified] Pin
StianSandberg15-Jan-07 9:07
StianSandberg15-Jan-07 9:07 
AnswerRe: Connecting oracle DB with vb.net Pin
Vasudevan Deepak Kumar15-Jan-07 17:02
Vasudevan Deepak Kumar15-Jan-07 17:02 
QuestionVB 2005 Gridview question Pin
john_paul15-Jan-07 8:20
john_paul15-Jan-07 8:20 
AnswerRe: VB 2005 Gridview question Pin
Kschuler15-Jan-07 9:59
Kschuler15-Jan-07 9:59 
QuestionCan DataGridview view No of Rows on Row's Header?? Pin
kindman_nb15-Jan-07 8:12
kindman_nb15-Jan-07 8:12 
QuestionPlease Guide Me Pin
Ashish Porwal15-Jan-07 5:10
Ashish Porwal15-Jan-07 5:10 
AnswerRe: Please Guide Me Pin
Pete O'Hanlon15-Jan-07 5:18
mvePete O'Hanlon15-Jan-07 5:18 
AnswerRe: Please Guide Me Pin
Christian Graus15-Jan-07 10:15
protectorChristian Graus15-Jan-07 10:15 
QuestionReading all lines from text file Pin
johnjsm15-Jan-07 5:01
johnjsm15-Jan-07 5:01 
AnswerRe: Reading all lines from text file Pin
nlarson1115-Jan-07 5:44
nlarson1115-Jan-07 5:44 
QuestionWhats the solution? Pin
ashwath197915-Jan-07 4:36
ashwath197915-Jan-07 4:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.