| | |
Textbox To Label
![]() |
•
•
Join Date: Jun 2005
Posts: 70
Reputation:
Solved Threads: 2
Change this line:
Form2.Text1.Text = Form1.Text1.Text
to this:
Form2.Label1.Caption = Text1.Text
Or did you not want to use a command button?
You could try Text1_Change, instead of Command1_Click.
If you don't want Form2 to show at this point, then use "Load Form2" earlier, then you can Show or Hide it as you need to.
hope that helps, if not give us a little more explanation of what you want to do.
Form2.Text1.Text = Form1.Text1.Text
to this:
Form2.Label1.Caption = Text1.Text
Or did you not want to use a command button?
You could try Text1_Change, instead of Command1_Click.
If you don't want Form2 to show at this point, then use "Load Form2" earlier, then you can Show or Hide it as you need to.
hope that helps, if not give us a little more explanation of what you want to do.
try using the text1.change() event That way it is automatically change whenever you type something
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
public Sub text1_change() form1.label1.caption = trim(text1.text) end sub
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
irc://irc.rizon.net/#itf
![]() |
Similar Threads
- urgent! How to display Search Result onto textbox/label (VB.NET)
- HttpContext (VB.NET)
- HttpContext.Current Question (VB.NET)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: SQL Server 2000 and VB 6
- Next Thread: Source code downloads
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





