pinoyz

Hi, how can we add some tools that can change the font of text, color, cut and paste and so on.




Re: Visual Basic Express Edition about email GUI? using vbee2005

betardfooser

There are actually a few Microsoft controls that you could find in the toolbox of the designer...

  • You may want to use a RichTextBox for the text portion, (which has built in features like cut, paste and so on...)
  • For the tools, look into a ToolStrip control.

I'm not sure if the RichTextBox has font and color changes, but you could try it out and see.




Re: Visual Basic Express Edition about email GUI? using vbee2005

Paul Montagna

Check out the methods in .Font

Code Snippet

RichTextBox1.Font. 'Method here


Also you have the font dialog if you want to make it look a little more professional





Re: Visual Basic Express Edition about email GUI? using vbee2005

pinoyz

Hi Paul,

How can i insert the font dialog i'v never been use that dialog...






Re: Visual Basic Express Edition about email GUI? using vbee2005

Paul Montagna

Add the Font Dialog control to the form, Then for example in a command buttons click event lets do something simple like change the selected text's font.

Code Snippet

With FontDialog1
.ShowDialog()
RichTextBox1.SelectionFont = .Font()
End With


Hope that helps you.





Re: Visual Basic Express Edition about email GUI? using vbee2005

pinoyz

how about on a selected text only






Re: Visual Basic Express Edition about email GUI? using vbee2005

Paul Montagna

The example only changes the selected text is that what you wanted





Re: Visual Basic Express Edition about email GUI? using vbee2005

pinoyz

yeah!! i got it now

dim x as new font(x.font.fontfamily, x.font.style, x.font.sizebypoints)

richtextbox1.selectedfont = x

thanks ur a champ

by the way how about, numbered or bulleted list indent and outdent






Re: Visual Basic Express Edition about email GUI? using vbee2005

Paul Montagna

For bullets simply....

Code Snippet

RichTextBox1.SelectionBullet = True