my problem is probably a simple fix
I have 2 forms inside of FrmMain(MDI Form)
Form1 & Form2
I have a RichTextBox in each Form
I am trying to get the selected text from form1.richtextbox to form2.richtextbox
my current code is very simple
Sub form2_Initialize
richtextbox.text = frmmain.activeform.richtext.seltext
End Sub
This works fine, but If I close out form2 and highlight different text in form1.richtextbox
and open form2 again nothing appears in form2.richtextbox.
Can Anyone help me?
I have 2 forms inside of FrmMain(MDI Form)
Form1 & Form2
I have a RichTextBox in each Form
I am trying to get the selected text from form1.richtextbox to form2.richtextbox
my current code is very simple
Sub form2_Initialize
richtextbox.text = frmmain.activeform.richtext.seltext
End Sub
This works fine, but If I close out form2 and highlight different text in form1.richtextbox
and open form2 again nothing appears in form2.richtextbox.
Can Anyone help me?