Text/Form help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • soramaster
    New Member
    • May 2007
    • 23

    #1

    Text/Form help

    This is what I have:

    Dialog.frm and media.frm.

    Each one has a text box.

    media.frm Text1.text and
    Dialog.frm text1.text


    I have some text in text1.text in dialog.frm.

    How do I send the info from dialog.frm Text1.text to media.frm text1.text?

    Also I did find out more infomation about VB6. This is so cool
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by soramaster
    How do I send the info from dialog.frm Text1.text to media.frm text1.text?
    Exactly where this code is placed will depend on a lot of things. But the actual code to move text from one to the other is quite simple...[CODE=vb]Media.Text1.Tex t = Dialog.Text1.Te xt[/CODE]Note, I have assumed that the name of the form is the same (without the extension) as the name of the file in which is is stored. In other words, that "media.frm" , for example, contains a form whose .Name property is set to "Media". If this is incorrect, just adjust the form names accordingly.


    Originally posted by soramaster
    Also I did find out more infomation about VB6. This is so cool
    I agree, VB6 is very cool. However, I would question the usefulness of learning a ten-year-old language. It seems as though it would make more sense to learn a more up-to-date version.

    (I use VB6, and love it - but I plan to start training myself in VB 2005 when I can find some time.)

    Comment

    Working...