I created a simple user control with a richtextbox in it
now how on earth do i get the control to act like a richtextbox and let me open a file in it?
[This message has been edited by Gandor (edited 11-26-1999).]
Printable View
I created a simple user control with a richtextbox in it
now how on earth do i get the control to act like a richtextbox and let me open a file in it?
[This message has been edited by Gandor (edited 11-26-1999).]
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).]