Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21839

[RESOLVED] adding RichTextBox without Reference or ActiveX

$
0
0
hello people, i was wondering if there was a way to add a richtextbox without reference or without (right click on toolbox) add a ActiveX Control

PS. I did find a way to do it but i am wondering if there is other ways.
Code:

Set RichTextBox1 = Me.Controls.Add("RichText.RichTextCtrl", "RichTextBox1")
now let's say this is working and richtextbox appears, now how do you add events (at design time, not runtime)??
Code:

Private Sub RichTextBox1_Click()
MsgBox "Click"
End Sub

is this possible? or wouild there be a similar way to accomplish this

Viewing all articles
Browse latest Browse all 21839

Trending Articles