Question:
how do i display the text in a textbox in a msgbox ?
SR
2008-04-15 05:01:28 UTC
somethin like msgbox & text1.text & (it does not work)
Six answers:
anonymous
2008-04-15 05:06:34 UTC
MsgBox(Text1.Text, vbOKOnly)



:) there you go



Regrads

http://www.visualbasicguide.com

visual basic guide
Venkatesh V S
2008-04-15 05:12:52 UTC
on entering msgbox in VB u get the various option needed to completly enter all of them or leave out the option.

a=text1.text



mreply =msgbox(a & " This is my message" & "This is your message ", vbokonly)
anonymous
2008-04-15 05:27:01 UTC
select text in display and Ctrl+C and go in a textbox and Ctrl+v
vbaj
2008-04-15 05:33:57 UTC
Just remove & if you are not using result of message box
anonymous
2008-04-15 05:15:15 UTC
which language u r using?
mikaeil
2008-04-15 05:41:55 UTC
hi

it is very easy my dear

in vb go to your event for exaple button click

and write this code

-------------------------------------

Private Sub Command1_Click()

a = Text1.Text

MsgBox a, vbOKOnly + vbCritical, "your title"

End Sub

----------------------------------------

good luck

if you have problem my id is mj_professional


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...