You need to add a Public Sub to the userControl which maps to the Richtextbox
eg. in the usercontrol:
Code:Public Sub LoadFile(strFile As String) RichTextBox1.LoadFile strFile End Sub
then in the client program:
Does this help?Code:Private Sub Command1_Click() UserControl11.LoadFile "C:\test.rtf" End Sub
------------------
Mark Sreeves
Analyst Programmer
[email protected]
A BMW Group Company
[This message has been edited by Mark Sreeves (edited 11-26-1999).]




Reply With Quote