I have an MDI app -
the main control in the one MDIchild form is a RichTextBox
in the form load event of one of the forms I call/show, I want to grab the
selected text in the Rich Textbox
I've tried:
With DirectCast(ActiveMdiChild, frmMyForm)
label4.text=.RTB1.seltext
end with
But I get an error: Object reference not set to an instance of an object.
I tried
Dim f as new form
f=DirectCast(ActiveMdiChild, frmMyForm)
and then tried it, but it doesn't recognize any controls in the
activeMDIchild...
How can I do this?