[MonoDevelop] Changing font on a label
Chris Howie
cdhowie at gmail.com
Tue Jan 22 20:58:10 EST 2008
On Jan 22, 2008 8:48 PM, Darwin Reynoso <monouser at gmail.com> wrote:
> Chris, thanks a lot for your quick respond but on page 91 mono a developer's
> notebook
> shows an example of a window with a label in bold and i would like to know
> how to do that
> using stetic.
>
> here is the code in the book but it doesn't work with stetic.
>
> Label label1 = new Label("<span weight=\"bold\" size=\"larger\">"+"Enter
> your name and preffered address</span>");
Ah, making it bold isn't changing the font, that's changing the weight. :)
In this case just make sure that the "Use markup" property is checked
and wrap the Label property in a <b> tag: "<b>Your text:</b>"
--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
More information about the Monodevelop-list
mailing list