Results 1 to 3 of 3

Thread: Is It Possible To Have Two Forms Focussed At The Same Time?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    219

    Is It Possible To Have Two Forms Focussed At The Same Time?

    Hi, I need to have text selected in a box in one form, and edit text in another at the same, if this is possible, how do I do this?

  2. #2
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Is It Possible To Have Two Forms Focussed At The Same Time?

    It's possible to access information from another form. You can do this by declaring an object of the form and then referncing the information.

    For example:

    If you had these objects:

    Form1 - Main Form
    Form2
    TextBox1
    In form one:
    Code:
    Dim 2ndForm As New Form2
    Now that we've done that, we can access TextBox1 that is on the second form like this:
    Code:
    2ndForm.TextBox1.Text = Blah Blah Blah
    It's hard for me to understand exactly what it is you're asking for. So, if you can clarify a little bit, I think I can give you a better example of what you're asking.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2006
    Posts
    219

    Re: Is It Possible To Have Two Forms Focussed At The Same Time?

    I meant one text box on a separate form with highlighted text, with the ability to keep editing text on another form at the same time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width