Hi, I am new in this forum and I know few the vb.
I use the vb6 and I have a question, I hope can help me.
In a toolbar I have inserted a combobox which choice the font;
While in a form there are many richtextboxes, they arent an array.
In the event click of the combobox I have inserted this code:
so I change the text font of the richtextbox1.
If I insert this code too:
Change the font of the richtexbox2 in the same time.
instead I would want to change the alone font of the richtextbox that is active, that has the focus, and not of all the others.
How can modify the code?
maybe is better to have an array of richtextbox?
Thanks in advance
best regards
I use the vb6 and I have a question, I hope can help me.
In a toolbar I have inserted a combobox which choice the font;
While in a form there are many richtextboxes, they arent an array.
In the event click of the combobox I have inserted this code:
Code:
Form1.RichTextBox1.SelFontName = Combofont.List (Combofont.ListIndex)
If I insert this code too:
Code:
Form1.RichTextBox2.SelFontName = Combofont.List (Combofont.ListIndex)
instead I would want to change the alone font of the richtextbox that is active, that has the focus, and not of all the others.
How can modify the code?
maybe is better to have an array of richtextbox?
Thanks in advance
best regards