Results 1 to 2 of 2

Thread: ActiveControl

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Posts
    71

    ActiveControl

    If I have 3 rich text boxes on the screen and I want to create a Paste menu option, I have to know which rtb to paste to. In old VB ActiveControl would do the trick.

    How do I do this in NEt? myRichTextBox.Paste() is nice but I don't know its name. Me.ActiveControl.Selrtf = something doesn't work, nor does Me.ActiveControl.Paste().
    Last edited by ggprogram; Jan 17th, 2003 at 06:14 PM.

  2. #2
    Junior Member
    Join Date
    Jan 2003
    Location
    Seattle, WA
    Posts
    17
    Dim Moo as RichTextBox
    Moo = Me.ActiveControl
    Moo.Paste()

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