|
-
Dec 5th, 2003, 02:56 PM
#1
Thread Starter
New Member
textbox prob
On one form when i click a button called cost, I need the text box beside it to give me the contents of a textbox on another form
ie.
textbox20.text = textbox16.text on form 2 ??????????
help please and thanks
-
Dec 5th, 2003, 03:50 PM
#2
you need to declare Form2 somewhere first ( so it's available throughout Form1's controls , eg: button clicks ) , something like this....
VB Code:
Dim frm2 As New Form2()
frm2.Show()
'/// then in a sub ( like a button click ) ...
textbox20.text = frm2.textbox16.text
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Dec 5th, 2003, 08:55 PM
#3
Frenzied Member
so, in other words, you have to treat each form in your app as objects? and the controls of that object are simply object properties?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|