By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,783 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,783 IT Pros & Developers. It's quick & easy.

radiobuttons

P: n/a
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.

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200605/1
May 12 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
new at this via DotNetMonster.com wrote:
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;
}
May 12 '06 #2

P: n/a
John B wrote:
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;
}


thx thats jus what i needed

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200605/1
May 12 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.