Aigh this is how I do it
I first add a the richtextbox and the common dialog components. You can do this by going to the project menu then click on components there select
Microsoft Common Dialog Control 6 (SP6)
Microsoft Rich Textbox Control 6 (SP6)
select those two then click on apply then click on close
aigh now you will see those two components added to your components box, now select them from there and drag them to your form.
the Rich Textbox you put it where u want it to be
the Common Dialog you can put it anywhere it wont be visible when the program starts.
Now we goign to add 5 commands buttons one for boldnes three for the font size and another one for the color.
on the command for boldness enter this code
- Code: Select all
RichTextBox1.SelBold = True
on the font size bottons add this code depending on the size u want for ur font, one thing paltalk only accepts up two 12 the number of the font I think so only go up to 12, here the codes to add
- Code: Select all
RichTextBox1.SelFontSize = 8
- Code: Select all
RichTextBox1.SelFontSize = 10
- Code: Select all
RichTextBox1.SelFontSize = 12
and on te color buttom add this
- Code: Select all
CommonDialog1.ShowColor
RichTextBox1.SelColor = CommonDialog1.Color
thas it now when people highlight the font and choose any of those fnt style the font will chnage accordingly
ah here departure code with the font color option
