radiobuttons

  • Thread starter new at this via DotNetMonster.com
  • Start date
N

new at this via DotNetMonster.com

i am new at this and i need some help.

i am working with 2 richtextboxs,2 radiobuttons,1 fontdialog and a button i
am trying to make it so when you select radiobutton1 and hit button1 the font
dialog will control richtextbox1s font and color and if you select
radiobutton2 and hit button1 you can control rich textbox2s font and color.
 
J

John B

new said:
i am new at this and i need some help.

i am working with 2 richtextboxs,2 radiobuttons,1 fontdialog and a button i
am trying to make it so when you select radiobutton1 and hit button1 the font
dialog will control richtextbox1s font and color and if you select
radiobutton2 and hit button1 you can control rich textbox2s font and color.
Ok.
How about in the button click you get the selected font via the fontdialog.
if(radiobutton1.Checked)
{
TextBox1.SelectionFont = MyFont;
{
else
{
TextBox2.SelectionFont = MyFont;
}
 
C

C# Dragon via DotNetMonster.com

John said:
Ok.
How about in the button click you get the selected font via the fontdialog.
if(radiobutton1.Checked)
{
TextBox1.SelectionFont = MyFont;
{
else
{
TextBox2.SelectionFont = MyFont;
}

thx thats jus what i needed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top