Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Vb.net Help


  • Please log in to reply
2 replies to this topic

#1 shortymac

shortymac

  • Members
  • 34 posts
  • OFFLINE
  •  
  • Local time:01:56 AM

Posted 06 November 2005 - 01:18 PM

how do i set the font of a rich text box to microsoft sans serif, size 12 font, color black? This is of course after you click a button.

heres what i have so far:
rtxtPersonalPad.Font = ?
rtxtPersonalPad.Color = ?
Despite many reverses, freedom has won many battles. Many died in those battles in the conviction that to die in the struggle against oppression was better than to live without freedom. Such a death is the utmost assertion of their individuality. ~ Erich Fromm

BC AdBot (Login to Remove)

 


#2 Jay Cat

Jay Cat

  • Members
  • 7 posts
  • OFFLINE
  •  
  • Local time:12:56 AM

Posted 06 November 2005 - 03:18 PM

In the button click event:

Dim fnt As Font
rtxtPersonalPad.ForeColor = Color.Black
fnt = New Font("Sans Serif", 12, FontStyle.Regular)
rtxtPersonalPad.Font = fnt

#3 shortymac

shortymac
  • Topic Starter

  • Members
  • 34 posts
  • OFFLINE
  •  
  • Local time:01:56 AM

Posted 06 November 2005 - 04:37 PM

thanks so much! :thumbsup:

you're the greatest! <3
Despite many reverses, freedom has won many battles. Many died in those battles in the conviction that to die in the struggle against oppression was better than to live without freedom. Such a death is the utmost assertion of their individuality. ~ Erich Fromm




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users