|
-
Dec 15th, 2009, 12:08 AM
#1
Re: Pull object and its code from 1 form, and display it on another?
 Originally Posted by TCarter
if you meant to have that as a link..it didnt work.
I appreciate it.
but i guess the question is, if i add the things like say... label, and i needed to add a code to the "iftextchanged" field or whatever..how would i do that?
I'm also a little confused on exactly what you're asking. So, let's say you have 2 labels. One label, Label1, is on Form1. The other label is on Form2 and is called Label2.
If you want to make the Text of Label2, the same as Label1, then you could just easily do this in Form2's Load event:
VB.NET Code:
Label2.Text = Form1.Label1.Text
So, when Form2 loads, the text is the same. Now, there are a few things that you might need to know about this, but we'll get to those later if this is what you need. Otherwise, we might need a bit of clarification.
But, koolsid is right. The control will have to already be on the new form or you will have to create it in code.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
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
|