I need to change text in an rtb using a combo box can anyone help
Watch this thread
Announcements
Page 1 of 1
Skip to page:
This discussion is closed.
Hami374
Badges:
0
?
You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#1
I am studying Avce ict and need to hand my assignment on friday but i havent put in atext box for font size i have done a type combo box but cant figure out how to make different sizes work. All work is done in Visual basic 6
0
EI_123
Badges:
0
Rep:
?
You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#2
Report
#2
(Original post by Hami374)
I am studying Avce ict and need to hand my assignment on friday but i havent put in atext box for font size i have done a type combo box but cant figure out how to make different sizes work. All work is done in Visual basic 6
I am studying Avce ict and need to hand my assignment on friday but i havent put in atext box for font size i have done a type combo box but cant figure out how to make different sizes work. All work is done in Visual basic 6
Private Sub Combo1_Click()
Text1.FontSize = CInt(Combo1.Text)
End Sub
0
EI_123
Badges:
0
Rep:
?
You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#3
Report
#3
If you are talking about the RichEdit ActiveX control use this line instead:
RichTextBox1.Font.Size = CInt(Combo1.Text)
If you are using Windows API you should use CreateFontIndirect() and SendMessage(WM_SETFONT).
RichTextBox1.Font.Size = CInt(Combo1.Text)
If you are using Windows API you should use CreateFontIndirect() and SendMessage(WM_SETFONT).
0
X
Page 1 of 1
Skip to page:
new posts
Back
to top
to top