| | |
textbox to label
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
*Point Above*
You were assigning the value of the caption to the textbox, not the other way around. You can do this:
you cannot do this:
These are not interchangeable....It only works the first way. So when you put:
you are saying (with no exception) "I want text1 to now contain the data stored in label1".
You were assigning the value of the caption to the textbox, not the other way around. You can do this:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
dim x x = 5
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
dim x 5 = x
vb Syntax (Toggle Plain Text)
form1.text1.text = form2.label1.caption
![]() |
Similar Threads
- Help! Print the Text in a Textbox and / or Label to Printer (Visual Basic 4 / 5 / 6)
- urgent! How to display Search Result onto textbox/label (VB.NET)
- Textbox To Label (Visual Basic 4 / 5 / 6)
- HttpContext (VB.NET)
- HttpContext.Current Question (VB.NET)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Read sheets on xls file
- Next Thread: VB6 - Make Tab key also an "Enter" key.
Views: 709 | Replies: 9
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column 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 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 retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






