By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

Question of Windows Forms

P: n/a
Hi,

I have two Windows forms that are both open. What I want is when I click a
button on the first form it to copy the text from a textbox and put the text
into a textbox on the second form. Can anyone tell me the best way to
reference the second form with is already open from the first form?

Thanks
Richard
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Well the second form could have a protected property....

so that it's set actually sets the TextBox or whatever

if so in form 1
dim f2 as new form2 'make this module level on form 1 if need be.

f2.MyTextProperty="Some Text"
f2.show

so if already showing

on form1 in
button1_click
f2.MyTextProperty="Some more text"

"Richard" <ri*****@home.com> wrote in message
news:O6**************@TK2MSFTNGP10.phx.gbl...
Hi,

I have two Windows forms that are both open. What I want is when I click a button on the first form it to copy the text from a textbox and put the text into a textbox on the second form. Can anyone tell me the best way to
reference the second form with is already open from the first form?

Thanks
Richard

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.