Re: changing font of textboxes

  • From: sameer manohtra <sameermanohtra@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Wed, 3 Nov 2010 15:03:17 +0530

interesting, its not working to me if i'm doing by the same way.

may be i'm assigning the shortcut key in wrong way.

Jacob bro, could you kindly tell how do you assign shortcut key to a button?
i'm suspecting that the procedure i'm following is not correct.

sameer!


On 11/3/10, Jacob Kruger <jacobk@xxxxxxxxxxxxxx> wrote:
> Just tried it out, and if I use the shortcut key assigned to a button, the
> TextBox.Focused property stays true FWIW.
>
> Jacob Kruger
> Blind Biker
> Skype: BlindZA
> '...fate had broken his body, but not his spirit...'
>
> ----- Original Message -----
> From: "sameer manohtra" <sameermanohtra@xxxxxxxxx>
> To: "programmingblind" <programmingblind@xxxxxxxxxxxxx>
> Sent: Wednesday, November 03, 2010 8:26 AM
> Subject: changing font of textboxes
>
>
> hi list,
> I’m in an interesting situation:
>
> I’m trying  to develop a simple form  where my users should have
> options to change the font size, font style etc  on click of buttons.
> i know this can be done by writing like following on the button:
>
> textBox1.Font = new Font(this.Font, FontStyle.Bold);
>
> its working, but the problem is, that I need a bold button which
> should change the font style into bold of the text box which is
> selected.
>
> What i mean is, that there should just be one bold button, and if user
> is on textbox1 and presses the shortcut  key (ctrl+b for instance),
> text of textbox 1 should be bolded, but if user is focused on textbox2
> and presses the same shortcut  key, text of textbox2 should be changed
> this time, not textbox1.
>
> I know, conditional expressions will be use, but I’m unable to find
> out what should I check in this case?
>
> Please help me doing this.
>
> Sameer manohtra.
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 5587 (20101103) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 5587 (20101103) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
>
>
__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: